update typings

This commit is contained in:
Yanzhen Yu
2019-04-14 15:58:13 +08:00
parent ea59841415
commit 6218745a75
2 changed files with 2 additions and 2 deletions

View File

@@ -270,7 +270,7 @@ export function serializeNodeWithId(
function snapshot(
n: Document,
blockClass = 'rr-block',
blockClass: string | RegExp = 'rr-block',
): [serializedNodeWithId | null, idNodeMap] {
resetId();
const idNodeMap: idNodeMap = {};

View File

@@ -2,5 +2,5 @@ import { serializedNodeWithId, idNodeMap } from './types';
export declare function resetId(): void;
export declare function absoluteToStylesheet(cssText: string, href: string): string;
export declare function serializeNodeWithId(n: Node, doc: Document, map: idNodeMap, blockClass: string | RegExp, skipChild?: boolean): serializedNodeWithId | null;
declare function snapshot(n: Document, blockClass?: string): [serializedNodeWithId | null, idNodeMap];
declare function snapshot(n: Document, blockClass?: string | RegExp): [serializedNodeWithId | null, idNodeMap];
export default snapshot;