graphitation icon indicating copy to clipboard operation
graphitation copied to clipboard

Resolver context type - subtype can be optional

Open vejrj opened this issue 9 months ago • 0 comments

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,
          },
} }

vejrj avatar Jun 06 '25 06:06 vejrj