9 lines
165 B
TypeScript
9 lines
165 B
TypeScript
export interface User {
|
|
firstname: string
|
|
lastname: string
|
|
mail: string
|
|
groupes: string[]
|
|
}
|
|
|
|
export type Ensure<T, K extends keyof T> = T & Required<Pick<T, K>>
|