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
Since in TypeScript type definition files all exported variables are treated as read-only, and cannot be reassigned. Would it be possbile to convert this to a function? For example:
I'd like to add type definitions for the library to DefinitelyTyped, but unfortunaltely the
active
global property is preventing that:stretchy/src/stretchy.js
Line 135 in 68bc059
Since in TypeScript type definition files all exported variables are treated as read-only, and cannot be reassigned. Would it be possbile to convert this to a function? For example:
This way the library could be (more easily) usable in TypeScript projects. You can see my current type definition implementation here.
The text was updated successfully, but these errors were encountered: