Skip to content

Commit

Permalink
Merge pull request #122 from jacobg213/master
Browse files Browse the repository at this point in the history
fix: allow nullable values again
  • Loading branch information
NetanelBasal authored Jul 5, 2024
2 parents f8da4bf + 86f6605 commit 985b710
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libs/dialog/src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,11 @@ export type JustProps<T extends object> = Pick<
}[keyof T]
>;

export type ExtractRefProp<T> = NonNullable<
export type ExtractRefProp<T> = Exclude<
{
[P in keyof T]: T[P] extends DialogRef ? P : never;
}[keyof T]
}[keyof T],
undefined | null
>;

export type ExtractData<T> = ExtractRefProp<T> extends never
Expand Down

0 comments on commit 985b710

Please sign in to comment.