Last active
February 10, 2022 02:29
-
-
Save adegbengaagoro/1f4b2d56fdfc3248884ee0f5f2b0fc2e to your computer and use it in GitHub Desktop.
Content Negotiation Example - viewAndApiOutputHelper Function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export interface ViewDataPayloadStructure { | |
viewTemplate: string | |
outputData: object | |
} | |
export interface ApiDataPayloadStructure { | |
statusCode: number | |
statusMessage: string | |
responseMessage: string | |
outputData: object | |
} | |
export type OutputTypeStructure = 'json' | 'html' | null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment