Skip to content

Commit 27c5c7e

Browse files
committed
Enable more typescript errors
1 parent 088205f commit 27c5c7e

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

lib/plugins/basic.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/plugins/basic.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Basic extends Site {
2323
return [prefix + id.nm, "unpaused"];
2424
}
2525

26-
public start(): void {
26+
public override start(): void {
2727
super.start();
2828

2929
for (const entry of this.config.streamers) {
@@ -102,7 +102,7 @@ class Basic extends Site {
102102
return {status: false, m3u8: ""};
103103
}
104104

105-
protected async checkStreamerState(streamer: Streamer) {
105+
protected override async checkStreamerState(streamer: Streamer) {
106106
// Detect if streamer is online or actively streaming
107107
const stream = await this.m3u8Script(streamer.uid, streamer.nm);
108108
const options: StreamerStateOptions = {
@@ -159,7 +159,7 @@ class Basic extends Site {
159159
return serRuns;
160160
}
161161

162-
public async getStreamers() {
162+
public override async getStreamers() {
163163
const ret: boolean = await super.getStreamers();
164164
if (!ret) {
165165
return false;

tsconfig.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@
1010
"moduleResolution": "node",
1111
"removeComments": false,
1212
"stripInternal": true,
13-
"noUnusedLocals": true,
14-
"noImplicitReturns": true
13+
"noFallthroughCasesInSwitch": true,
14+
"noImplicitAny": true,
15+
"noImplicitOverride": true,
16+
"noImplicitReturns": true,
17+
"noImplicitThis": true,
18+
"noUnusedLocals": true
1519
},
1620
"paths": {
1721
"core/*": [ "src/core/*" ],

0 commit comments

Comments
 (0)