Last active
June 26, 2020 15:57
-
-
Save kingsley-einstein/5bca8b247c6310d79b4570bc96f1b9e2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { User } from './User'; | |
export interface Post { | |
id: number; | |
title: string; | |
content: string; | |
createdAt: Date; | |
author: User | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export interface User { | |
firstName: string; | |
lastName: string; | |
email: string; | |
dob: Date; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment