Skip to content

Commit 985b710

Browse files
authored
Merge pull request #122 from jacobg213/master
fix: allow nullable values again
2 parents f8da4bf + 86f6605 commit 985b710

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libs/dialog/src/lib/types.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,11 @@ export type JustProps<T extends object> = Pick<
5959
}[keyof T]
6060
>;
6161

62-
export type ExtractRefProp<T> = NonNullable<
62+
export type ExtractRefProp<T> = Exclude<
6363
{
6464
[P in keyof T]: T[P] extends DialogRef ? P : never;
65-
}[keyof T]
65+
}[keyof T],
66+
undefined | null
6667
>;
6768

6869
export type ExtractData<T> = ExtractRefProp<T> extends never

0 commit comments

Comments
 (0)