From 9748e90e863a330a04ad3a022a40b166ca522844 Mon Sep 17 00:00:00 2001 From: Pat Cavit Date: Tue, 5 Dec 2017 12:28:43 -0800 Subject: [PATCH] WIP: interface --- src/interfaces.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/interfaces.ts b/src/interfaces.ts index 0d884f8472..51b45983ae 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -83,9 +83,10 @@ export interface CustomElementOptions { } 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; script?: Preprocessor; + id?: string } -export type Preprocessor = (options: {content: string, attributes: Record}) => { code: string, map?: SourceMap | string }; +export type Preprocessor = (options: {content: string, attributes: Record, options: PreprocessOptions}) => { code: string, map?: SourceMap | string };