Server rendering types

Canvas, render-result, and configuration types used by the SSR entry point.

Import
import type { SSRCanvas } from "@sixtyfold/ssr";

Use the public entry point shown above.

SSRCanvas

Minimal canvas contract required by the SSR renderer. This deliberately avoids DOM canvas globals so server-runtime TypeScript projects can consume @sixtyfold/ssr without adding the DOM library.

Import @sixtyfold/ssrinterface

interface SSRCanvas
MemberDefinitionDescription
getContext(type: "2d", options?: unknown) => unknownReturns context.
heightnumberHeight used for static output.
widthnumberWidth used for static output.