Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
217 B
1
Indexable
Never
type TestType = {
    a: string;
    b: string;
};

type TestType2 = {
    c: string;
};

const mapProps2 = (props: Partial<TestType & TestType2>) => ({
    a: props.a,
    b: props.b,
    c: props.c,
});