move maskInputValue to rrweb-snapshot (#83)

More info: https://github.com/rrweb-io/rrweb/pull/602#discussion_r660434998
This commit is contained in:
Justin Halsall
2021-06-30 16:41:37 +02:00
committed by GitHub
parent 5175b08a5a
commit 775291042d
6 changed files with 62 additions and 11 deletions

9
typings/utils.d.ts vendored
View File

@@ -1,3 +1,10 @@
import { INode } from './types';
import { INode, MaskInputFn, MaskInputOptions } from './types';
export declare function isElement(n: Node | INode): n is Element;
export declare function isShadowRoot(n: Node): n is ShadowRoot;
export declare function maskInputValue({ maskInputOptions, tagName, type, value, maskInputFn, }: {
maskInputOptions: MaskInputOptions;
tagName: string;
type: string | number | boolean | null;
value: string | null;
maskInputFn?: MaskInputFn;
}): string;