Skip to content

Rewrite JavaScript snippets in TypeScript #528

Open
@alexjpwalker

Description

@alexjpwalker

Problem to Solve

All of our client-nodejs examples are written in JavaScript. They should be written in TypeScript. We would strongly encourage users to use TypeScript for its type safety features; it will also result in a smoother dev workflow.

Current Workaround

People can read our TypeScript code in the BDD tests of typedb-client-nodejs repo.

Proposed Solution

We should replace our JS snippets in docs with TypeScript.

Additional Information

Verifying that a TypeScript example compiles is slightly more work than for JavaScript. You need to first transpile TypeScript to JavaScript using, for example, tsc.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions