Skip to content

Commit

Permalink
Merge pull request #893 from zhangfisher/master
Browse files Browse the repository at this point in the history
Update omi.d.ts fire method type
  • Loading branch information
dntzhang authored Jul 3, 2024
2 parents c999c90 + 8390dfa commit 32d4813
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/omi/omi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ declare namespace Omi {
forceUpdate(): void;
updateProps(obj: any): void;
updateSelf(): void;
fire(name: string, data?: any): void;
fire(name: string, data?: any, options?: {bubbles?:boolean, composed?: boolean}): void;

// Abstract methods don't infer argument types
// https://github.com/Microsoft/TypeScript/issues/14887
Expand Down Expand Up @@ -169,7 +169,7 @@ declare namespace Omi {
forceUpdate(): void;
updateProps(obj: any): void;
updateSelf(): void;
fire(name: string, data?: any): void;
fire(name: string, data?: any, options?: {bubbles?:boolean, composed?: boolean}): void;

// Abstract methods don't infer argument types
// https://github.com/Microsoft/TypeScript/issues/14887
Expand Down

0 comments on commit 32d4813

Please sign in to comment.