diff --git a/src/parser/config/config.ts b/src/parser/config/config.ts index 46eb0d43d..5866b877c 100644 --- a/src/parser/config/config.ts +++ b/src/parser/config/config.ts @@ -40,7 +40,7 @@ export interface ParserConfig { * Custom CSS parser. * @see https://grapesjs.com/docs/guides/Custom-CSS-parser.html */ - parserCss?: (str: string, editor: EditorModule) => CssRuleProperties[]; + parserCss?: (input: string, editor: EditorModule) => CssRuleProperties[]; /** * Custom HTML parser. @@ -51,7 +51,7 @@ export interface ParserConfig { * // Here the result will be XMLDocument, which extends Node. * parserHtml: (input, opts = {}) => (new DOMParser()).parseFromString(input, 'text/xml') */ - parserHtml?: any; // TODO + parserHtml?: (input: string, options: HTMLParserOptions) => HTMLElement; /** * Default HTML parser options (used in `parserModule.parseHtml('