UNPKG

ph-dev-tools

Version:
47 lines (32 loc) 644 B
/** * Created by Papa on 3/26/2016. */ import {Goal} from "./Goal"; import {Entity, Id, ManyToOne, OneToMany} from "phibernate"; const myVar = 'test'; function test1(a) { } @Entity() export class Task { description:string; @ManyToOne() goal:Goal; @Id() taskId:number; name:string; @ManyToOne() nextTask:Task; @OneToMany({mappedBy: 'nextTask'}) previousTasks:Task[]; testTasks(moreTasks:Task[]):void { if (!moreTasks) { moreTasks = []; } moreTasks = moreTasks.concat(moreTasks); } } export class ParamClass { constructor(a:number, b:string) { } }