@paroicms/server
Version:
The ParoiCMS server
15 lines (14 loc) • 502 B
TypeScript
import type { MAttachedData, MSourceMedia, ScNodeType } from "@paroicms/public-anywhere-lib";
import type { SiteContext } from "../../site-context/site-context.types.js";
export declare function addMediaToNode(siteContext: SiteContext, file: {
binaryFile: Buffer;
originalName: string;
weightB: number;
mediaType: string;
}, options: {
nodeId: string;
nodeType: ScNodeType;
handle: string;
attachedData?: MAttachedData;
replace?: boolean;
}): Promise<MSourceMedia>;