GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(pg): named exports by perrin4869 · Pull Request #72710 · DefinitelyTyped/DefinitelyTyped

Conversation

@perrin4869

@perrin4869 perrin4869 commented May 7, 2025

Copy link
Copy Markdown
Contributor

Please fill in this template.

  • Use a meaningful title for the pull request. Include the name of the package modified.
  • Test the change in your own code. (Compile and run.)
  • Add or edit tests to reflect the change.
  • Follow the advice from the readme.
  • Avoid common mistakes.
  • Run pnpm test <package to test>.

If changing an existing definition:

  • Provide a URL to documentation or source code which provides context for the suggested changes: feat(pg): add default export #72649
  • If this PR brings the type definitions up to date with a new version of the JS library, update the version number in the package.json.

My previous PR was a bit flawed, in that the classes were not properly exported. Oops ^^;;
I didn't realize you could import/export the classes via ./index.js.
This fixes using the named exports as types.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

frankdejonge and thecopy reacted with heart emoji
All reactions
  • ❤️ 2 reactions
@perrin4869
fix(pg): named exports
2c9acf9
@typescript-bot

typescript-bot commented May 7, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

@perrin4869 Thank you for submitting this PR!

This is a live comment that I will keep updated.

1 package in this PR

  • pg — on npm, on unpkg

Code Reviews

Because this is a widely-used package, a DT maintainer will need to review it before it can be merged.

You can test the changes of this PR in the Playground.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • ✅ Most recent commit is approved by a DT maintainer

All of the items on the list are green. To merge, you need to post a comment including the string "Ready to merge" to bring in your changes.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 72710,
  "author": "perrin4869",
  "headCommitOid": "4544240effc0a60b34c2890257a84ca7b55ee210",
  "mergeBaseOid": "936968bd3492ce9296d465869dff30bd75999143",
  "lastPushDate": "2025-05-07T05:56:30.000Z",
  "lastActivityDate": "2025-05-08T16:06:39.000Z",
  "mergeOfferDate": "2025-05-08T15:09:34.000Z",
  "mergeRequestDate": "2025-05-08T16:06:39.000Z",
  "mergeRequestUser": "perrin4869",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Critical",
  "pkgInfo": [
    {
      "name": "pg",
      "kind": "edit",
      "files": [
        {
          "path": "types/pg/index.d.mts",
          "kind": "definition"
        },
        {
          "path": "types/pg/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/pg/pg-tests.mts",
          "kind": "test"
        },
        {
          "path": "types/pg/pg-tests.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "pspeter3"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Critical"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "gabritto",
      "date": "2025-05-08T15:08:53.000Z",
      "isMaintainer": true
    }
  ],
  "mainBotCommentID": 2857153028,
  "ciResult": "pass"
}
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@typescript-bot typescript-bot added the Critical package label May 7, 2025
@typescript-bot typescript-bot added this to Pull Request Status Board May 7, 2025
@typescript-bot typescript-bot moved this to Waiting for Code Reviews in Pull Request Status Board May 7, 2025
@typescript-bot

typescript-bot commented May 7, 2025

Copy link
Copy Markdown
Contributor

🔔 @pspeter3 — please review this PR in the next few days. Be sure to explicitly select Approve or Request Changes in the GitHub UI so I know what's going on.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Maintainer Review in Pull Request Status Board May 7, 2025
@perrin4869
fix(pg): add TypeOverrides to cjs
5c2997b
@typescript-bot typescript-bot added the Where is GH Actions? GH Actions didn't give a response to this PR label May 7, 2025
@typescript-bot typescript-bot moved this from Needs Maintainer Review to Other in Pull Request Status Board May 7, 2025
@perrin4869 perrin4869 mentioned this pull request May 7, 2025
feat(pg): add default export #72649
Merged
8 tasks done
@typescript-bot typescript-bot removed the Where is GH Actions? GH Actions didn't give a response to this PR label May 7, 2025
@typescript-bot typescript-bot moved this from Other to Needs Maintainer Review in Pull Request Status Board May 7, 2025
@perrin4869
fix: allow using types from default export
4544240
@perrin4869
perrin4869 force-pushed the fix/pg/mts-named-exports branch from aabebf1 to 4544240 Compare May 7, 2025 13:24
@typescript-bot typescript-bot moved this from Needs Maintainer Review to Waiting for Code Reviews in Pull Request Status Board May 7, 2025
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Maintainer Review in Pull Request Status Board May 7, 2025
gabritto
gabritto approved these changes May 8, 2025
View reviewed changes
@typescript-bot typescript-bot added Maintainer Approved Self Merge This PR can now be self-merged by the PR author or an owner labels May 8, 2025
@typescript-bot typescript-bot moved this from Needs Maintainer Review to Waiting for Author to Merge in Pull Request Status Board May 8, 2025
@typescript-bot

typescript-bot commented May 8, 2025

Copy link
Copy Markdown
Contributor

@perrin4869: Everything looks good here. I am ready to merge this PR (at 4544240) on your behalf whenever you think it's ready.

If you'd like that to happen, please post a comment saying:

Ready to merge

and I'll merge this PR almost instantly. Thanks for helping out! ❤️

(@pspeter3: you can do this too.)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@perrin4869

perrin4869 commented May 8, 2025

Copy link
Copy Markdown
Contributor Author

Ready to merge

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@typescript-bot typescript-bot moved this from Waiting for Author to Merge to Recently Merged in Pull Request Status Board May 8, 2025
@perrin4869

perrin4869 commented May 8, 2025

Copy link
Copy Markdown
Contributor Author

hm... is something wrong with the merging functionality? 🤔

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@perrin4869

perrin4869 commented May 8, 2025

Copy link
Copy Markdown
Contributor Author

Ready to merge

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@typescript-bot
typescript-bot merged commit 3b23b60 into DefinitelyTyped:master May 8, 2025
@typescript-bot typescript-bot removed this from Pull Request Status Board May 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@gabritto gabritto gabritto approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

Critical package Maintainer Approved Self Merge This PR can now be self-merged by the PR author or an owner

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@perrin4869 @typescript-bot @gabritto
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.