Skip to content

feat: Add types to package - #179

Merged
fasttime merged 10 commits into
mainfrom
pkg-types
Feb 21, 2025
Merged

feat: Add types to package#179
fasttime merged 10 commits into
mainfrom
pkg-types

Conversation

@nzakas

@nzakas nzakas commented Feb 12, 2025

Copy link
Copy Markdown
Member

Builds on #178 to include types in the package:

  • Add type definitions (copied from @types/eslint__eslintrc)
  • Add type tests
  • Run type tests in CI

This eliminates the need for @types/eslint__eslintrc.

@nzakas
nzakas marked this pull request as ready for review February 19, 2025 18:19
Comment thread tests/lib/types/types.test.mts Outdated
Comment thread tests/lib/types/tsconfig.json Outdated

@fasttime fasttime left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks!

@fasttime

Copy link
Copy Markdown
Member

I'll leave this open until today's release in case someone else would like to review.

@fasttime fasttime left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Oh, actually the path of the .d.ts file in package.json is wrong. I was wondering why VSCode wasn't finding the new types locally.

Comment thread package.json Outdated
Co-authored-by: Francesco Trotta <github@fasttime.org>
@nzakas

nzakas commented Feb 21, 2025

Copy link
Copy Markdown
Member Author

Good catch!

@fasttime fasttime left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks. Going to merge now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Complete

Development

Successfully merging this pull request may close these issues.

2 participants