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
{{ message }}
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.
In situations where typescript can't infer the type of this in a function (exposed by --noImplicitThis), typewiz should record the this type at runtime and add the relevant type annotation this: someType as the first parameter of the function. To implement this one would have to use the TypeChecker (similarly to #29) with the tryGetThisTypeAt(node) function (this function is not exposed by the interface, see checker.ts for the implementation).
The text was updated successfully, but these errors were encountered:
In situations where typescript can't infer the type of
this
in a function (exposed by--noImplicitThis
), typewiz should record thethis
type at runtime and add the relevant type annotationthis: someType
as the first parameter of the function. To implement this one would have to use the TypeChecker (similarly to #29) with thetryGetThisTypeAt(node)
function (this function is not exposed by the interface, see checker.ts for the implementation).The text was updated successfully, but these errors were encountered: