Skip to content

Fix: Behaviour of Prettify when instantiated with functions#415

Merged
Beraliv merged 3 commits into
ts-essentials:masterfrom
som-sm:fix/prettify-function-instantiation
Oct 28, 2024
Merged

Fix: Behaviour of Prettify when instantiated with functions#415
Beraliv merged 3 commits into
ts-essentials:masterfrom
som-sm:fix/prettify-function-instantiation

Conversation

@som-sm

@som-sm som-sm commented Oct 23, 2024

Copy link
Copy Markdown
Contributor

PR Checklist

  • Addresses an existing open issue: related to #000
  • Steps in Contributing were taken

Overview

Currently the Prettify type when instantiated with functions returns {} (keyof with functions yields never), this PR fixes that by adding a Function check.

@Beraliv

Beraliv commented Oct 24, 2024

Copy link
Copy Markdown
Collaborator

Hey @som-sm! Thank you for another contribution! I've let the pipelines run for all TypeScript versions, I'll re-visit your PRs with a more in-depth feedback

Comment thread test/prettify.ts
Comment thread .changeset/green-crabs-appear.md Outdated

@Beraliv Beraliv left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@som-sm I'm happy to get it merged once the changeset is updated. Thank you for all your efforts, really appreciate your help!

@som-sm

som-sm commented Oct 27, 2024

Copy link
Copy Markdown
Contributor Author

@Beraliv I've updated the changeset, thanks again for reviewing the PR.

@Beraliv

Beraliv commented Oct 27, 2024

Copy link
Copy Markdown
Collaborator

@som-sm great work! I'm merging it now, will ping you when it's deployed

@Beraliv Beraliv merged commit d6867ea into ts-essentials:master Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants