File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ The `unknownutil` provides the following predicate functions
1616
1717- ` isString(x: unknown): x is string `
1818- ` isNumber(x: unknown): x is number `
19+ - ` isBoolean(x: unknown): x is boolean `
1920- ` isArray<T extends unknown>(x: unknown, pred?: Predicate<T>): x is T[] `
2021- ` isObject<T extends unknown>(x: unknown, pred?: Predicate<T>): x is Record<string, T> `
2122- ` isFunction(x: unknown): x is (...args: unknown[]) => unknown `
@@ -93,6 +94,7 @@ The `unknownutil` provides the following ensure functions which will raise
9394
9495- ` ensureString(x: unknown): assert x is string `
9596- ` ensureNumber(x: unknown): assert x is string `
97+ - ` ensureBoolean(x: unknown): assert x is boolean `
9698- ` ensureArray<T extends unknown>(x: unknown, pred?: Predicate<T>): assert x is T[] `
9799- ` ensureObject<T extends unknown>(x: unknown, pred?: Predicate<T>): x ensure Record<string, T> `
98100- ` ensureFunction(x: unknown): x ensure (...args: unknown[]) => unknown `
You can’t perform that action at this time.
0 commit comments