Skip to content

Commit

Permalink
revert: add back provider type
Browse files Browse the repository at this point in the history
  • Loading branch information
jmesrje committed Jan 29, 2025
1 parent 95688c8 commit 464d673
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ export = Framework;
export as namespace Framework;

declare namespace Framework {
export type Provider<T> = T & {
Name?: string
Uses?: any[]
Order?: number
Init?: () => void
Start?: () => void
}

export type Lifecycle<T extends any[]> = {
Name: string
Fire: (self: Lifecycle<T>, ...args: T) => void;
Expand Down

0 comments on commit 464d673

Please sign in to comment.