Skip to content

Conversation

savvar9991
Copy link

@savvar9991 savvar9991 commented Jul 26, 2025

1)The typings field is an outdated field used in earlier versions of TypeScript (before ~2.0) as an alternative to types. It served the same purpose, but with the release of TypeScript 2.0 and later, types became the standard, and typings became deprecated. TypeScript still supports typings for backward compatibility, but its use is not recommended.
2)Having two fields pointing to the same file does not add functionality but increases the likelihood of confusion. For example, if you update the path in types in the future but forget to update typings, it could lead to inconsistencies, and some tools might attempt to use the outdated path.


PR-Codex overview

This PR focuses on updating the package.json file in the agw-client package to streamline type definitions and exports.

Detailed summary

  • Removed the "typings" field from package.json.
  • Confirmed that the "types" field still points to ./dist/types/exports/index.d.ts.
  • Maintained the structure of the "exports" field for module resolution.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

changeset-bot bot commented Jul 26, 2025

⚠️ No Changeset found

Latest commit: 16bf55f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@savvar9991 savvar9991 changed the title fix json Update package.json: Remove typings Jul 26, 2025
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.

1 participant