Skip to content

Instantly share code, notes, and snippets.

@adegbengaagoro
Last active February 10, 2022 02:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adegbengaagoro/1f4b2d56fdfc3248884ee0f5f2b0fc2e to your computer and use it in GitHub Desktop.
Save adegbengaagoro/1f4b2d56fdfc3248884ee0f5f2b0fc2e to your computer and use it in GitHub Desktop.
Content Negotiation Example - viewAndApiOutputHelper Function
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