Skip to Content
Bear documentation

model-export

Import from bear/engine/model-export.

Type Aliases

ModelExport

type ModelExport = object;

Defined in: bear/engine/model-export.ts:10

Properties

PropertyType
entryPoint?string
exportName?string
props?Record<string, unknown>

ModelSelection

type ModelSelection = z.infer<typeof modelSelectionSchema>;

Defined in: bear/engine/model-export.ts:22

Variables

modelSelectionSchema

const modelSelectionSchema: ZodObject<{
  entryPoint: ZodString;
  exportName: ZodString;
  props: ZodRecord<ZodString, ZodUnknown>;
}, $strip>;

Defined in: bear/engine/model-export.ts:17

A complete source request. Execution never fills it from another model.

Functions

resolveModelExport()

function resolveModelExport(module, selection?): BearElement;

Defined in: bear/engine/model-export.ts:25

The element selection names in a built model module.

Parameters

ParameterType
moduleRecord<string, unknown>
selection?ModelExport

Returns

BearElement

On this page