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
type parameter accessor declaration different types
Playground Link
function makeV() { type X<T> = { get done(): false | T; set done(v: T | null) } return null! as X<number> } export const v = makeV();
Correct declaration files are generated for accessors that have divergent read/write types.
d.ts keeps type parameter in type for v:
d.ts
v
export declare const v: { get done(): false | T; set done(v: T | null); };
Seems to have not worked since 5.3 when divergent property types were first preserved in declaration files. Discovered while investigating #60864
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
π Search Terms
type parameter accessor declaration different types
π Version & Regression Information
β― Playground Link
Playground Link
π» Code
π Actual behavior
Correct declaration files are generated for accessors that have divergent read/write types.
π Expected behavior
d.ts
keeps type parameter in type forv
:Additional information about the issue
Seems to have not worked since 5.3 when divergent property types were first preserved in declaration files. Discovered while investigating #60864
The text was updated successfully, but these errors were encountered: