mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-05-05 23:41:06 +00:00
initial commit
This commit is contained in:
commit
f6dd426830
1145 changed files with 102834 additions and 0 deletions
6
package/@stackframe/stack-shared/dist/utils/booleans.d.ts
vendored
Normal file
6
package/@stackframe/stack-shared/dist/utils/booleans.d.ts
vendored
Normal 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 };
|
||||
Loading…
Add table
Add a link
Reference in a new issue