Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
sajmoni committed Jan 8, 2023
1 parent 53b78d8 commit e0cb875
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ export type BehaviorOptions = {
export type Behavior = Delay | Forever | Every

export type Instance = {
update: (deltaTime: number) => void
update: (deltaTime: number) => Promise<void>
delay: (delay: number, options?: BehaviorOptions) => Promise<void>
forever: (
callback: ForeverCallback,
interval: number,
options?: BehaviorOptions,
) => void
) => Forever
every: (
callback: EveryCallback,
duration: number,
Expand Down

0 comments on commit e0cb875

Please sign in to comment.