Skip to content

Commit

Permalink
make arg for late bound factory mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzofox3 committed Jun 20, 2024
1 parent 8fe239f commit 2b4da27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ type ModuleAPI<Registry, PublicAPI extends Array<keyof Registry> = []> = {
type ProviderFnArgs<Registry extends ObjectLike> = {
[key in keyof ExternalDeps<Registry>]:
| ExternalDeps<Registry>[key]
| ((arg?: InjectableMap<Registry>) => ExternalDeps<Registry>[key]); // technically there is no constraint on arg, it is quite the opposite: it may bring new constraints but this gets contrived.
| ((arg: InjectableMap<Registry>) => ExternalDeps<Registry>[key]); // technically there is no constraint on arg, it is quite the opposite: it may bring new constraints but this gets contrived.
};

export type ProviderFn<
Expand Down

0 comments on commit 2b4da27

Please sign in to comment.