Skip to content
This repository was archived by the owner on Jan 8, 2026. It is now read-only.

Latest commit

 

History

History
28 lines (18 loc) · 1.19 KB

File metadata and controls

28 lines (18 loc) · 1.19 KB

Home > @datashaper/workflow > ProfileHandler

ProfileHandler interface

A custom profile handler

Signature:

export interface ProfileHandler<Res extends Resource = Resource, Schema extends ResourceSchema = ResourceSchema, InitializationContext extends ProfileInitializationContext = ProfileInitializationContext> 

Properties

Property Modifiers Type Description
initialize? (ctx: InitializationContext) => void (Optional) Initialize the profile handler
profile Profile The profile name of the resource
save? (data: Res, path: string, files: Map<string, Blob>) => Promise<string[]> (Optional) Save custom resources into the files map.

Methods

Method Description
createInstance(schema) Creates a new instance of a schema resource