Skip to content

feat(node): add typings#470

Open
mittalabhas1 wants to merge 1 commit into
razorpay:masterfrom
ipforum:feat/add-typings
Open

feat(node): add typings#470
mittalabhas1 wants to merge 1 commit into
razorpay:masterfrom
ipforum:feat/add-typings

Conversation

@mittalabhas1

Copy link
Copy Markdown

Adds .d.ts type declaration files for the Node.js package so TypeScript users get type checking and IDE autocompletion out of the box after installing via npm/yarn — no separate @types/ package needed.

Changes

  • src/node/index.d.ts — types for validate, fetchDetails, and bank; includes IFSCDetails interface matching the API response shape
  • src/node/bank.d.ts — types for the generated bank constants object
  • package.json — adds "types" field pointing to index.d.ts

Notes

Uses the export = + namespace pattern so it works regardless of whether the consumer has esModuleInterop enabled in their tsconfig.json.

No runtime changes. Existing tests pass.

@mittalabhas1

Copy link
Copy Markdown
Author

@PriyankaMarbill whenever you get a chance ^

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.

1 participant