Bump typescript, @typescript-eslint/eslint-plugin, and @typescript-eslint/parser (#6143)

This commit is contained in:
Sebastian Malton authored and GitHub committed 2022-09-01 10:05:32 -04:00
1 parent 27871f57b6
commit b0d72b78d0
16 files changed
+105 -118

No files matched your search

+1
View File
@@ -4,6 +4,7 @@
*/
import { Readable } from "readable-stream";
import type { ReadableStreamDefaultReadResult } from "stream/web";
import type { TypedArray } from "type-fest";
/**
+1 -1
View File
@@ -27,7 +27,7 @@ export class Singleton {
* @param args The constructor arguments for the child class
* @returns An instance of the child class
*/
static createInstance<T, R extends any[]>(this: StaticThis<T, R>, ...args: R): T {
static createInstance<T extends Singleton, R extends any[]>(this: StaticThis<T, R>, ...args: R): T {
if (!Singleton.instances.has(this)) {
if (Singleton.creating.length > 0) {
throw new TypeError(`Cannot create a second singleton (${this.name}) while creating a first (${Singleton.creating})`);