Skip to content

Instantly share code, notes, and snippets.

@Ibro
Last active April 26, 2017 04:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ibro/fee903ab75fe4bb1b877905feaf86dc7 to your computer and use it in GitHub Desktop.
Save Ibro/fee903ab75fe4bb1b877905feaf86dc7 to your computer and use it in GitHub Desktop.
TypeScript custom alias - Coding Blast - www.codingblast.com
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