P
Size: a a a
P
P
AS
P
AS
AS
V
interface A {
a: number;
b: number;
c: string;
d: string[];
e: number[];
}
interface B extends Omit<A, "a" | "b"> {
a?: number;
b?: number;
}
AS
V
V
interface A {
a: number;
b: number;
c: string;
d: string[];
e: number[];
}
type B = Omit<A, "a" | "b"> & Partial<Pick<A, "a" | "b">>;
const obj: B = {
c: "f",
d: ["val"],
e: [1],
};
VS
ИГ
VB
VS
IK
AP
VS
IK
VS