import { File } from "../db" ; import { FileDto } from "./dto" ; import { TypeMapper } from "../shared" ; export function register ( mapper ) { mapper . register ( File , FileDto , ( file ) => { return new FileDto ( { ... file } ) ; } ) ; }