We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
boolean
value
Key
1 parent 6a7f079 commit c673ccbCopy full SHA for c673ccb
packages/type/src/guard/type/guard-key.type.ts
@@ -1,3 +1,3 @@
1
import { Key } from '../../type/key.type';
2
import { ResultCallback } from '../../type/result-callback.type';
3
-export type GuardKey = (value: Key, callback?: ResultCallback) => boolean;
+export type GuardKey = (value: Key, callback?: ResultCallback) => value is Key;
0 commit comments