Skip to content
New issue

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

Add TypeScript Types #211

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

RebeccaStevens
Copy link

@RebeccaStevens RebeccaStevens commented Nov 5, 2020

This is a continuation of the work @bryan-hunter did in #198.

Fixes #147, fixes #179.
Closes: #148, closes #181, closes #198.

@RebeccaStevens
Copy link
Author

Getting the types right on this library is way harder than I though it would be. 😫

@RebeccaStevens RebeccaStevens changed the title WIP: Improved typed deepmerge Improved typed deepmerge Nov 5, 2020
@RebeccaStevens RebeccaStevens changed the title Improved typed deepmerge Add TypeScript Types Nov 6, 2020
@RebeccaStevens RebeccaStevens force-pushed the typed-deepmerge branch 6 times, most recently from d409acd to 67a71ed Compare November 10, 2020 00:40
@RebeccaStevens RebeccaStevens force-pushed the typed-deepmerge branch 5 times, most recently from 8a78898 to ba60c9b Compare November 10, 2020 05:12
@RebeccaStevens
Copy link
Author

This has really turned into a much bigger job than I initially thought it would be (or maybe I'm just doing a bit of overkill 😛).

Anyway, @TehShrike I think I've got the types right now. (idk what Travis is doing, it hasn't successfully booted a vm all day). Would you be able to review? Or get someone else to?

I might add some more test and maybe refactor things a little more so they are easier to follow - even I am getting a little confused with all the mapped types going on.

Also, small note: Some of the parts of the typings rely on some new features in TypeScript 4.1 which isn't out yet (I'm using the RC). I believe TS 4.1 will be released sometime next week.

@RebeccaStevens RebeccaStevens marked this pull request as ready for review November 10, 2020 05:27
@RebeccaStevens RebeccaStevens force-pushed the typed-deepmerge branch 3 times, most recently from ac5cb5c to acbe9b7 Compare November 10, 2020 23:33
RebeccaStevens pushed a commit to RebeccaStevens/fork-deepmerge that referenced this pull request Nov 12, 2020
RebeccaStevens pushed a commit to RebeccaStevens/fork-deepmerge that referenced this pull request Nov 12, 2020
RebeccaStevens pushed a commit to RebeccaStevens/fork-deepmerge that referenced this pull request Nov 12, 2020
RebeccaStevens pushed a commit to RebeccaStevens/fork-deepmerge that referenced this pull request Nov 12, 2020
RebeccaStevens pushed a commit to RebeccaStevens/fork-deepmerge that referenced this pull request Nov 13, 2020
RebeccaStevens pushed a commit to RebeccaStevens/fork-deepmerge that referenced this pull request Nov 16, 2020
RebeccaStevens pushed a commit to RebeccaStevens/fork-deepmerge that referenced this pull request Nov 16, 2020
RebeccaStevens pushed a commit to RebeccaStevens/fork-deepmerge that referenced this pull request Nov 16, 2020
RebeccaStevens pushed a commit to RebeccaStevens/fork-deepmerge that referenced this pull request Nov 17, 2020
RebeccaStevens pushed a commit to RebeccaStevens/fork-deepmerge that referenced this pull request Nov 17, 2020
RebeccaStevens pushed a commit to RebeccaStevens/fork-deepmerge that referenced this pull request Nov 17, 2020
RebeccaStevens pushed a commit to RebeccaStevens/fork-deepmerge that referenced this pull request Nov 18, 2020
RebeccaStevens pushed a commit to RebeccaStevens/fork-deepmerge that referenced this pull request Nov 19, 2020
RebeccaStevens pushed a commit to RebeccaStevens/fork-deepmerge that referenced this pull request Nov 27, 2020
RebeccaStevens pushed a commit to RebeccaStevens/fork-deepmerge that referenced this pull request Nov 27, 2020
@TehShrike TehShrike added the ts Typescript-related label Jan 20, 2021
@z0d14c
Copy link

z0d14c commented Apr 25, 2024

Why didn't we ever merge this?

@RebeccaStevens
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ts Typescript-related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

d.ts type definition error Useless Partial in type definition
4 participants