Skip to content

Addition of interfaces and classes for all request reponses#315

Open
patinoAlexis wants to merge 2 commits into
Asana:masterfrom
patinoAlexis:master
Open

Addition of interfaces and classes for all request reponses#315
patinoAlexis wants to merge 2 commits into
Asana:masterfrom
patinoAlexis:master

Conversation

@patinoAlexis
Copy link
Copy Markdown

This is the first commit with the general idea of seeing if you guys find it okay with the approach of creating the different classes and interfaces.

My main idea is to try to creating more interfaces and classes and for the moment concentrating of typing all the different type of results. For the moment only AccessRequestApi was done, but once you give i get your feedback my intention is doing it with every single Api file

patinoAlexis and others added 2 commits April 15, 2026 20:50
Adding modifications to allow a better understanding of what the AccessRequestApi.js file is returning for each function and doing a more generic creation of interfaces and classes.
…ibility

- Add `build` script using `babel src --out-dir dist --copy-files` so that
  `.d.ts` declaration files are copied alongside compiled JS into dist/
- Update `"main"` from `src/index.js` to `dist/index.js` so consumers receive
  CommonJS-compiled output instead of raw ES Modules source
- Update `"types"` from `src/index.d.ts` to `dist/index.d.ts` so TypeScript
  resolves declarations from the built output, matching the JS entry point
- Add `dist` to .gitignore

Previously, `npm link` consumers would hit a SyntaxError at runtime (ES Module
`import` in a CommonJS context) and TypeScript would fail to find type
declarations because the `.d.ts` files were never included in the dist output.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant