type-challenges / type-challenges

Collection of TypeScript type challenges with online judge

Home Page:https://tsch.js.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

10969 - Integer

sunupupup opened this issue · comments

type Integer<T extends number> = number extends T
  ? never
  : `${T}` extends `${any}.${any}`
  ? never
  : T;