Skip to content

Commit f44f000

Browse files
refactor(GuardObjectKey): use Key type instead keyof
1 parent 77a26b6 commit f44f000

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
export type GuardObjectKey = <Obj extends object, Key extends keyof Obj>(value: Obj, key: Key) => value is Obj;
1+
import { Key } from '../../type/key.type';
2+
import { ResultCallback } from '../../type/result-callback.type';
3+
export type GuardObjectKey = <Obj extends object>(value: Obj, key: Key | Key[], callback?: ResultCallback) => value is Obj;

0 commit comments

Comments
 (0)