You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think there should exist typing for the name property below:
classA{}A.constructor.name// error
If I recall it correctly the name property of a function is readonly.
interfaceFunctionConstructor{/** * Creates a new function. * @param args A list of arguments the function accepts. */new(...args: string[]): Function;(...args: string[]): Function;prototype: Function;name: string;// added}
The text was updated successfully, but these errors were encountered:
the name property on interface Function is defined in lib.es6.d.ts. if you compile with --target ES6 you should see it. alternatively you can define it locally:
interfaceFunction{name: string;}
we are working on fixing up the lib/target interaction for the next release. see #4168
I think there should exist typing for the name property below:
If I recall it correctly the
name
property of a function is readonly.The text was updated successfully, but these errors were encountered: