Hotfix of type

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