Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3ac7727

Browse filesBrowse files
committed
2 parents 6a7ea35 + 55b321b commit 3ac7727
Copy full SHA for 3ac7727

File tree

3 files changed

+0
-18
lines changed
Filter options

3 files changed

+0
-18
lines changed

‎src/07-arrays.problem.ts

Copy file name to clipboardExpand all lines: src/07-arrays.problem.ts
-6Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@ interface User {
22
id: number;
33
firstName: string;
44
lastName: string;
5-
/**
6-
* How do we ensure that role is only one of:
7-
* - 'admin'
8-
* - 'user'
9-
* - 'super-admin'
10-
*/
115
role: "admin" | "user" | "super-admin";
126
posts: Post;
137
}

‎src/07-arrays.solution.1.ts

Copy file name to clipboardExpand all lines: src/07-arrays.solution.1.ts
-6Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@ interface User {
22
id: number;
33
firstName: string;
44
lastName: string;
5-
/**
6-
* How do we ensure that role is only one of:
7-
* - 'admin'
8-
* - 'user'
9-
* - 'super-admin'
10-
*/
115
role: "admin" | "user" | "super-admin";
126
posts: Post[];
137
}

‎src/07-arrays.solution.2.ts

Copy file name to clipboardExpand all lines: src/07-arrays.solution.2.ts
-6Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@ interface User {
22
id: number;
33
firstName: string;
44
lastName: string;
5-
/**
6-
* How do we ensure that role is only one of:
7-
* - 'admin'
8-
* - 'user'
9-
* - 'super-admin'
10-
*/
115
role: "admin" | "user" | "super-admin";
126
posts: Array<Post>;
137
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.