UNPKG

nestjs-api-tools

Version:

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

12 lines (10 loc) 237 B
import {Column, ColumnOptions} from 'typeorm'; /** * Optimistic lock version. * @param options */ export const Version = (options?: ColumnOptions): PropertyDecorator => Column({ type: 'int', default: 1, ...(options || {}), });