We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
foo?: type
Right now
foo: func(a: option<u32>)
generates:
export interface Input { foo(a: number | null): void; }
where it should ideally instead generate:
export interface Input { foo(a?: number): void; }
The text was updated successfully, but these errors were encountered:
I think the proposed approach will not work due to following - or it should fall back to unions in such cases
// foo: func(a: option<u32>, b: u32) export interface Input { foo(a?: number, b: number): void; // ^ A required parameter cannot follow an optional parameter.ts(1016) }
Sorry, something went wrong.
No branches or pull requests
Right now
generates:
where it should ideally instead generate:
The text was updated successfully, but these errors were encountered: