Title: Add types export to package.json by Khauri · Pull Request #20 · JavaScriptRegenerated/yieldparser · GitHub
Open Graph Title: Add types export to package.json by Khauri · Pull Request #20 · JavaScriptRegenerated/yieldparser
X Title: Add types export to package.json by Khauri · Pull Request #20 · JavaScriptRegenerated/yieldparser
Description: This PR adds the "types" field to the exports in the package.json pointed to the generated dist/index.d.ts. Without it, my project was unable to pull any types for yieldparser, which made it a tad bit harder to work with. This is the error typsecript reported: Could not find a declaration file for module 'yieldparser'. 'node_modules/yieldparser/dist/yieldparser.module.js' implicitly has an 'any' type. There are types at 'node_modules/yieldparser/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'yieldparser' library may need to update its package.json or typings. Let me know if you find any issues. Also thanks for creating such a cool parser generator. I've found it really nice for things that are too complex for regex but not so much that I'd want to write a whole grammar for
Open Graph Description: This PR adds the "types" field to the exports in the package.json pointed to the generated dist/index.d.ts. Without it, my project was unable to pull any types for yieldparser, which made...
X Description: This PR adds the "types" field to the exports in the package.json pointed to the generated dist/index.d.ts. Without it, my project was unable to pull any types for yieldparser, wh...
Opengraph URL: https://github.com/JavaScriptRegenerated/yieldparser/pull/20
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:6d1a93ea-c4af-0b8d-e921-4c2fb153551f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 96F6:5F86D:10DFDB8:164E236:69718210 |
| html-safe-nonce | 79f5261c1ecf058e8594a6eb773abb7acdc1953c4513ce3c4e7f09cc7c9caed4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NkY2OjVGODZEOjEwREZEQjg6MTY0RTIzNjo2OTcxODIxMCIsInZpc2l0b3JfaWQiOiI2Mzg0MDA1NDgxNzc2NjQ0NjI0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8377f68b74163818c08c89f3541bba578785dff843726509ef382b584a95e6dc |
| hovercard-subject-tag | pull_request:1719471348 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/JavaScriptRegenerated/yieldparser/pull/20/files |
| twitter:image | https://avatars.githubusercontent.com/u/12753703?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/12753703?s=400&v=4 |
| og:image:alt | This PR adds the "types" field to the exports in the package.json pointed to the generated dist/index.d.ts. Without it, my project was unable to pull any types for yieldparser, which made... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 83f241b6f7605f8428e9ff3118ca968f3a377f07904e088dfd9465a7c12cc367 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/JavaScriptRegenerated/yieldparser git https://github.com/JavaScriptRegenerated/yieldparser.git |
| octolytics-dimension-user_id | 91813245 |
| octolytics-dimension-user_login | JavaScriptRegenerated |
| octolytics-dimension-repository_id | 315774639 |
| octolytics-dimension-repository_nwo | JavaScriptRegenerated/yieldparser |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 315774639 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptRegenerated/yieldparser |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 742da896705f64f8f87756c8e5cc3175bdbeb85e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width