Improve logic to show dialog outside of components

This commit is contained in:
schroda
2025-10-03 22:34:46 +02:00
parent 60f11a2832
commit 9329ef5fdc
12 changed files with 192 additions and 65 deletions

10
src/UtilTypes.d.ts vendored
View File

@@ -53,3 +53,13 @@ type OmitNotMatching<T, K extends keyof T> = {
type ExtractCommon<T, U> = {
[K in keyof T & keyof U]: T[K] extends U[K] ? T[K] : never;
};
type HasRequiredKeys<T> =
Exclude<
{
[K in keyof T]: T extends Record<K, T[K]> ? K : never;
}[keyof T],
undefined
> extends never
? false
: true;