utility-types icon indicating copy to clipboard operation
utility-types copied to clipboard

Doc errors for Assign

Open webberwang opened this issue 4 years ago • 0 comments

import { Assign } from 'utility-types';

type Props = { name: string; age: number; visible: boolean };
type NewProps = { age: string; other: string };

// Expect: { name: string; age: number; visible: boolean; other: string; }
type ExtendedProps = Assign<Props, NewProps>;
// Expect: { name: string; age: STRING; visible: boolean; other: string; }

webberwang avatar Apr 17 '20 11:04 webberwang