Last active
April 26, 2017 04:57
-
-
Save Ibro/fee903ab75fe4bb1b877905feaf86dc7 to your computer and use it in GitHub Desktop.
TypeScript custom alias - Coding Blast - www.codingblast.com
This file contains 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
interface IStudent { | |
id: string; | |
age: number; | |
} | |
interface IWorker { | |
companyId: string; | |
} | |
type IStudentAlias = IStudent; | |
type ICustomType = IStudent | IWorker; | |
let s: IStudentAlias = { | |
id: 'ID3241', | |
age: 2 | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment