We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unknown
object
ScriptSuccess<>
ScriptResponse<>
1 parent 698da0d commit 6c11e84Copy full SHA for 6c11e84
env.d.ts
@@ -1,7 +1,7 @@
1
type Replace<A, B> = Omit<A, keyof B> & B
2
-type ScriptSuccess<T = object> = { ok: true } & T
+type ScriptSuccess<T = unknown> = { ok: true } & T
3
type ScriptFailure = { ok: false, msg?: string }
4
-type ScriptResponse<T = object> = ScriptSuccess<T> | ScriptFailure
+type ScriptResponse<T = unknown> = ScriptSuccess<T> | ScriptFailure
5
type ErrorScripts = Record<string, () => ScriptFailure>
6
type Scriptor<TArgs extends any[] = any[]> = { name: string, call: (...args: TArgs) => unknown }
7
0 commit comments