simply.d.ts 1.1 KB

12345678910111213141516
  1. type ComponentInstance<Props, Methods, Data, Mixins, InstanceMethods> = unknown;
  2. declare function ComponentImpl<Props, Methods = unknown, Data = unknown, Mixins = unknown, InstanceMethods = unknown>(defaultProps: Props, methods?: Methods & ThisType<ComponentInstance<Props, Methods, Data, Mixins, InstanceMethods>>, data?: Data & any, mixins?: Mixins & any, instanceMethods?: InstanceMethods & any): void;
  3. export interface IPlatformEvent {
  4. currentTarget: {
  5. dataset: Record<string, unknown>;
  6. };
  7. target: {
  8. dataset: Record<string, unknown>;
  9. };
  10. }
  11. export declare function triggerEvent(instance: any, eventName: string, value: unknown, e?: any): void;
  12. export declare function triggerEventOnly(instance: any, eventName: string, e?: any): void;
  13. export declare function triggerEventValues(instance: any, eventName: string, values: any[], e?: any): void;
  14. export declare function triggerCatchEvent(instance: any, eventName: string, e?: any): void;
  15. export declare function getValueFromProps(instance: any, propName?: string | string[]): any;
  16. export { ComponentImpl as Component };