feat(typescript-types): Add IsAny<T>
This commit is contained in:
1
packages/typescript-types/src/index.d.ts
vendored
Normal file
1
packages/typescript-types/src/index.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export type * from './is-any.js'
|
||||
2
packages/typescript-types/src/is-any.ts
Normal file
2
packages/typescript-types/src/is-any.ts
Normal 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
|
||||
Reference in New Issue
Block a user