rename to core
This commit is contained in:
7
core/shared/errors/DomainError.ts
Normal file
7
core/shared/errors/DomainError.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export type CommonDomainErrorKind = 'validation' | 'invariant' | string;
|
||||
|
||||
export interface IDomainError<K extends string = CommonDomainErrorKind> extends Error {
|
||||
readonly type: 'domain';
|
||||
readonly context: string;
|
||||
readonly kind: K;
|
||||
}
|
||||
Reference in New Issue
Block a user