Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

Commit 2c7d753

Browse files
committed
Update typescript in typetest and update socket.io imports to fix compilation issue
1 parent 55f7ee5 commit 2c7d753

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

types/lib/nodecg-instance.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/// <reference lib="dom" />
22
/// <reference types="node" />
3-
/// <reference types="socket.io" />
4-
/// <reference types="socket.io-client" />
53
/// <reference types="soundjs" />
64

75
import {RequestHandler, Router, RouterOptions} from 'express';
6+
import type * as SocketIOClient from 'socket.io-client';
7+
import type * as SocketIO from 'socket.io';
88

99
import {Logger} from './logger';
1010
import {ReplicantOptions, Replicant} from './replicant';

types/lib/nodecg-static.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import type * as SocketIOClient from 'socket.io-client';
2+
13
import {
24
Replicant,
35
ReplicantOptions,

types/lib/replicant.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {EventEmitter} from 'events';
2+
import type * as SocketIOClient from 'socket.io-client'
23

34
import {Logger} from './logger';
45
import {Platform} from './platform';

types/typetest/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

types/typetest/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
22
"private": true,
33
"name": "fake-bundle",
4-
"dependencies": {},
54
"devDependencies": {
6-
"typescript": "^3.1.3"
5+
"typescript": "^4.3.5"
76
},
87
"scripts": {
98
"build": "tsc --build src/dashboard src/extension"

0 commit comments

Comments
 (0)