Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
SchroterQuentin committed Nov 10, 2023
1 parent 3adac8e commit cc27b1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Bones.UI/core/serviceFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class ServiceFactory {
return { remove };
}

addNotify<TEntity, U = {}>(others?: (notifyService: INotifyService<TEntity>) => U): { subscribe: (event: "add" | "update" | "delete" | "all", callback: AllCallback<TEntity>) => number, unsubscribe: (id: number) => void } & U {
addNotify<TEntity, U = {}>(others?: (notifyService: NotifyService<TEntity>) => U): { subscribe: (event: "add" | "update" | "delete" | "all", callback: AllCallback<TEntity>) => number, unsubscribe: (id: number) => void } & U {
if (!this.notifyService) throw new Error("Create your service with a type if you want to use notify");

const notifyService = (this.notifyService as NotifyService<TEntity>)
Expand Down

0 comments on commit cc27b1f

Please sign in to comment.