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
{{ message }}
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.
/** * type for S3's customHeaders function */exportinterfaceS3CustomHeaderFunction{(id: number): void;}
[snip]
/** * Additional headers sent along with each signature request. * * If you declare a function as the value, the associated file's ID will be passed to your function when it is invoked * * @default `{}` */
customHeaders?: any|S3CustomHeaderFunction;
Isn't there an extra | at the beginning or I'm not reading it right
TypeScript has supported leading | for a while, see microsoft/TypeScript#12071. It was purely a stylistic choice from me to try and visually separate the two items of the union.
I'm going to wait for #1989 before raising a PR for this.
And I'm seeing some issues here
Thanks I was missing some parenthesis around the function, I've updated the snippet.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Type of issue
Uploader type
Current:
[snip]
The type should really be something like this:
The text was updated successfully, but these errors were encountered: