@dcl/js-runtime 7.3.17 → 7.3.18-6338526926.commit-e5e8975
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -15
- package/apis.d.ts +0 -1450
- package/index.d.ts +0 -91
- package/sdk.d.ts +0 -5
- package/tsconfig.json +0 -24
package/index.d.ts
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
/// --- FETCH ---
|
|
2
|
-
/// <reference path="./apis.d.ts" />
|
|
3
|
-
/// <reference path="./sdk.d.ts" />
|
|
4
|
-
|
|
5
|
-
type RequestRedirect = 'follow' | 'error' | 'manual'
|
|
6
|
-
type ResponseType = 'basic' | 'cors' | 'default' | 'error' | 'opaque' | 'opaqueredirect'
|
|
7
|
-
|
|
8
|
-
interface RequestInit {
|
|
9
|
-
// whatwg/fetch standard options
|
|
10
|
-
body?: string
|
|
11
|
-
headers?: { [index: string]: string }
|
|
12
|
-
method?: string
|
|
13
|
-
redirect?: RequestRedirect
|
|
14
|
-
|
|
15
|
-
// custom DCL property
|
|
16
|
-
timeout?: number
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
interface ReadOnlyHeaders {
|
|
20
|
-
get(name: string): string | null
|
|
21
|
-
has(name: string): boolean
|
|
22
|
-
forEach(callbackfn: (value: string, key: string, parent: ReadOnlyHeaders) => void, thisArg?: any): void
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
interface Response {
|
|
26
|
-
readonly headers: ReadOnlyHeaders
|
|
27
|
-
readonly ok: boolean
|
|
28
|
-
readonly redirected: boolean
|
|
29
|
-
readonly status: number
|
|
30
|
-
readonly statusText: string
|
|
31
|
-
readonly type: ResponseType
|
|
32
|
-
readonly url: string
|
|
33
|
-
|
|
34
|
-
json(): Promise<any>
|
|
35
|
-
text(): Promise<string>
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
declare function fetch(url: string, init?: RequestInit): Promise<Response>
|
|
39
|
-
|
|
40
|
-
/// --- WebSocket ---
|
|
41
|
-
|
|
42
|
-
interface Event {
|
|
43
|
-
readonly type: string
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
interface MessageEvent extends Event {
|
|
47
|
-
/**
|
|
48
|
-
* Returns the data of the message.
|
|
49
|
-
*/
|
|
50
|
-
readonly data: any
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
interface CloseEvent extends Event {
|
|
54
|
-
readonly code: number
|
|
55
|
-
readonly reason: string
|
|
56
|
-
readonly wasClean: boolean
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
interface WebSocket {
|
|
60
|
-
readonly bufferedAmount: number
|
|
61
|
-
readonly extensions: string
|
|
62
|
-
onclose: ((this: WebSocket, ev: CloseEvent) => any) | null
|
|
63
|
-
onerror: ((this: WebSocket, ev: Event) => any) | null
|
|
64
|
-
onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null
|
|
65
|
-
onopen: ((this: WebSocket, ev: Event) => any) | null
|
|
66
|
-
readonly protocol: string
|
|
67
|
-
readonly readyState: number
|
|
68
|
-
readonly url: string
|
|
69
|
-
close(code?: number, reason?: string): void
|
|
70
|
-
send(data: string): void
|
|
71
|
-
readonly CLOSED: number
|
|
72
|
-
readonly CLOSING: number
|
|
73
|
-
readonly CONNECTING: number
|
|
74
|
-
readonly OPEN: number
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
declare var WebSocket: {
|
|
78
|
-
prototype: WebSocket
|
|
79
|
-
new (url: string, protocols?: string | string[]): WebSocket
|
|
80
|
-
readonly CLOSED: number
|
|
81
|
-
readonly CLOSING: number
|
|
82
|
-
readonly CONNECTING: number
|
|
83
|
-
readonly OPEN: number
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
declare var console: {
|
|
87
|
-
log(message?: any, ...optionalParams: any[]): void;
|
|
88
|
-
error(message?: any, ...optionalParams: any[]): void;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
declare const DEBUG: boolean
|
package/sdk.d.ts
DELETED
package/tsconfig.json
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es2020",
|
|
4
|
-
"module": "ESNext",
|
|
5
|
-
"strict": true,
|
|
6
|
-
"declarationDir": "dist",
|
|
7
|
-
"outDir": "dist",
|
|
8
|
-
"strictNullChecks": true,
|
|
9
|
-
"inlineSourceMap": true,
|
|
10
|
-
"inlineSources": true,
|
|
11
|
-
"declaration": true,
|
|
12
|
-
"stripInternal": true,
|
|
13
|
-
"moduleResolution": "Node",
|
|
14
|
-
"pretty": true,
|
|
15
|
-
"forceConsistentCasingInFileNames": true,
|
|
16
|
-
"allowSyntheticDefaultImports": true,
|
|
17
|
-
"experimentalDecorators": true,
|
|
18
|
-
"emitDecoratorMetadata": false,
|
|
19
|
-
"downlevelIteration": true,
|
|
20
|
-
"noUnusedLocals": true,
|
|
21
|
-
"lib": ["ES2020"],
|
|
22
|
-
"types": []
|
|
23
|
-
}
|
|
24
|
-
}
|