base-ddd
TypeScript icon, indicating that this package has built-in type declarations

2.7.0 • Public • Published

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

Dependencies (6)

Dev Dependencies (23)

Package Sidebar

Install

npm i base-ddd

Weekly Downloads

17

Version

2.7.0

License

MIT

Unpacked Size

133 kB

Total Files

139

Last publish

Collaborators

  • jguillermoperu