Skip to content

Commit 52d0835

Browse files
committed
improve provider typing
1 parent 170ab09 commit 52d0835

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/component/src/provider.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ export class Provider<T = unknown> {
4848
return this.instancesDeferred.get(normalizedIdentifier)!.promise;
4949
}
5050

51+
getImmediate(identifier: string | undefined, options: { optional: true }): T | null
52+
getImmediate(identifier?: string, options?: {optional: false}): T
5153
getImmediate(
5254
identifier: string = DEFAULT_ENTRY_NAME,
5355
options?: { optional: boolean }

0 commit comments

Comments
 (0)