Skip to content

Commit

Permalink
Remove EventCaptures type; update all path type
Browse files Browse the repository at this point in the history
  • Loading branch information
craigbeck committed Apr 25, 2024
1 parent 9fcfb6a commit a4ae98c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/Model/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,6 @@ export interface ModelOnEventMap {
all: ModelEvent;
}

/**
* Racer emits captures like
* 'foo.bar.1'
* Derby emits captures like
* ['foo', 'bar', '1']
* */
type EventCaptures = string | string[];
/**
* With `useEventObjects: true` captures are emmitted as
* ['foo.bar.1']
Expand All @@ -42,7 +35,7 @@ declare module './Model' {
interface RootModel {
on(
eventType: 'all',
listener: (captures: EventCaptures, event: ModelOnEventMap[keyof ModelOnEventMap]) => void
listener: (pathSegments: string[], event: ModelOnEventMap[keyof ModelOnEventMap]) => void
): () => void;
on(
eventType: 'error',
Expand Down

0 comments on commit a4ae98c

Please sign in to comment.