Skip to content

Commit

Permalink
refactor: API of Scope
Browse files Browse the repository at this point in the history
  • Loading branch information
mnasyrov committed Oct 28, 2023
1 parent 00e6a09 commit fde9e44
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/core/scope.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@ export type Scope = Readonly<
Destroyable & {
onDestroy: (teardown: ScopeTeardown) => void;

create: <
T extends Unsubscribable | Destroyable,
Factory extends (...args: any[]) => T,
>(
factory: Factory,
...args: Parameters<Factory>
) => T;
add: <T extends Unsubscribable | Destroyable>(resource: T) => T;

action: typeof action;
Expand Down Expand Up @@ -144,7 +137,6 @@ export function createScope(): Scope {
destroy: scope.destroy.bind(scope),
onDestroy: scope.onDestroy.bind(scope),

create: scope.create.bind(scope),
add: scope.add.bind(scope),

action: scope.action.bind(scope),
Expand Down

0 comments on commit fde9e44

Please sign in to comment.