Interfejs TypeScript Valueof
type ValueOf<T> = T[keyof T];
Determined Dotterel
type ValueOf<T> = T[keyof T];
type Animal = {
name: string
}
type Bear = Animal & {
honey: Boolean
}
const bear = getBear();
bear.name;
bear.honey;
type Event = {
name: string;
dateCreated: string;
type: string;
}
interface UserEvent extends Event {
UserId: string;
}