-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
Out of ScopeThis idea sits outside of the TypeScript language design constraintsThis idea sits outside of the TypeScript language design constraintsSuggestionAn idea for TypeScriptAn idea for TypeScriptToo ComplexAn issue which adding support for may be too complex for the value it addsAn issue which adding support for may be too complex for the value it adds
Description
I request a runtime type checking system that perhaps looks something like this:
function square(x: number!) {
return x * x;
}
Where the !
tells the compiler to generate a runtime type check for a number, something akin to tcomb.js.
Of course, this gets much more complicated with interfaces, but you get the idea.
danrasmuson, tkrotoff, Nateowami, davidbarratt, trusktr and 49 moresapegin, andfaulkner, malbertSC, krzkaczor and kgtkr
Metadata
Metadata
Assignees
Labels
Out of ScopeThis idea sits outside of the TypeScript language design constraintsThis idea sits outside of the TypeScript language design constraintsSuggestionAn idea for TypeScriptAn idea for TypeScriptToo ComplexAn issue which adding support for may be too complex for the value it addsAn issue which adding support for may be too complex for the value it adds