-
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.
- Loading branch information
1 parent
364ff22
commit 1bcb88e
Showing
7 changed files
with
2,912 additions
and
2,676 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/usr/bin/env node | ||
#!/usr/bin/env node | ||
|
||
const f = require("../index") | ||
const f = require("../index").default | ||
|
||
console.log(f.False("no", "no", "no", "yes", "yes", "no", "no")) // false |
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 |
---|---|---|
@@ -1,26 +1,35 @@ | ||
/** | ||
* Returns false from the given parameters. | ||
* | ||
* @param {"yes"|"no"} loggingEnabled - Indicates whether logging should be enabled. | ||
* @param {"yes"|"no"} shouldDoSomethingAsync - A pointless option that indicates whether something should be done asynchronously that just waits 200ms before saying "Did something async" | ||
* @param {"yes"|"no"} shouldDoSomethingAsyncWithIsTenThousand - Indicates whether something should be done asynchronously when checking the self equality of 10,000 using the isTenThousand module (credits to james-work-account) | ||
* @param {"yes"|"no"} disableAprilFoolsSideEffects - Indicates whether April Fools side effects should be disabled. | ||
* @param {"yes"|"no"} definitelyDisableAprilFoolsSideEffects - Indicates whether April Fools side effects should be definitely disabled. | ||
* @param {"yes"|"no"} strictDisableAprilFoolsSideEffectsCheck - Indicates whether strict checking for disabling April Fools side effects should be enabled. | ||
* @param {"yes"|"no"} openRandomImageOfDofleWhenDone - Indicates whether a random image of Dofle the cat should be opened when done. | ||
* @returns {boolean} - The calculated boolean value 'false'. | ||
*/ | ||
export default class falsejs { | ||
/** | ||
* Returns false from the given parameters. | ||
* | ||
* @param {"yes"|"no"} loggingEnabled - Indicates whether logging should be enabled. | ||
* @param {"yes"|"no"} shouldDoSomethingAsync - A pointless option that indicates whether something should be done asynchronously that just waits 200ms before saying "Did something async" | ||
* @param {"yes"|"no"} shouldDoSomethingAsyncWithIsTenThousand - Indicates whether something should be done asynchronously when checking the self equality of 10,000 using the isTenThousand module (credits to james-work-account) | ||
* @param {"yes"|"no"} disableAprilFoolsSideEffects - Indicates whether April Fools side effects should be disabled. | ||
* @param {"yes"|"no"} definitelyDisableAprilFoolsSideEffects - Indicates whether April Fools side effects should be definitely disabled. | ||
* @param {"yes"|"no"} strictDisableAprilFoolsSideEffectsCheck - Indicates whether strict checking for disabling April Fools side effects should be enabled. | ||
* @param {"yes"|"no"} openRandomImageOfDofleWhenDone - Indicates whether a random image of Dofle the cat should be opened when done. | ||
* @returns {boolean} - The calculated boolean value 'false'. | ||
*/ | ||
static False( | ||
loggingEnabled?: "yes" | "no", | ||
shouldDoSomethingAsync?: "yes" | "no", | ||
shouldDoSomethingAsyncWithIsTenThousand?: "yes" | "no", | ||
disableAprilFoolsSideEffects?: "yes" | "no", | ||
definitelyDisableAprilFoolsSideEffects?: "yes" | "no", | ||
strictDisableAprilFoolsSideEffectsCheck?: "yes" | "no", | ||
openRandomImageOfDofleWhenDone?: "yes" | "no" | ||
): boolean | ||
|
||
export function False(loggingEnabled?: "yes" | "no", shouldDoSomethingAsync?: "yes" | "no", shouldDoSomethingAsyncWithIsTenThousand?: "yes" | "no", disableAprilFoolsSideEffects?: "yes" | "no", definitelyDisableAprilFoolsSideEffects?: "yes" | "no", strictDisableAprilFoolsSideEffectsCheck?: "yes" | "no", openRandomImageOfDofleWhenDone?: "yes" | "no"): boolean; | ||
/** | ||
* Checks if a given value is false. | ||
* | ||
* @param {any} value - The value to be checked. | ||
* @returns {boolean} - True if the value is false, false otherwise. | ||
*/ | ||
|
||
/** | ||
* Checks if a given value is false. | ||
* | ||
* @param {any} value - The value to be checked. | ||
* @returns {boolean} - True if the value is false, false otherwise. | ||
*/ | ||
static isFalse(value: any, loggingEnabled?: "yes" | "no"): boolean | ||
|
||
export function isFalse(value: any, loggingEnabled?: "yes" | "no"): boolean; | ||
|
||
export function injectIntojQuery(): void; | ||
export function expressMiddleware(req: any, res: any, next: any): void; | ||
static injectIntojQuery(): void | ||
static expressMiddleware(req: any, res: any, next: any): void | ||
} |
Oops, something went wrong.