base-ddd
v2.7.0
Published
Node base DDD
Downloads
41
Readme
BASE DDD
Conjunto de herramientas para poder implementar en el desarrollo con node.
npm i base-ddd
value object
Estas clases asbtractas ayudan a modelar el negocio.
- Boolean
- Date
- Number
- String
- Uuid
- Id
- Enum
Boolean
export class BooleanTypeImp extends ArrayType {
}
Date
export class DateTypeImp extends DateType {}
Number
export class NumberTypeImp extends NumberType {}
String
export class StringTypeImp extends StringType {}
Uuid
export class UuidTypeImp extends UuidType {
}
Id
export class IdTypeImp extends IdType {}
Enum
enum StatusString {
UP = 'up',
DOWN = 'down',
}
export class EnumTypeImp extends EnumType<StatusString> {
constructor(value: keyof typeof StatusString | null | undefined = null) {
super(EnumType.create<StatusString>(value, Object.values(StatusString)));
}
}
Tools
- https://github.com/conventional-changelog/commitlint