Skip to content

Commit e35b81f

Browse files
committed
refactor(dtos): [ExceptionDTO] allow all Jsonifiable types
Signed-off-by: Lexus Drumgold <[email protected]>
1 parent c2eb4ad commit e35b81f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/dtos/exception.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import type * as aggregate from '@flex-development/aggregate-error-ponyfill'
77
import type {
88
JsonValue,
9-
JsonifiableArray,
9+
Jsonifiable,
1010
JsonifiableObject,
1111
Nilable,
1212
Nullable,
@@ -29,12 +29,7 @@ interface ExceptionDTO<
2929
Cause extends ObjectPlain = JsonifiableObject,
3030
Code extends Nullable<number | string> = string
3131
> extends aggregate.Options<Cause> {
32-
[key: string]:
33-
| JsonifiableArray
34-
| JsonifiableObject
35-
| JsonValue
36-
| ObjectUnknown
37-
| undefined
32+
[key: string]: Jsonifiable | JsonValue | ObjectUnknown | undefined
3833

3934
/**
4035
* Exception code.

0 commit comments

Comments
 (0)