Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ulixee
GitHub Repository: ulixee/secret-agent
Path: blob/main/interfaces/IDomChangeEvent.ts
1028 views
1
// tslint:disable-next-line
2
import type { UnixTimestamp } from './GenericTypes';
3
4
type Idx = number;
5
6
export type IDomChangeEvent = [DomActionType, INodeData, UnixTimestamp, Idx];
7
8
export enum DomActionType {
9
newDocument = 0,
10
location = 1,
11
added = 2,
12
removed = 3,
13
text = 4,
14
attribute = 5,
15
property = 6,
16
}
17
18
export interface INodeData {
19
id: number;
20
nodeType?: number;
21
textContent?: string;
22
tagName?: string;
23
namespaceUri?: string;
24
previousSiblingId?: number;
25
parentNodeId?: number;
26
attributes?: { [key: string]: string };
27
attributeNamespaces?: { [key: string]: string };
28
properties?: { [key: string]: string | boolean | number | string[] };
29
}
30
31