Skip to content

Commit

Permalink
fix: fixing assert has property
Browse files Browse the repository at this point in the history
  • Loading branch information
Farenheith committed Dec 20, 2024
1 parent 61d07bd commit 4b1d311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/asserts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ export function assertHasProperty<T extends object, K extends keyof T>(
t: T,
prop: K,
): asserts t is T & {
[k in K]: NonNullable<T[k]>;
[k in K]: Required<T>[k];
};
export function assertHasProperty<P extends ObjectKeyType>(
t: any,
Expand Down

0 comments on commit 4b1d311

Please sign in to comment.