Skip to content

Commit

Permalink
chore: Move Falsy, Primitive to basic directory
Browse files Browse the repository at this point in the history
  • Loading branch information
haejunejung committed Aug 15, 2024
1 parent 65da31e commit 1a4b8e0
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 1 deletion.
1 change: 0 additions & 1 deletion source/Falsy.d.ts

This file was deleted.

17 changes: 17 additions & 0 deletions source/basic/Falsy.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* A type representing all the values that are considered falsy in JavaScript.
*
* In JavaScript, falsy values are those that evaluate to `false` in a Boolean context.
* This type includes:
*
* - `false` : The Boolean false value.
* - `''` : An empty string.
* - `0`: The number zero.
* - `null`: The null value representing the absence of any value.
* - `undefined`: A value that indicates a variable has not been assigned a value.
*
* This type can be useful for defining variables, parameters, or return types that
* should only accept or return falsy values.
*/

export type Falsy = false | '' | 0 | null | undefined;
File renamed without changes.
2 changes: 2 additions & 0 deletions source/basic/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export type { Falsy } from './Falsy';
export type { Primitive } from './Primitive';
1 change: 1 addition & 0 deletions source/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './basic';

0 comments on commit 1a4b8e0

Please sign in to comment.