这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@twoowuv
Copy link

@twoowuv twoowuv commented Nov 11, 2025

Hi there,

This PR converts the existing namespace to a module. This is best practice (from the typescript docs: "we recommended modules over namespaces in modern code") and will allow users to more easily import and use the types as they would like.

I have only converted from a namespace to a module to keep this pr focused.

I've added the following to keep the behavior the same as the namespace currently provides:

declare global {
    let newrelic: NewRelicAPI;
}

If changing an existing definition:

@typescript-bot
Copy link
Contributor

typescript-bot commented Nov 11, 2025

@twoowuv Thank you for submitting this PR! I see this is your first time submitting to DefinitelyTyped 👋 — I'm the local bot who will help you through the process of getting things through.

This is a live comment that I will keep updated.

1 package in this PR

Code Reviews

Because you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it.

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 type definition owners or DT maintainers

Once every item on this list is checked, I'll ask you for permission to merge and publish the changes.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 74060,
  "author": "twoowuv",
  "headCommitOid": "14f0a36e7b9f9f1e7463ecf4c099da9c8b638de6",
  "mergeBaseOid": "e680e51b85628e26349de6e87302bcaa269cf984",
  "lastPushDate": "2025-11-11T03:47:07.000Z",
  "lastActivityDate": "2025-11-11T20:29:17.000Z",
  "hasMergeConflict": false,
  "isFirstContribution": true,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Popular",
  "pkgInfo": [
    {
      "name": "new-relic-browser",
      "kind": "edit",
      "files": [
        {
          "path": "types/new-relic-browser/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/new-relic-browser/new-relic-browser-tests.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "renehamburger",
        "piotrkubisa"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Popular"
    }
  ],
  "reviews": [],
  "mainBotCommentID": 3514876384,
  "ciResult": "pass"
}

@typescript-bot typescript-bot added Popular package This PR affects a popular package (as counted by NPM download counts). Untested Change This PR does not touch tests labels Nov 11, 2025
@typescript-bot typescript-bot moved this to Waiting for Code Reviews in Pull Request Status Board Nov 11, 2025
@typescript-bot
Copy link
Contributor

🔔 @renehamburger @piotrkubisa — 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.

@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Maintainer Review in Pull Request Status Board Nov 11, 2025
@typescript-bot typescript-bot removed the Untested Change This PR does not touch tests label Nov 11, 2025
@typescript-bot typescript-bot moved this from Needs Maintainer Review to Waiting for Code Reviews in Pull Request Status Board Nov 11, 2025
@twoowuv twoowuv force-pushed the new-relic-browser-namespace-to-module-only branch from a36f6b7 to 14f0a36 Compare November 11, 2025 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Popular package This PR affects a popular package (as counted by NPM download counts).

Projects

Status: Waiting for Code Reviews

Development

Successfully merging this pull request may close these issues.

2 participants