1 | import type {TypedArray} from './typed-array';
|
2 | import type {FindGlobalInstanceType} from './find-global-type';
|
3 |
|
4 | type StructuredCloneablePrimitive =
|
5 | | string
|
6 | | number
|
7 | | bigint
|
8 | | boolean
|
9 | | null
|
10 | | undefined
|
11 | | Boolean
|
12 | | Number
|
13 | | String;
|
14 |
|
15 | type StructuredCloneableData =
|
16 | | ArrayBuffer
|
17 | | DataView
|
18 | | Date
|
19 | | Error
|
20 | | RegExp
|
21 | | TypedArray
|
22 | | FindGlobalInstanceType<
|
23 |
|
24 | | 'Blob'
|
25 | | 'File'
|
26 |
|
27 | | 'AudioData'
|
28 | | 'CropTarget'
|
29 | | 'CryptoKey'
|
30 | | 'DOMException'
|
31 | | 'DOMMatrix'
|
32 | | 'DOMMatrixReadOnly'
|
33 | | 'DOMPoint'
|
34 | | 'DOMPointReadOnly'
|
35 | | 'DOMQuad'
|
36 | | 'DOMRect'
|
37 | | 'DOMRectReadOnly'
|
38 | | 'FileList'
|
39 | | 'FileSystemDirectoryHandle'
|
40 | | 'FileSystemFileHandle'
|
41 | | 'FileSystemHandle'
|
42 | | 'GPUCompilationInfo'
|
43 | | 'GPUCompilationMessage'
|
44 | | 'ImageBitmap'
|
45 | | 'ImageData'
|
46 | | 'RTCCertificate'
|
47 | | 'VideoFrame'
|
48 | >;
|
49 |
|
50 | type StructuredCloneableCollection =
|
51 | | readonly StructuredCloneable[]
|
52 | | {readonly [key: string]: StructuredCloneable; readonly [key: number]: StructuredCloneable}
|
53 | | ReadonlyMap<StructuredCloneable, StructuredCloneable>
|
54 | | ReadonlySet<StructuredCloneable>;
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 |
|
71 |
|
72 |
|
73 |
|
74 |
|
75 |
|
76 |
|
77 |
|
78 |
|
79 |
|
80 |
|
81 |
|
82 |
|
83 |
|
84 |
|
85 |
|
86 |
|
87 |
|
88 |
|
89 |
|
90 |
|
91 |
|
92 | export type StructuredCloneable = StructuredCloneablePrimitive | StructuredCloneableData | StructuredCloneableCollection;
|