clockworklabs / clockworklabs/SpacetimeDB

Generates TypeScript "bigint" instead of "BigInt"

Open
#991 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

possibly-stale
Dominant language
Rust
Stars
25.2k
Forks
1.1k
Avg merge
2d 7h
Merged PRs (30d)
46

Description

TypeScript code generation (spacetime generate --lang typescript) currently generates the BigInt type for i128, u128, i64, and u64. It should probably generate bigint (note the casing) instead.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running spacetime generate --lang typescript on schema fields using i128, u128, i64, and u64, then trace the TypeScript generator entry point that produces those declarations. Done means each of these types is emitted as lowercase bigint rather than BigInt.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.