chore: bump deps for hoppscotch-common and hoppscotch-selfhost-web (#3575)

This commit is contained in:
Akash K
2023-12-05 17:33:25 +05:30
committed by GitHub
parent ed2a461dc5
commit 95754cb2b4
15 changed files with 3042 additions and 3282 deletions

View File

@@ -33,20 +33,20 @@ type TypeFromPrimitiveArray<P extends JSPrimitive | undefined> =
P extends "undefined"
? undefined
: P extends "object"
? object[] | null
: P extends "boolean"
? boolean[]
: P extends "number"
? number[]
: P extends "bigint"
? bigint[]
: P extends "string"
? string[]
: P extends "symbol"
? symbol[]
: P extends "function"
? Function[] // eslint-disable-line @typescript-eslint/ban-types
: unknown[]
? object[] | null
: P extends "boolean"
? boolean[]
: P extends "number"
? number[]
: P extends "bigint"
? bigint[]
: P extends "string"
? string[]
: P extends "symbol"
? symbol[]
: P extends "function"
? Function[] // eslint-disable-line @typescript-eslint/ban-types
: unknown[]
// The ban-types silence is because in this case,
// we can't get the Function type info to make a better guess

View File

@@ -12,20 +12,20 @@ export type TypeFromPrimitive<P extends JSPrimitive | undefined> =
P extends "undefined"
? undefined
: P extends "object"
? object | null // typeof null === "object"
: P extends "boolean"
? boolean
: P extends "number"
? number
: P extends "bigint"
? bigint
: P extends "string"
? string
: P extends "symbol"
? symbol
: P extends "function"
? Function // eslint-disable-line @typescript-eslint/ban-types
: unknown
? object | null // typeof null === "object"
: P extends "boolean"
? boolean
: P extends "number"
? number
: P extends "bigint"
? bigint
: P extends "string"
? string
: P extends "symbol"
? symbol
: P extends "function"
? Function // eslint-disable-line @typescript-eslint/ban-types
: unknown
// The ban-types silence is because in this case,
// we can't get the Function type info to make a better guess