@wordpress/blocks
Version:
Block API for WordPress.
10 lines • 439 B
TypeScript
export interface RawTransform {
type: string;
blockName: string;
selector?: string;
schema?: Record<string, unknown> | ((args: Record<string, unknown>) => Record<string, unknown>);
isMatch: (node: Element) => boolean;
transform?: (node: Node, handler: Function) => unknown;
}
export type NodeFilterFunction = (node: Node, doc: Document, schema?: Record<string, unknown>) => void;
//# sourceMappingURL=types.d.ts.map