MCPcopy
hub / github.com/OpenCoworkAI/open-codesign / BuildPreviewDocumentOptions

Interface BuildPreviewDocumentOptions

packages/runtime/src/index.ts:46–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44export type RenderableSourceKind = 'html' | 'jsx' | 'tsx' | 'unknown';
45
46export interface BuildPreviewDocumentOptions {
47 /** Workspace-relative path, used to classify .jsx/.tsx/.html files. */
48 path?: string | undefined;
49 /** Optional absolute file:// base URL so relative assets resolve in srcdoc/data URLs. */
50 baseHref?: string | undefined;
51}
52
53function extensionKind(path: string | undefined): RenderableSourceKind {
54 const lower = path?.toLowerCase() ?? '';

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected