UNPKG

nestjs-api-tools

Version:

Wrappers for convenient API development including validation, logging and i18n wrappers

13 lines (11 loc) 251 B
import {Column, ColumnOptions} from 'typeorm'; /** * Entity sort order. * @param options */ export const Order = (options?: ColumnOptions): PropertyDecorator => Column({ type: 'int', nullable: true, name: 'order_', ...(options || {}), });