@signal24/vue-foundation 4.30.8 → 4.30.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -26,20 +26,16 @@ type ExtractComponentProps<C> = C extends new (...args: any) => any ? InstanceTy
26
26
  type CleanProps<P> = {
27
27
  [K in keyof P as K extends keyof (VNodeProps & AllowedComponentProps & ComponentCustomProps) ? never : string extends K ? never : K]: P[K];
28
28
  };
29
- type HasCallbackProp<C> = CleanProps<ExtractComponentProps<C>> extends {
30
- callback: (result: any) => void;
31
- } ? true : false;
32
- type OverlayComponent<C extends Component> = HasCallbackProp<C> extends true ? C : never;
33
29
  type ComponentReturn<C> = CleanProps<ExtractComponentProps<C>> extends {
34
30
  callback: (result: infer R) => void;
35
31
  } ? R : never;
36
32
  type OverlayComponentProps<C> = CleanProps<ExtractComponentProps<C>>;
37
- export declare function createOverlayInjection<C extends Component, R extends ComponentReturn<C>>(component: OverlayComponent<C>, props: OverlayComponentProps<C>, options?: OverlayOptions<C, R>): OverlayInjection<C>;
33
+ export declare function createOverlayInjection<C extends Component, R extends ComponentReturn<C>>(component: C, props: OverlayComponentProps<C>, options?: OverlayOptions<C, R>): OverlayInjection<C>;
38
34
  export declare function dismissOverlayInjectionByInstance(instance: AnyComponentPublicInstance): void;
39
35
  export declare function dismissOverlayInjectionByInternalInstance(instance: ComponentInternalInstance): void;
40
36
  export declare function dismissOverlayInjectionByVnode(vnode: VNode): boolean;
41
37
  export declare function dismissOverlayInjectionById(id: string): boolean;
42
38
  export declare function removeOverlayInjection(injection: OverlayInjection<any>): void;
43
- export declare function presentOverlay<C extends Component, R extends ComponentReturn<C>>(component: OverlayComponent<C>, props: Omit<OverlayComponentProps<C>, 'callback'>, options?: OverlayOptions<C, R>): Promise<R | undefined>;
39
+ export declare function presentOverlay<C extends Component, R extends ComponentReturn<C>>(component: C, props: Omit<OverlayComponentProps<C>, 'callback'>, options?: OverlayOptions<C, R>): Promise<R | undefined>;
44
40
  export declare function updateOverlayProps<C extends Component>(injection: OverlayInjection<C>, props: Partial<Omit<OverlayComponentProps<C>, 'callback'>>): Promise<void>;
45
41
  export {};