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
Array.isArray
#41808
ReadonlyArray
#41563 #41607
callbackify
#40011
@types
lib
--listFiles
--explainFiles
--explainInputFiles
listFiles
showConfig
.d.ts
#41587
declare let x: typeof abstract class C {}; let y = x;
In this example
x
y
Switching to new output isn't backwards-compatible.
Also, if you add a private member, it's not representable, or if you try to reuse the original syntax, it would be nominal.
// These are incompatible. declare let cc1: typeof class C { private yadda: string; } declare let cc2: typeof class C { private yadda: string; }
Can you use typeof cc1?
typeof cc1
cc1
cc2
Feeling: when classes are anonymous and don't have a symbol you can refer to, maybe those types should be compatible?
We must have logic for doing this with unique symbols.
We also have special logic for this in the JS declaration emitter.
Striving to give working .d.ts output without errors would be more ideal all-around.
function foo(): typeof class { private x: string } { return class { private x = 32 }; }
unique symbol
DefinitelyTyped/DefinitelyTyped#49914
styled-components/native
react-native
styled-components-react-native
skipLibCheck
patch-package
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Array.isArray
Changes#41808
ReadonlyArray
.Signature Relation Changes that Affect Overload Resolution
#41563
#41607
callbackify
is wrong in both old/new versions of TypeScript.Explain Why Files are Included
#40011
@types
auto-inclusionlib
settings people don't understand, or alib
reference that came up somewhere.--listFiles
--listFiles
so it's a hard dependency.--explainFiles
--explainInputFiles
listFiles
?showConfig
?typeof class
.d.ts
emit#41587
In this example
x
has the original type.y
gets rewritten to the "equivalent" class.Switching to new output isn't backwards-compatible.
Also, if you add a private member, it's not representable, or if you try to reuse the original syntax, it would be nominal.
Can you use
typeof cc1
?cc1
and notcc2
?Feeling: when classes are anonymous and don't have a symbol you can refer to, maybe those types should be compatible?
We must have logic for doing this with unique symbols.
We also have special logic for this in the JS declaration emitter.
cc1
and notcc2
?"Striving to give working
.d.ts
output without errors would be more ideal all-around.unique symbol
.d.ts
emit, but it may still be a frustrating experience..d.ts
emit..d.ts
emit for mixins..d.ts
emit in the future.React Native
.d.ts
ChangesDefinitelyTyped/DefinitelyTyped#49914
styled-components/native
relies on thereact-native
types.styled-components-react-native
.skipLibCheck
?patch-package
?The text was updated successfully, but these errors were encountered: