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
readonly
typescript@next
--sourceVersion
--dtsVersion
this
Ember.Object.extend
init
super
Object.assign
extend
&
any
--noImplicitThis
[s: string]: any
--noImplicitAny
The text was updated successfully, but these errors were encountered:
Could you contextually type the argument to extend like so?
interface BoundMethod<T> { (this: T, ...args: any[]): any; } interface ObjectWithBoundMethods<T> { [propName: string]: BoundMethod<T> | {} } class MyObject { extend<T extends ObjectWithBoundMethods<T & this>>(other: T): T & this; }
Sorry, something went wrong.
No branches or pull requests
6702 -
readonly
in .d.ts filestypescript@next
users can't give their generated .d.ts files to 1.8 usersreadonly
in .d.ts until 2.0 ships, or "later"typescript@next
if your consumers aren't either--sourceVersion
or--dtsVersion
?8191 -
this
in object literalsEmber.Object.extend
, why doesn'tinit
provide a contextualsuper
type?Object.assign
?extend
signature correctly?&
of themany
, flag an error under--noImplicitThis
extend
signature still impossible to write in an inferential wayEmber.Object.extend
to say to disable this behavior?[s: string]: any
signaturethis
this
computation8124 - Typechecking of dependencies
any
s, then try to compile with--noImplicitAny
The text was updated successfully, but these errors were encountered: