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
Sorrry if this is due to a mistake of mine, or if it's a known issue. But quoting literal numbers makes little sense type-wise to me, and I easily found a work around on SO which typescript is happy with.
Bug:
import {N} from 'ts-toolbelt';
type T = N.Range<1, 100>;
Error/warning
[{
"resource":...,
"owner": "typescript",
"code": "2589",
"severity": 8,
"message": "Type instantiation is excessively deep and possibly infinite.",
"source": "ts",
"startLineNumber": ...,
"startColumn": ...,
"endLineNumber": ....,
"endColumn": ...
}]
Sorrry if this is due to a mistake of mine, or if it's a known issue. But quoting literal numbers makes little sense type-wise to me, and I easily found a work around on SO which typescript is happy with.
Bug:
Error/warning
Alternative implementation from Guillaume Mastio:
The text was updated successfully, but these errors were encountered: