@dcl/js-runtime 7.0.0-3491045797.commit-404a2a7 → 7.0.0-3491657881.commit-d377dab

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 CHANGED
@@ -1,19 +1,15 @@
1
1
  {
2
2
  "name": "@dcl/js-runtime",
3
- "version": "7.0.0-3491045797.commit-404a2a7",
3
+ "version": "7.0.0-3491657881.commit-d377dab",
4
4
  "description": "JavaScript runtime definitions for Decentraland environments",
5
5
  "scripts": {},
6
6
  "keywords": [],
7
7
  "author": "",
8
- "files": [
9
- "index.d.ts",
10
- "apis.d.ts",
11
- "tsconfig.json"
12
- ],
8
+ "files": [],
13
9
  "license": "Apache-2.0",
14
10
  "typings": "./index.d.ts",
15
11
  "publishConfig": {
16
12
  "access": "public"
17
13
  },
18
- "commit": "404a2a743dab91d4ffe0de5cb9d32f4272ae86f8"
14
+ "commit": "d377dab60c42f875d3d70bef75f837315e5bea74"
19
15
  }
package/apis.d.ts DELETED
@@ -1,653 +0,0 @@
1
-
2
- /**
3
- * CommunicationsController
4
- */
5
- declare module "~system/CommunicationsController" {
6
-
7
- export interface RealSendRequest {
8
- message: string;
9
- }
10
- export interface RealSendResponse {
11
- }
12
-
13
- // Function declaration section
14
- export function send(body: RealSendRequest): Promise<RealSendResponse>;
15
-
16
- }
17
- /**
18
- * DevTools
19
- */
20
- declare module "~system/DevTools" {
21
-
22
- export interface DevToolsBody {
23
- type: string;
24
- jsonPayload: string;
25
- }
26
- export interface EventResponse {
27
- }
28
-
29
- // Function declaration section
30
- export function event(body: DevToolsBody): Promise<EventResponse>;
31
-
32
- }
33
- /**
34
- * EngineApi
35
- */
36
- declare module "~system/EngineApi" {
37
-
38
- export enum QueryType {
39
- QT_INVALID_QUERY_TYPE = 0,
40
- QT_HIT_FIRST = 1,
41
- QT_HIT_ALL = 2,
42
- QT_HIT_FIRST_AVATAR = 3,
43
- QT_HIT_ALL_AVATARS = 4,
44
- UNRECOGNIZED = -1
45
- }
46
- export enum EAType {
47
- EAT_INVALID_EA_TYPE = 0,
48
- EAT_OPEN_EXTERNAL_URL = 1,
49
- EAT_OPEN_NFT_DIALOG = 2,
50
- EAT_CREATE_ENTITY = 3,
51
- EAT_REMOVE_ENTITY = 4,
52
- EAT_UPDATE_ENTITY_COMPONENT = 5,
53
- EAT_ATTACH_ENTITY_COMPONENT = 6,
54
- EAT_COMPONENT_REMOVED = 7,
55
- EAT_SET_ENTITY_PARENT = 8,
56
- EAT_QUERY = 9,
57
- EAT_COMPONENT_CREATED = 10,
58
- EAT_COMPONENT_DISPOSED = 11,
59
- EAT_COMPONENT_UPDATED = 12,
60
- EAT_INIT_MESSAGES_FINISHED = 13,
61
- UNRECOGNIZED = -1
62
- }
63
- /** Events */
64
- export enum EventDataType {
65
- EDT_GENERIC = 0,
66
- EDT_POSITION_CHANGED = 1,
67
- EDT_ROTATION_CHANGED = 2,
68
- UNRECOGNIZED = -1
69
- }
70
- export interface OpenExternalUrlBody {
71
- url: string;
72
- }
73
- export interface OpenNFTDialogBody {
74
- assetContractAddress: string;
75
- tokenId: string;
76
- comment?: string | undefined;
77
- }
78
- export interface CreateEntityBody {
79
- id: string;
80
- }
81
- export interface RemoveEntityBody {
82
- id: string;
83
- }
84
- export interface UpdateEntityComponentBody {
85
- entityId: string;
86
- classId: number;
87
- name: string;
88
- json: string;
89
- }
90
- export interface AttachEntityComponentBody {
91
- entityId: string;
92
- name: string;
93
- id: string;
94
- }
95
- export interface ComponentRemovedBody {
96
- entityId: string;
97
- name: string;
98
- }
99
- export interface SetEntityParentBody {
100
- entityId: string;
101
- parentId: string;
102
- }
103
- export interface QueryBody {
104
- queryId: QueryType;
105
- payload: string;
106
- }
107
- export interface ComponentCreatedBody {
108
- id: string;
109
- classId: number;
110
- name: string;
111
- }
112
- export interface ComponentDisposedBody {
113
- id: string;
114
- }
115
- export interface ComponentUpdatedBody {
116
- id: string;
117
- json: string;
118
- }
119
- export interface InitMessagesFinishedBody {
120
- }
121
- export interface Payload {
122
- openExternalUrl?: OpenExternalUrlBody | undefined;
123
- openNftDialog?: OpenNFTDialogBody | undefined;
124
- createEntity?: CreateEntityBody | undefined;
125
- removeEntity?: RemoveEntityBody | undefined;
126
- updateEntityComponent?: UpdateEntityComponentBody | undefined;
127
- attachEntityComponent?: AttachEntityComponentBody | undefined;
128
- componentRemoved?: ComponentRemovedBody | undefined;
129
- setEntityParent?: SetEntityParentBody | undefined;
130
- query?: QueryBody | undefined;
131
- componentCreated?: ComponentCreatedBody | undefined;
132
- componentDisposed?: ComponentDisposedBody | undefined;
133
- componentUpdated?: ComponentUpdatedBody | undefined;
134
- initMessagesFinished?: InitMessagesFinishedBody | undefined;
135
- }
136
- export interface EntityAction {
137
- type: EAType;
138
- tag?: string | undefined;
139
- payload: Payload | undefined;
140
- }
141
- export interface ManyEntityAction {
142
- actions: EntityAction[];
143
- }
144
- export interface SendBatchResponse {
145
- events: EventData[];
146
- }
147
- export interface UnsubscribeRequest {
148
- eventId: string;
149
- }
150
- export interface SubscribeRequest {
151
- eventId: string;
152
- }
153
- export interface SubscribeResponse {
154
- }
155
- export interface UnsubscribeResponse {
156
- }
157
- export interface GenericPayload {
158
- eventId: string;
159
- eventData: string;
160
- }
161
- export interface ReadOnlyVector3 {
162
- x: number;
163
- y: number;
164
- z: number;
165
- }
166
- export interface ReadOnlyQuaternion {
167
- x: number;
168
- y: number;
169
- z: number;
170
- w: number;
171
- }
172
- export interface PositionChangedPayload {
173
- position: ReadOnlyVector3 | undefined;
174
- cameraPosition: ReadOnlyVector3 | undefined;
175
- playerHeight: number;
176
- }
177
- export interface RotationChangedPayload {
178
- rotation: ReadOnlyVector3 | undefined;
179
- quaternion: ReadOnlyQuaternion | undefined;
180
- }
181
- export interface EventData {
182
- type: EventDataType;
183
- generic?: GenericPayload | undefined;
184
- positionChanged?: PositionChangedPayload | undefined;
185
- rotationChanged?: RotationChangedPayload | undefined;
186
- }
187
- export interface CrdtSendToRendererRequest {
188
- data: Uint8Array;
189
- }
190
- export interface CrdtSendToResponse {
191
- }
192
- export interface CrdtMessageFromRendererRequest {
193
- }
194
- export interface CrdtMessageFromRendererResponse {
195
- data: Uint8Array[];
196
- }
197
-
198
- // Function declaration section
199
- export function sendBatch(body: ManyEntityAction): Promise<SendBatchResponse>;
200
- export function subscribe(body: SubscribeRequest): Promise<SubscribeResponse>;
201
- export function unsubscribe(body: UnsubscribeRequest): Promise<UnsubscribeResponse>;
202
- export function crdtSendToRenderer(body: CrdtSendToRendererRequest): Promise<CrdtSendToResponse>;
203
- export function crdtGetMessageFromRenderer(body: CrdtMessageFromRendererRequest): Promise<CrdtMessageFromRendererResponse>;
204
-
205
- }
206
- /**
207
- * EnvironmentApi
208
- */
209
- declare module "~system/EnvironmentApi" {
210
-
211
- export interface ContentMapping {
212
- file: string;
213
- hash: string;
214
- }
215
-
216
- // Function declaration section
217
- export interface MinimalRunnableEntity {
218
- content: ContentMapping[];
219
- metadataJson: string;
220
- }
221
- export interface BootstrapDataResponse {
222
- id: string;
223
- baseUrl: string;
224
- entity: MinimalRunnableEntity | undefined;
225
- useFPSThrottling: boolean;
226
- }
227
- export interface PreviewModeResponse {
228
- isPreview: boolean;
229
- }
230
- export interface AreUnsafeRequestAllowedResponse {
231
- status: boolean;
232
- }
233
- export interface GetPlatformResponse {
234
- platform: string;
235
- }
236
- export interface EnvironmentRealm {
237
- domain: string;
238
- layer: string;
239
- room: string;
240
- serverName: string;
241
- displayName: string;
242
- protocol: string;
243
- }
244
- export interface GetCurrentRealmResponse {
245
- currentRealm?: EnvironmentRealm | undefined;
246
- }
247
- export interface GetExplorerConfigurationResponse {
248
- clientUri: string;
249
- configurations: {
250
- [key: string]: string;
251
- };
252
- }
253
- export interface GetExplorerConfigurationResponse_ConfigurationsEntry {
254
- key: string;
255
- value: string;
256
- }
257
- export interface GetDecentralandTimeResponse {
258
- seconds: number;
259
- }
260
- export interface GetBootstrapDataRequest {
261
- }
262
- export interface IsPreviewModeRequest {
263
- }
264
- export interface GetPlatformRequest {
265
- }
266
- export interface AreUnsafeRequestAllowedRequest {
267
- }
268
- export interface GetCurrentRealmRequest {
269
- }
270
- export interface GetExplorerConfigurationRequest {
271
- }
272
- export interface GetDecentralandTimeRequest {
273
- }
274
-
275
- // Function declaration section
276
- export function getBootstrapData(body: GetBootstrapDataRequest): Promise<BootstrapDataResponse>;
277
- export function isPreviewMode(body: IsPreviewModeRequest): Promise<PreviewModeResponse>;
278
- export function getPlatform(body: GetPlatformRequest): Promise<GetPlatformResponse>;
279
- export function areUnsafeRequestAllowed(body: AreUnsafeRequestAllowedRequest): Promise<AreUnsafeRequestAllowedResponse>;
280
- export function getCurrentRealm(body: GetCurrentRealmRequest): Promise<GetCurrentRealmResponse>;
281
- export function getExplorerConfiguration(body: GetExplorerConfigurationRequest): Promise<GetExplorerConfigurationResponse>;
282
- export function getDecentralandTime(body: GetDecentralandTimeRequest): Promise<GetDecentralandTimeResponse>;
283
-
284
- }
285
- /**
286
- * EthereumController
287
- */
288
- declare module "~system/EthereumController" {
289
-
290
- export interface RequirePaymentRequest {
291
- toAddress: string;
292
- amount: number;
293
- currency: string;
294
- }
295
- export interface RequirePaymentResponse {
296
- jsonAnyResponse: string;
297
- }
298
- export interface SignMessageRequest {
299
- message: {
300
- [key: string]: string;
301
- };
302
- }
303
- export interface SignMessageRequest_MessageEntry {
304
- key: string;
305
- value: string;
306
- }
307
- export interface SignMessageResponse {
308
- message: string;
309
- hexEncodedMessage: string;
310
- signature: string;
311
- }
312
- export interface ConvertMessageToObjectRequest {
313
- message: string;
314
- }
315
- export interface ConvertMessageToObjectResponse {
316
- dict: {
317
- [key: string]: string;
318
- };
319
- }
320
- export interface ConvertMessageToObjectResponse_DictEntry {
321
- key: string;
322
- value: string;
323
- }
324
- export interface SendAsyncRequest {
325
- id: number;
326
- method: string;
327
- jsonParams: string;
328
- }
329
- export interface SendAsyncResponse {
330
- jsonAnyResponse: string;
331
- }
332
- export interface GetUserAccountRequest {
333
- }
334
- export interface GetUserAccountResponse {
335
- address?: string | undefined;
336
- }
337
-
338
- // Function declaration section
339
- export function requirePayment(body: RequirePaymentRequest): Promise<RequirePaymentResponse>;
340
- export function signMessage(body: SignMessageRequest): Promise<SignMessageResponse>;
341
- export function convertMessageToObject(body: ConvertMessageToObjectRequest): Promise<ConvertMessageToObjectResponse>;
342
- export function sendAsync(body: SendAsyncRequest): Promise<SendAsyncResponse>;
343
- export function getUserAccount(body: GetUserAccountRequest): Promise<GetUserAccountResponse>;
344
-
345
- }
346
- /**
347
- * ParcelIdentity
348
- */
349
- declare module "~system/ParcelIdentity" {
350
-
351
- export interface ContentMapping {
352
- file: string;
353
- hash: string;
354
- }
355
-
356
- // Function declaration section
357
- export interface MappingsResponse {
358
- parcelId: string;
359
- rootCid: string;
360
- contents: ContentMapping[];
361
- }
362
- export interface Land {
363
- sceneId: string;
364
- sceneJsonData: string;
365
- baseUrl: string;
366
- baseUrlBundles: string;
367
- mappingsResponse: MappingsResponse | undefined;
368
- }
369
- export interface GetParcelRequest {
370
- }
371
- export interface GetParcelResponse {
372
- land: Land | undefined;
373
- cid: string;
374
- }
375
- export interface GetSceneIdRequest {
376
- }
377
- export interface GetSceneIdResponse {
378
- sceneId: string;
379
- }
380
- export interface GetIsEmptyRequest {
381
- }
382
- export interface GetIsEmptyResponse {
383
- isEmpty: boolean;
384
- }
385
-
386
- // Function declaration section
387
- export function getParcel(body: GetParcelRequest): Promise<GetParcelResponse>;
388
- export function getSceneId(body: GetSceneIdRequest): Promise<GetSceneIdResponse>;
389
- export function getIsEmpty(body: GetIsEmptyRequest): Promise<GetIsEmptyResponse>;
390
-
391
- }
392
- /**
393
- * Permissions
394
- */
395
- declare module "~system/Permissions" {
396
-
397
- export enum PermissionItem {
398
- PI_ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE = 0,
399
- PI_ALLOW_TO_TRIGGER_AVATAR_EMOTE = 1,
400
- PI_USE_WEB3_API = 2,
401
- PI_USE_WEBSOCKET = 3,
402
- PI_USE_FETCH = 4,
403
- UNRECOGNIZED = -1
404
- }
405
- export interface PermissionResponse {
406
- hasPermission: boolean;
407
- }
408
- export interface HasPermissionRequest {
409
- permission: PermissionItem;
410
- }
411
- export interface HasManyPermissionRequest {
412
- permissions: PermissionItem[];
413
- }
414
- export interface HasManyPermissionResponse {
415
- hasManyPermission: boolean[];
416
- }
417
-
418
- // Function declaration section
419
- export function hasPermission(body: HasPermissionRequest): Promise<PermissionResponse>;
420
- export function hasManyPermissions(body: HasManyPermissionRequest): Promise<HasManyPermissionResponse>;
421
-
422
- }
423
- /**
424
- * Players
425
- */
426
- declare module "~system/Players" {
427
-
428
- export interface Snapshots {
429
- face256: string;
430
- body: string;
431
- }
432
- export interface AvatarForUserData {
433
- bodyShape: string;
434
- skinColor: string;
435
- hairColor: string;
436
- eyeColor: string;
437
- wearables: string[];
438
- snapshots: Snapshots | undefined;
439
- }
440
- export interface UserData {
441
- displayName: string;
442
- publicKey?: string | undefined;
443
- hasConnectedWeb3: boolean;
444
- userId: string;
445
- version: number;
446
- avatar: AvatarForUserData | undefined;
447
- }
448
-
449
- // Function declaration section
450
- export interface Player {
451
- userId: string;
452
- }
453
- export interface PlayersGetUserDataResponse {
454
- data?: UserData | undefined;
455
- }
456
- export interface PlayerListResponse {
457
- players: Player[];
458
- }
459
- export interface GetPlayerDataRequest {
460
- userId: string;
461
- }
462
- export interface GetPlayersInSceneRequest {
463
- }
464
- export interface GetConnectedPlayersRequest {
465
- }
466
-
467
- // Function declaration section
468
- export function getPlayerData(body: GetPlayerDataRequest): Promise<PlayersGetUserDataResponse>;
469
- export function getPlayersInScene(body: GetPlayersInSceneRequest): Promise<PlayerListResponse>;
470
- export function getConnectedPlayers(body: GetConnectedPlayersRequest): Promise<PlayerListResponse>;
471
-
472
- }
473
- /**
474
- * PortableExperiences
475
- */
476
- declare module "~system/PortableExperiences" {
477
-
478
- export interface KillRequest {
479
- pid: string;
480
- }
481
- export interface KillResponse {
482
- status: boolean;
483
- }
484
- export interface SpawnRequest {
485
- pid: string;
486
- }
487
- export interface SpawnResponse {
488
- pid: string;
489
- parentCid: string;
490
- }
491
- export interface PxRequest {
492
- pid: string;
493
- }
494
- export interface GetPortableExperiencesLoadedRequest {
495
- }
496
- export interface GetPortableExperiencesLoadedResponse {
497
- loaded: SpawnResponse[];
498
- }
499
- export interface ExitRequest {
500
- }
501
- export interface ExitResponse {
502
- status: boolean;
503
- }
504
-
505
- // Function declaration section
506
- export function spawn(body: SpawnRequest): Promise<SpawnResponse>;
507
- export function kill(body: KillRequest): Promise<KillResponse>;
508
- export function exit(body: ExitRequest): Promise<ExitResponse>;
509
- export function getPortableExperiencesLoaded(body: GetPortableExperiencesLoadedRequest): Promise<GetPortableExperiencesLoadedResponse>;
510
-
511
- }
512
- /**
513
- * RestrictedActions
514
- */
515
- declare module "~system/RestrictedActions" {
516
-
517
- export interface Vector3 {
518
- x: number;
519
- y: number;
520
- z: number;
521
- }
522
- export interface MovePlayerToResponse {
523
- }
524
- export interface MovePlayerToRequest {
525
- newRelativePosition: Vector3 | undefined;
526
- cameraTarget?: Vector3 | undefined;
527
- }
528
- export interface TriggerEmoteResponse {
529
- }
530
- export interface TriggerEmoteRequest {
531
- predefinedEmote: string;
532
- }
533
-
534
- // Function declaration section
535
- export function movePlayerTo(body: MovePlayerToRequest): Promise<MovePlayerToResponse>;
536
- export function triggerEmote(body: TriggerEmoteRequest): Promise<TriggerEmoteResponse>;
537
-
538
- }
539
- /**
540
- * SignedFetch
541
- */
542
- declare module "~system/SignedFetch" {
543
-
544
- export interface FlatFetchInit {
545
- method?: string | undefined;
546
- body?: string | undefined;
547
- headers: {
548
- [key: string]: string;
549
- };
550
- }
551
- export interface FlatFetchInit_HeadersEntry {
552
- key: string;
553
- value: string;
554
- }
555
- export interface FlatFetchResponse {
556
- ok: boolean;
557
- status: number;
558
- statusText: string;
559
- headers: {
560
- [key: string]: string;
561
- };
562
- body: string;
563
- }
564
- export interface FlatFetchResponse_HeadersEntry {
565
- key: string;
566
- value: string;
567
- }
568
- export interface SignedFetchRequest {
569
- url: string;
570
- init?: FlatFetchInit | undefined;
571
- }
572
-
573
- // Function declaration section
574
- export function signedFetch(body: SignedFetchRequest): Promise<FlatFetchResponse>;
575
-
576
- }
577
- /**
578
- * SocialController
579
- */
580
- declare module "~system/SocialController" {
581
-
582
- export interface InitRequest {
583
- }
584
- export interface SocialEvent {
585
- event: string;
586
- payload: string;
587
- }
588
- export interface GetAvatarEventsResponse {
589
- events: SocialEvent[];
590
- }
591
-
592
- // Function declaration section
593
- export function pullAvatarEvents(body: InitRequest): Promise<GetAvatarEventsResponse>;
594
-
595
- }
596
- /**
597
- * UserActionModule
598
- */
599
- declare module "~system/UserActionModule" {
600
-
601
- export interface RequestTeleportRequest {
602
- destination: string;
603
- }
604
- export interface RequestTeleportResponse {
605
- }
606
-
607
- // Function declaration section
608
- export function requestTeleport(body: RequestTeleportRequest): Promise<RequestTeleportResponse>;
609
-
610
- }
611
- /**
612
- * UserIdentity
613
- */
614
- declare module "~system/UserIdentity" {
615
-
616
- export interface Snapshots {
617
- face256: string;
618
- body: string;
619
- }
620
- export interface AvatarForUserData {
621
- bodyShape: string;
622
- skinColor: string;
623
- hairColor: string;
624
- eyeColor: string;
625
- wearables: string[];
626
- snapshots: Snapshots | undefined;
627
- }
628
- export interface UserData {
629
- displayName: string;
630
- publicKey?: string | undefined;
631
- hasConnectedWeb3: boolean;
632
- userId: string;
633
- version: number;
634
- avatar: AvatarForUserData | undefined;
635
- }
636
-
637
- // Function declaration section
638
- export interface GetUserDataRequest {
639
- }
640
- export interface GetUserDataResponse {
641
- data?: UserData | undefined;
642
- }
643
- export interface GetUserPublicKeyRequest {
644
- }
645
- export interface GetUserPublicKeyResponse {
646
- address?: string | undefined;
647
- }
648
-
649
- // Function declaration section
650
- export function getUserPublicKey(body: GetUserPublicKeyRequest): Promise<GetUserPublicKeyResponse>;
651
- export function getUserData(body: GetUserDataRequest): Promise<GetUserDataResponse>;
652
-
653
- }
package/index.d.ts DELETED
@@ -1,83 +0,0 @@
1
- /// --- FETCH ---
2
- /// <reference path="./apis.d.ts" />
3
-
4
- type RequestRedirect = 'follow' | 'error' | 'manual'
5
- type ResponseType = 'basic' | 'cors' | 'default' | 'error' | 'opaque' | 'opaqueredirect'
6
-
7
- interface RequestInit {
8
- // whatwg/fetch standard options
9
- body?: string
10
- headers?: { [index: string]: string }
11
- method?: string
12
- redirect?: RequestRedirect
13
-
14
- // custom DCL property
15
- timeout?: number
16
- }
17
-
18
- interface ReadOnlyHeaders {
19
- get(name: string): string | null
20
- has(name: string): boolean
21
- forEach(callbackfn: (value: string, key: string, parent: ReadOnlyHeaders) => void, thisArg?: any): void
22
- }
23
-
24
- interface Response {
25
- readonly headers: ReadOnlyHeaders
26
- readonly ok: boolean
27
- readonly redirected: boolean
28
- readonly status: number
29
- readonly statusText: string
30
- readonly type: ResponseType
31
- readonly url: string
32
-
33
- json(): Promise<any>
34
- text(): Promise<string>
35
- }
36
-
37
- declare function fetch(url: string, init?: RequestInit): Promise<Response>
38
-
39
- /// --- WebSocket ---
40
-
41
- interface Event {
42
- readonly type: string
43
- }
44
-
45
- interface MessageEvent extends Event {
46
- /**
47
- * Returns the data of the message.
48
- */
49
- readonly data: any
50
- }
51
-
52
- interface CloseEvent extends Event {
53
- readonly code: number
54
- readonly reason: string
55
- readonly wasClean: boolean
56
- }
57
-
58
- interface WebSocket {
59
- readonly bufferedAmount: number
60
- readonly extensions: string
61
- onclose: ((this: WebSocket, ev: CloseEvent) => any) | null
62
- onerror: ((this: WebSocket, ev: Event) => any) | null
63
- onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null
64
- onopen: ((this: WebSocket, ev: Event) => any) | null
65
- readonly protocol: string
66
- readonly readyState: number
67
- readonly url: string
68
- close(code?: number, reason?: string): void
69
- send(data: string): void
70
- readonly CLOSED: number
71
- readonly CLOSING: number
72
- readonly CONNECTING: number
73
- readonly OPEN: number
74
- }
75
-
76
- declare var WebSocket: {
77
- prototype: WebSocket
78
- new(url: string, protocols?: string | string[]): WebSocket
79
- readonly CLOSED: number
80
- readonly CLOSING: number
81
- readonly CONNECTING: number
82
- readonly OPEN: number
83
- }
package/tsconfig.json DELETED
@@ -1,25 +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
- "keyofStringsOnly": true,
21
- "noUnusedLocals": true,
22
- "lib": ["ES2020"],
23
- "types": []
24
- }
25
- }