0
0
GGGiovanny Gongora
Construct a type that excludes properties from the given interface.
interface MyInterface {
id: number;
name: string;
properties: string[];
}
type MyShortType = Omit<MyInterface, 'name' | 'id'>;
0
0
GGGiovanny Gongora
Construct a type that excludes properties from the given interface.
interface MyInterface {
id: number;
name: string;
properties: string[];
}
type MyShortType = Omit<MyInterface, 'name' | 'id'>;