-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Move Falsy, Primitive to basic directory
- Loading branch information
1 parent
65da31e
commit 1a4b8e0
Showing
5 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export type { Falsy } from './Falsy'; | ||
export type { Primitive } from './Primitive'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './basic'; |