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
The current toJS implementation has the following signature:
typescript function toJS(source: any, detectCycles?: boolean, __alreadySeen?: [any, any][]): any;
I'd like to see it return the same type as it takes as source, so I don't have to cast the return value:
function toJS<T>(source: T, detectCycles?: boolean, __alreadySeen?: [any, any][]): T;
I tested with TypeScript 1.8, and the signature change seems compatible with existing code as TypeScript simply infers T.
The text was updated successfully, but these errors were encountered:
Implemented #543: better typings for toJS
toJS
101da7e
e40fc86
Closed, as this will be added to 3.0
Sorry, something went wrong.
No branches or pull requests
The current toJS implementation has the following signature:
I'd like to see it return the same type as it takes as source, so I don't have to cast the return value:
I tested with TypeScript 1.8, and the signature change seems compatible with existing code as TypeScript simply infers T.
The text was updated successfully, but these errors were encountered: