WIP: interface

pull/987/head
Pat Cavit 7 years ago
parent de9ac1240a
commit 9748e90e86

@ -83,9 +83,10 @@ export interface CustomElementOptions {
} }
export interface PreprocessOptions { export interface PreprocessOptions {
markup?: (options: {content: string}) => { code: string, map?: SourceMap | string }; markup?: (options: {content: string, options: PreprocessOptions}) => { code: string, map?: SourceMap | string };
style?: Preprocessor; style?: Preprocessor;
script?: Preprocessor; script?: Preprocessor;
id?: string
} }
export type Preprocessor = (options: {content: string, attributes: Record<string, string | boolean>}) => { code: string, map?: SourceMap | string }; export type Preprocessor = (options: {content: string, attributes: Record<string, string | boolean>, options: PreprocessOptions}) => { code: string, map?: SourceMap | string };

Loading…
Cancel
Save