diff --git a/libs/dialog/src/lib/types.ts b/libs/dialog/src/lib/types.ts index a4b5fa1..f43da58 100644 --- a/libs/dialog/src/lib/types.ts +++ b/libs/dialog/src/lib/types.ts @@ -59,10 +59,11 @@ export type JustProps = Pick< }[keyof T] >; -export type ExtractRefProp = NonNullable< +export type ExtractRefProp = Exclude< { [P in keyof T]: T[P] extends DialogRef ? P : never; - }[keyof T] + }[keyof T], + undefined | null >; export type ExtractData = ExtractRefProp extends never