Skip to content

Commit dcab592

Browse files
committed
fix: export more exception types
1 parent a242d79 commit dcab592

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/exception.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ type ExceptionConstructor<TParams extends ExceptionParams, TOptions extends Exce
4949
) => BaseException<TParams, TOptions>;
5050

5151
type ExceptionType<
52-
TParams extends ExceptionParams,
53-
TOptions extends ExceptionOptions,
52+
TParams extends ExceptionParams = ExceptionParams,
53+
TOptions extends ExceptionOptions = ExceptionOptions,
5454
TStaticProps = unknown
5555
> = ExceptionConstructor<TParams, TOptions> & ExceptionStatic<TParams, TOptions> & TStaticProps;
5656

@@ -195,5 +195,13 @@ const { OutOfRangeException } = new ExceptionBuilder()
195195
})
196196
.build();
197197

198-
export type { ExceptionConstructor };
198+
export type {
199+
ExceptionConstructor,
200+
ExceptionConstructorArgs,
201+
ExceptionName,
202+
ExceptionOptions,
203+
ExceptionParams,
204+
ExceptionStatic,
205+
ExceptionType
206+
};
199207
export { BaseException, ExceptionBuilder, OutOfRangeException, ValueException };

0 commit comments

Comments
 (0)