-
-
Notifications
You must be signed in to change notification settings - Fork 698
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add function assertions * implement function checks in expect interface * fix flag message * correctly reference inspect * use existing assersions in asserts * Fix typo Co-authored-by: San Mônico <[email protected]> * Add `AsyncGeneratorFunction` assertion * update assertion messages * alias `isFunction` to `isCallable` * Square up boolean logic in `isCallable` function * Update callable JSDoc comment * Add error tests for function expect assertions * Add negation to other callable assertions * Convert expect calls in test to type string assertions * Remove assertion properties in favor of a normal type assertion * Remove `.is{FunctionType}` assert interfaces * Move `functionTypes` object * Add a bunch of tests * Move test * Add more tests to should interface * Revert formatting change * Add should test for `callable` --------- Co-authored-by: San Mônico <[email protected]>
- Loading branch information
Showing
5 changed files
with
226 additions
and
24 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
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
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