update typings
This commit is contained in:
@@ -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 = {};
|
||||
|
||||
2
typings/snapshot.d.ts
vendored
2
typings/snapshot.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user