File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export type { ErrorClass }
2222 * export const DatabaseError = BaseError.subclass('DatabaseError')
2323 * ```
2424 */
25- declare const ModernError : SpecificErrorClass < [ ] , { } , CustomClass >
25+ declare const ModernError : SpecificErrorClass < [ ] , object , CustomClass >
2626export default ModernError
2727
2828// Major limitations of current types:
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import type { PluginsOptions } from './plugins.js'
99 */
1010export type NormalizedCause < CauseArg extends Cause > = CauseArg extends Error
1111 ? CauseArg
12- : { }
12+ : object
1313
1414/**
1515 * Optional `cause` option
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ type PluginInstanceMethods<PluginArg extends Plugin> = PluginArg extends {
5050 instanceMethods : InstanceMethods
5151}
5252 ? ErrorInstanceMethods < PluginArg [ 'instanceMethods' ] , MethodOptions < PluginArg > >
53- : { }
53+ : object
5454
5555/**
5656 * Bound instance methods of all plugins
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ type PluginMixedMethods<PluginArg extends Plugin> = PluginArg extends {
5151 instanceMethods : InstanceMethods
5252}
5353 ? ErrorMixedMethods < PluginArg [ 'instanceMethods' ] , MethodOptions < PluginArg > >
54- : { }
54+ : object
5555
5656/**
5757 * Bound mixed methods of all plugins
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ type GetProperties = (info: InfoParameter['properties']) => AddedProperties
1515type PluginProperties < PluginArg extends Plugin > = PluginArg extends Plugin
1616 ? PluginArg extends { properties : GetProperties }
1717 ? ReturnType < PluginArg [ 'properties' ] >
18- : { }
19- : { }
18+ : object
19+ : object
2020
2121/**
2222 * Bound added properties of all plugins
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ type PluginStaticMethods<PluginArg extends Plugin> = PluginArg extends {
4747 staticMethods : StaticMethods
4848}
4949 ? ErrorStaticMethods < PluginArg [ 'staticMethods' ] , MethodOptions < PluginArg > >
50- : { }
50+ : object
5151
5252/**
5353 * Bound static methods of all plugins
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ type CreateSubclass<
3434> = <
3535 ChildPlugins extends Plugins = [ ] ,
3636 ChildCustomClass extends CustomClassArg = CustomClassArg ,
37- ChildProps extends ErrorProps = { } ,
37+ ChildProps extends ErrorProps = object ,
3838> (
3939 errorName : ErrorName ,
4040 options ?: SpecificClassOptions <
Original file line number Diff line number Diff line change 55export type OmitKeys <
66 Source ,
77 OmittedKeys extends PropertyKey ,
8- > = keyof Source extends OmittedKeys ? { } : Omit < Source , OmittedKeys >
8+ > = keyof Source extends OmittedKeys ? object : Omit < Source , OmittedKeys >
99
1010/**
1111 * Like `SetProps<LowObject, HighObject>` except it reduces empty `{}` for
You can’t perform that action at this time.
0 commit comments