Home > @datashaper/workflow > ProfileHandler
A custom profile handler
Signature:
export interface ProfileHandler<Res extends Resource = Resource, Schema extends ResourceSchema = ResourceSchema, InitializationContext extends ProfileInitializationContext = ProfileInitializationContext> | 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. |
| Method | Description |
|---|---|
| createInstance(schema) | Creates a new instance of a schema resource |