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

Commit 9f5f9a1

Browse files
authored
Merge pull request #246 from codeoverflow-org/239-use-nodecg-types
Use `nodecg-types` for nodecg types instead of `nodecg`
2 parents da25de6 + e1784d8 commit 9f5f9a1

File tree

167 files changed

+2415
-6628
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

167 files changed

+2415
-6628
lines changed

.scripts/create-service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
os.mkdir(f'nodecg-io-{service_name}/extension')
4646
with open(f'nodecg-io-{service_name}/extension/index.ts', mode='w') as file:
4747
file.writelines([
48-
'import { NodeCG } from "nodecg/types/server";\n',
48+
'import { NodeCG } from "nodecg-types/types/server";\n',
4949
'import { Result, emptySuccess, success, ServiceBundle } from "nodecg-io-core";\n',
5050
f'import {{ {service_name_c}Client }} from "./{service_name_cc}Client";\n',
5151
'\n',
@@ -124,7 +124,7 @@
124124
os.mkdir(f'samples/{sample_name}/extension')
125125
with open(f'samples/{sample_name}/extension/index.ts', mode='w') as file:
126126
file.writelines([
127-
'import { NodeCG } from "nodecg/types/server";\n',
127+
'import { NodeCG } from "nodecg-types/types/server";\n',
128128
f'import {{ {service_name_c}Client }} from "nodecg-io-{service_name}";\n',
129129
'import { requireService } from "nodecg-io-core";\n',
130130
'\n',

nodecg-io-ahk/extension/AHK.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import fetch from "node-fetch";
2-
import { NodeCG } from "nodecg/types/server";
2+
import { NodeCG } from "nodecg-types/types/server";
33

44
export class AHK {
55
private readonly address: string;

nodecg-io-ahk/extension/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NodeCG } from "nodecg/types/server";
1+
import { NodeCG } from "nodecg-types/types/server";
22
import { Result, emptySuccess, success, ServiceBundle } from "nodecg-io-core";
33
import { AHK } from "./AHK";
44

nodecg-io-ahk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"devDependencies": {
3939
"@types/node": "^15.0.2",
4040
"@types/node-fetch": "^2.5.10",
41-
"nodecg": "^1.8.1",
41+
"nodecg-types": "^1.8.2",
4242
"typescript": "^4.2.4"
4343
},
4444
"dependencies": {

nodecg-io-android/extension/android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { spawn } from "child_process";
44
import { onExit, readableToString } from "@rauschma/stringio";
55
import { AddressInfo } from "net";
66
import { buffer as readableToBuffer } from "get-stream";
7-
import { NodeCG } from "nodecg/types/server";
7+
import { NodeCG } from "nodecg-types/types/server";
88

99
/**
1010
* Represents an android device that is connected via ADB.

nodecg-io-android/extension/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NodeCG } from "nodecg/types/server";
1+
import { NodeCG } from "nodecg-types/types/server";
22
import { Result, emptySuccess, success, ServiceBundle } from "nodecg-io-core";
33
import { Android } from "./android";
44

nodecg-io-android/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"license": "MIT",
3838
"devDependencies": {
3939
"@types/node": "^15.0.2",
40-
"nodecg": "^1.8.1",
40+
"nodecg-types": "^1.8.2",
4141
"typescript": "^4.2.4"
4242
},
4343
"dependencies": {

nodecg-io-core/dashboard/authentication.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/// <reference types="nodecg/types/browser" />
1+
/// <reference types="nodecg-types/types/browser" />
22

33
import { updateMonacoLayout } from "./serviceInstance";
44
import { setPassword, isPasswordSet } from "./crypto";

nodecg-io-core/dashboard/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"dependencies": {
1616
"crypto-js": "^4.0.0",
1717
"monaco-editor": "^0.23.0",
18-
"nodecg": "^1.8.1",
18+
"nodecg-types": "^1.8.2",
1919
"nodecg-io-core": "^0.2.0"
2020
},
2121
"license": "MIT"

nodecg-io-core/extension/__tests__/mocks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ObjectMap, ServiceInstance } from "../service";
2-
import type { NodeCG, ReplicantOptions, Replicant, Logger } from "nodecg/types/server";
2+
import type { NodeCG, ReplicantOptions, Replicant, Logger } from "nodecg-types/types/server";
33
import { EventEmitter } from "events";
44

55
// The mock-nodecg package has a few problems like no typings and some un-implemented functions that are a dealbreaker for us.

0 commit comments

Comments
 (0)