website/types.ts

9 lines
165 B
TypeScript
Raw Normal View History

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