initial commit

This commit is contained in:
CamelAIorg 2025-07-29 23:57:16 +08:00
commit f6dd426830
1145 changed files with 102834 additions and 0 deletions

View file

@ -0,0 +1,6 @@
type Truthy<T> = T extends null | undefined | 0 | "" | false ? false : true;
type Falsy<T> = T extends null | undefined | 0 | "" | false ? true : false;
declare function isTruthy<T>(value: T): value is T & Truthy<T>;
declare function isFalsy<T>(value: T): value is T & Falsy<T>;
export { type Falsy, type Truthy, isFalsy, isTruthy };