Repository navigation
v0.5.0
·
14 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
0.5.0
Minor Changes
-
fb3d682: Require the constructor's global arguments whenever
TGlobalArgscannot beundefined. Task
functions and the resolve result declare the global arguments asTGlobalArgs, but the constructor
accepted no value at all, sonew Resolver<{ apiKey: string }>()type checked while every task was
handedundefined.This is a type level change only, the runtime behaviour is unchanged.
new Resolver()and
new Resolver(globalArgs)keep working as before. If the global arguments are only supplied later
throughsetGlobalArgs()orresolve({ globalArgs }), includeundefinedin the type, for example
new Resolver<{ apiKey: string } | undefined>().