Skip to content

[safie-sdk] Add type definitions#75014

Open
yusuke-oba1 wants to merge 2 commits into
DefinitelyTyped:masterfrom
yusuke-oba1:safie-sdk-add
Open

[safie-sdk] Add type definitions#75014
yusuke-oba1 wants to merge 2 commits into
DefinitelyTyped:masterfrom
yusuke-oba1:safie-sdk-add

Conversation

@yusuke-oba1
Copy link
Copy Markdown

Type definitions for the Safie Developers JavaScript SDK distributed via CDN from https://developers.safie.link/.

This is a non-npm package that declares the global Safie namespace exposed by the SDK when loaded as a <script> tag.

If adding a new definition:

  • The package does not already provide its own types, or cannot have its .d.ts files generated via --declaration
  • If this is for an npm package, match the name. If not, do not conflict with the name of an npm package.
  • Create it with dts-gen --dt, not by basing it on an existing project.
    • Note: instead of dts-gen, the declarations were generated from the SDK's own TypeScript source via tsc --declaration and then post-processed to fit the DefinitelyTyped global-namespace conventions. This yields more accurate types than runtime introspection by dts-gen.
  • Represents shape of module/library correctly
  • tsconfig.json should have noImplicitAny, noImplicitThis, strictNullChecks, and strictFunctionTypes set to true.

Type definitions for the Safie Developers JavaScript SDK distributed via
CDN from https://developers.safie.link/.

This is a non-npm package that declares the global Safie namespace exposed
by the SDK when loaded as a <script> tag.
@typescript-bot
Copy link
Copy Markdown
Contributor

typescript-bot commented May 18, 2026

@yusuke-oba1 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

This PR adds a new definition, so it needs to be reviewed by a DT maintainer 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
  • 🕐 Only a DT maintainer can approve changes when there are new packages added

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": 75014,
  "author": "yusuke-oba1",
  "headCommitOid": "84d893eab091fe78c932364875074403655adcbc",
  "mergeBaseOid": "c6fb7d2e0e833931ac92da131709d2c6178ce3d8",
  "lastPushDate": "2026-05-18T01:00:25.000Z",
  "lastActivityDate": "2026-05-18T01:00:25.000Z",
  "hasMergeConflict": false,
  "isFirstContribution": true,
  "tooManyFiles": false,
  "hugeChange": false,
  "tooManyCommits": false,
  "tooManyReviews": false,
  "popularityLevel": "Well-liked by everyone",
  "pkgInfo": [
    {
      "name": "safie-sdk",
      "kind": "add",
      "files": [
        {
          "path": "types/safie-sdk/.npmignore",
          "kind": "package-meta-ok"
        },
        {
          "path": "types/safie-sdk/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/safie-sdk/package.json",
          "kind": "package-meta-ok"
        },
        {
          "path": "types/safie-sdk/safie-sdk-tests.ts",
          "kind": "test"
        },
        {
          "path": "types/safie-sdk/tsconfig.json",
          "kind": "package-meta-ok"
        }
      ],
      "owners": [],
      "addedOwners": [
        "SafieDev"
      ],
      "deletedOwners": [],
      "popularityLevel": "Well-liked by everyone"
    }
  ],
  "reviews": [],
  "mainBotCommentID": 4473279812,
  "ciResult": "pass"
}

@typescript-bot typescript-bot added the New Definition This PR creates a new definition package. label May 18, 2026
@typescript-bot
Copy link
Copy Markdown
Contributor

🔔 @yusuke-oba1 — there are no owners, but it would still be good if you find someone to review this PR in the next few days, otherwise a maintainer will look at it. (And if you do find someone, maybe even recruit them to be a second owner to make future changes easier...)

@typescript-bot typescript-bot moved this to Waiting for Code Reviews in Pull Request Status Board May 18, 2026
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Maintainer Action in Pull Request Status Board May 18, 2026
@typescript-bot typescript-bot added the Where is GH Actions? GH Actions didn't give a response to this PR label May 18, 2026
@typescript-bot typescript-bot moved this from Needs Maintainer Action to Other in Pull Request Status Board May 18, 2026
@typescript-bot typescript-bot removed the Where is GH Actions? GH Actions didn't give a response to this PR label May 18, 2026
@typescript-bot typescript-bot moved this from Other to Needs Maintainer Action in Pull Request Status Board May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

New Definition This PR creates a new definition package.

Projects

Status: Needs Maintainer Action

Development

Successfully merging this pull request may close these issues.

2 participants