Skip to content

fix: resolve #414 — transform module in typescript?#700

Open
ed-thuando wants to merge 5 commits into
facebook:mainfrom
ed-thuando:contribai/docs/analyze-core-js-to-understand-the-jscode
Open

fix: resolve #414 — transform module in typescript?#700
ed-thuando wants to merge 5 commits into
facebook:mainfrom
ed-thuando:contribai/docs/analyze-core-js-to-understand-the-jscode

Conversation

@ed-thuando
Copy link
Copy Markdown

Summary

fix: resolve #414 — transform module in typescript?

Problem

Severity: High | File: src/core.js

This file contains the main jscodeshift API that is passed to transform functions. I need to understand what methods are available on the jscodeshift object (JSCodeshift interface).

Solution

Combined multi-file contribution:

  • Docs: Analyze core.js to understand the jscodeshift API
  • Docs: Analyze Collection.js to understand the Collection interface
  • Docs: Analyze matchNode.js for matching utilities
  • Docs: Check package.json for current type exports configuration
  • Docs: Create TypeScript type declarations for jscodeshift module

Files changed: src/core.js, src/Collection.js, src/matchNode.js, package.json, types.d.ts

Changes

  • src/core.js (modified)
  • src/Collection.js (modified)
  • src/matchNode.js (modified)
  • package.json (modified)
  • types.d.ts (new)

Testing

  • Existing tests pass
  • Manual review completed
  • No new warnings/errors introduced

Generated by ContribAI v6.0.0

Fixes facebook#414

Signed-off-by: ed-thuando <231172918+ed-thuando@users.noreply.github.com>
Fixes facebook#414

Signed-off-by: ed-thuando <231172918+ed-thuando@users.noreply.github.com>
Fixes facebook#414

Signed-off-by: ed-thuando <231172918+ed-thuando@users.noreply.github.com>
Fixes facebook#414

Signed-off-by: ed-thuando <231172918+ed-thuando@users.noreply.github.com>
Fixes facebook#414

Signed-off-by: ed-thuando <231172918+ed-thuando@users.noreply.github.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 11, 2026

⚠️ No Changeset found

Latest commit: de8393a

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

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 11, 2026

@ed-thuando is attempting to deploy a commit to the Meta Open Source Team on Vercel.

A member of the Team first needs to authorize it.

@meta-cla
Copy link
Copy Markdown

meta-cla Bot commented Apr 11, 2026

Hi @ed-thuando!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

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.

transform module in typescript?

1 participant