We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
from the README
import { Assign } from 'utility-types'; type Props = { name: string; age: number; visible: boolean }; type NewProps = { age: string; other: string }; // Expect: { name: string; age: string; visible: boolean; other: string; } type ExtendedProps = Assign<Props, NewProps>;
age type value in expect is string
from src/mapped-types.ts
/** * Assign * @desc From `U` assign properties to `T` (just like object assign) * @example * 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>; */
age type value in expect is number
The text was updated successfully, but these errors were encountered:
Good catch, thanks for reporting.
Sorry, something went wrong.
No branches or pull requests
Description
from the README
age type value in expect is string
from
src/mapped-types.ts
age type value in expect is number
Steps to Reproduce
The text was updated successfully, but these errors were encountered: