add the HACK_CSS flag to bypass css parsing (#16)

This commit is contained in:
yz-yu
2019-08-27 13:42:07 +08:00
committed by GitHub
parent f6b93ee27c
commit 215aeeb6b1
2 changed files with 18 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
import { serializedNodeWithId, idNodeMap, INode } from './types';
export declare function addHoverClass(cssText: string): string;
export declare function buildNodeWithSN(n: serializedNodeWithId, doc: Document, map: idNodeMap, skipChild?: boolean): INode | null;
declare function rebuild(n: serializedNodeWithId, doc: Document): [Node | null, idNodeMap];
export declare function buildNodeWithSN(n: serializedNodeWithId, doc: Document, map: idNodeMap, skipChild?: boolean, HACK_CSS?: boolean): INode | null;
declare function rebuild(n: serializedNodeWithId, doc: Document, HACK_CSS?: boolean): [Node | null, idNodeMap];
export default rebuild;