Skip to content

v0.5.0

Choose a tag to compare

@Robin-w151 Robin-w151 released this 06 Aug 21:41
· 14 commits to main since this release
Immutable release. Only release title and notes can be modified.
v0.5.0
7001e38

0.5.0

Minor Changes

  • fb3d682: Require the constructor's global arguments whenever TGlobalArgs cannot be undefined. Task
    functions and the resolve result declare the global arguments as TGlobalArgs, but the constructor
    accepted no value at all, so new Resolver<{ apiKey: string }>() type checked while every task was
    handed undefined.

    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
    through setGlobalArgs() or resolve({ globalArgs }), include undefined in the type, for example
    new Resolver<{ apiKey: string } | undefined>().