Skip to content

Commit 7aa0e8e

Browse files
committed
Correct grammar!
1 parent c796214 commit 7aa0e8e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/stringPath.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ type StringPathOptions = {
6868

6969
type If<
7070
Options extends StringPathOptions,
71-
Subj extends keyof StringPathOptions,
72-
Pred,
71+
Pred extends keyof Options,
72+
Subj,
7373
Then,
7474
Else = never,
7575
Value = unknown
76-
> = Options[Subj] extends Pred
76+
> = Options[Pred] extends Subj
7777
? Options['type'] extends never
7878
? Then
7979
: Value extends Options['type']

0 commit comments

Comments
 (0)