UNPKG

@knestjs/core

Version:

Knestjs search to be a Nestjs ORM in which you write the models once and only once. This is done creating migrations automatically from the models that you create.

9 lines (6 loc) 255 B
import { Operation } from './operations/operation.type' export class Change { constructor(private readonly forward: Operation, private readonly reverse: Operation ){} up(){return this.forward.apply()}; down(){ return this.reverse.apply()} }