Plugins

Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0

AssetOperation

Engine operation callback used by asset helpers.

Import

import type { AssetOperation } from "@dartwic/interface-sdk/assets";

Declaration

export type AssetOperation = (name: string, payload: Record<string, unknown>) => Promise<{error?: boolean; payload?: {content?: string; error?: string}}>;