mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-13 22:33:03 -05:00
setup project
This commit is contained in:
15
apps/projection/src/app/model/teacher.model.ts
Normal file
15
apps/projection/src/app/model/teacher.model.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user