Skip to content
1 min read · 45 words

Function: constructorFromMinter()

ts
function constructorFromMinter(
  minter: ArtifactMinter,
  mime: string | undefined,
): Promise<SpooledArtifactConstructor>;

Defined in: src/batteries/sandbox/defaults/default_minter.ts:82

Select a constructor from a caller-provided minter, never throwing on bad metadata.

Parameters

ParameterType
minterArtifactMinter
mimestring | undefined

Returns

Promise<SpooledArtifactConstructor>