Hotfix of type

For the lesson Interfaces, Types and Union, 6:30
 avatar
unknown
typescript
3 years ago
132 B
4
Indexable
type BasicUser1<A = boolean, P = string> = {
  name: string;
  surname: string;
  age: number;
  isAdmin: A;
  permissions?: P[];
};