feat(typescript-types): Add IsAny<T>

This commit is contained in:
T. R. Bernstein
2025-07-12 01:58:42 +02:00
parent 3c17970cd0
commit 5454e903b8
8 changed files with 219 additions and 51 deletions

View File

@@ -0,0 +1 @@
export type * from './is-any.js'

View File

@@ -0,0 +1,2 @@
// Based on: https://stackoverflow.com/questions/49927523/disallow-call-with-any/49928360#49928360
export type IsAny<T> = 0 extends 1 & T ? true : false