Skip to content

Commit

Permalink
dev(compiler): add a CompileFormat type
Browse files Browse the repository at this point in the history
  • Loading branch information
Myriad-Dreamin committed Sep 28, 2023
1 parent 3e85061 commit c4437ea
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/typst.ts/src/compiler.mts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ import { FsAccessModel } from './internal.types.mjs';
import { preloadRemoteFonts, type InitOptions } from './options.init.mjs';
import { LazyWasmModule } from './wasm.mjs';

/**
* Available formats for compiling the document.
*/
export type CompileFormat = 'vector' | 'pdf';

/**
* The options for compiling the document.
*/
Expand All @@ -20,7 +25,7 @@ export interface CompileOptions {
* - 'pdf': for finally exporting pdf to the user.
* @default 'vector'
*/
format?: 'vector' | 'pdf';
format?: CompileFormat;
}

/**
Expand Down

0 comments on commit c4437ea

Please sign in to comment.