mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 21:03:03 -05:00
16 lines
250 B
TypeScript
16 lines
250 B
TypeScript
export const subject = [
|
|
'Sciences',
|
|
'History',
|
|
'English',
|
|
'Maths',
|
|
'Sport',
|
|
] as const;
|
|
export type Subject = typeof subject[number];
|
|
|
|
export interface Teacher {
|
|
id: number;
|
|
firstname: string;
|
|
lastname: string;
|
|
subject: Subject;
|
|
}
|