You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently using the following to type @hapi/content. It would be nice if this module exported its own types. I d'ont have the time or resources to make a PR. Sorry about that.
// types.d.tsdeclare module '@hapi/content'{exporttypeMutlipartContentType={mime: `multipart/${string}`
boundary: string}exporttypeContentType={mime: string}exportfunctiontype(header: `multipart/${string}`): MutlipartContentTypeexportfunctiontype(header: string): ContentType|MutlipartContentTypeexporttypeContentDisposition={name: string}&{[_instring]?: string}/** * @param header - The value of the Content-Disposition "form-data" header */exportfunctiondisposition(header: string): typeofheaderextends `inline${string}` | `attachment${string}` ? never : ContentDisposition}
The text was updated successfully, but these errors were encountered:
I am currently using the following to type
@hapi/content
. It would be nice if this module exported its own types. I d'ont have the time or resources to make a PR. Sorry about that.The text was updated successfully, but these errors were encountered: