Skip to content

Conversation

@palas
Copy link
Contributor

@palas palas commented Jul 14, 2025

Changelog

- description: |
    Added typescript declaration for `cardano-wasm` API
  type:
  - feature
  - documentation
  projects:
  - cardano-wasm

Context

Because JavaScript is untyped, this PR adds TypeScript declarations that both help users of cardano-wasm API to get types right, and also they will get detailed contextual documentation when using it from IDEs.

How to trust this PR

What I checked is that the generated d.ts file is the same as the manually written one (pretty much). I also checked that you can use it from VSCode and get autocompletion and contextual documentation.

I would check the style and that there are no bugs. You can also try running the .d.ts generation (which is the main executable of cardano-wasm)

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated. See Running tests for more details
  • Self-reviewed the diff

Base automatically changed from cardano-wasm-balancing to master July 15, 2025 14:34
@palas palas force-pushed the cardano-wasm-typescript branch 4 times, most recently from 78690aa to 69d5af6 Compare July 16, 2025 14:50
@palas palas requested a review from a team as a code owner July 16, 2025 14:50
@palas palas requested a review from carbolymer July 16, 2025 15:27
@palas palas force-pushed the cardano-wasm-typescript branch 3 times, most recently from 2cc682c to c84ad5b Compare July 17, 2025 14:53
@palas palas force-pushed the cardano-wasm-typescript branch from c84ad5b to 8d2423f Compare July 17, 2025 14:56
@palas palas force-pushed the cardano-wasm-typescript branch from 8d2423f to d4a5e5b Compare July 17, 2025 15:13
@palas palas force-pushed the cardano-wasm-typescript branch 2 times, most recently from 9556681 to 50928d4 Compare July 18, 2025 16:38
@palas palas force-pushed the cardano-wasm-typescript branch from 50928d4 to bb53acb Compare July 18, 2025 16:42
@palas palas added this pull request to the merge queue Jul 18, 2025
Merged via the queue into master with commit f037d0d Jul 18, 2025
29 checks passed
@palas palas deleted the cardano-wasm-typescript branch July 18, 2025 18:02
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.

4 participants