Skip to content

Commit c673ccb

Browse files
fix(guardKey): change return from boolean to value is Key
1 parent 6a7f079 commit c673ccb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import { Key } from '../../type/key.type';
22
import { ResultCallback } from '../../type/result-callback.type';
3-
export type GuardKey = (value: Key, callback?: ResultCallback) => boolean;
3+
export type GuardKey = (value: Key, callback?: ResultCallback) => value is Key;

0 commit comments

Comments
 (0)