Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic
Created Oct 8, 2017
Embed
What would you like to do?
export class User {
constructor(
public _id: string,
public name : String,
public age: Number,
public location : string,
public blog: string
){}
static CreateDefault(): User {
return new User('', '', 0, '', '');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment