Initializes the Export capability.
Under the hood, this function:
- Gets the
export
property from thewindow.canva
object - Throws an error if the
export
property is not available - Provides type-safety when using TypeScript
Usage
import { getExport } from "@canva/preview/export";const api = getExport();console.log(api); // => Export
Returns
An object that exposes the following methods: