graphitation
graphitation copied to clipboard
Resolver context type - subtype can be optional
Newly accept optional parameter
{
baseContextTypePath: "@package/default-context",
baseContextTypeName: "DefaultContextType",
contextTypes: {
managers: {
user: {
importNamespaceName: "UserStateMachineType",
importPath: "@package/user-state-machine",
typeName: 'UserStateMachineType["user"]',
},
optionalWhatever: {
importPath: "@package/whatever-state-machine",
typeName: "optionalWhatever",
optional: true,
},
} }