UNPKG
@kwalox/create-node-app
Version:
latest (3.0.0)
3.0.0
2.1.0
2.0.0
1.1.0
1.0.1
1.0.0
CLI command to bootstrap Node project
github.com/KwalOx/create-node-app
KwalOx/create-node-app
@kwalox/create-node-app
/
templates
/
typescript-express
/
src
/
User
/
user.model.ts
12 lines
(10 loc)
•
228 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
export
default
class
User
{
id
:
number
firstName
:
string
lastName
:
string
constructor
(
id
:
number
,
firstName
:
string
,
lastName
:
string
) {
this
.
id
= id
this
.
firstName
= firstName
this
.
lastName
= lastName } }