3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-15 13:28:47 +00:00
z3/src/api/js
dependabot[bot] a4f2a1bb2e
Bump json5 from 2.2.1 to 2.2.3 in /src/api/js (#6527)
Bumps [json5](https://github.com/json5/json5) from 2.2.1 to 2.2.3.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v2.2.1...v2.2.3)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-09 09:16:55 +00:00
..
examples
scripts Update parse-api.ts 2022-10-19 12:52:58 -07:00
src JS/TS API Array support (#6393) 2022-10-17 11:10:36 -07:00
.nvmrc
.prettierrc.json
jest.config.js
package-lock.json Bump json5 from 2.2.1 to 2.2.3 in /src/api/js (#6527) 2023-01-09 09:16:55 +00:00
package.json JS/TS API Array support (#6393) 2022-10-17 11:10:36 -07:00
PUBLISHED_README.md
README.md add pointer to build parameters to README #6518 2023-01-02 16:49:31 -08:00
tsconfig.build.json
tsconfig.json
typedoc.json

TypeScript Bindings

This directory contains JavaScript code to automatically derive TypeScript bindings for the C API, which are published on npm as z3-solver.

The readme for the bindings themselves is located in PUBLISHED_README.md.

Building

You'll need to have emscripten set up, along with all of its dependencies. The easiest way to do that is with emsdk.

Then run npm i to install dependencies, npm run build:ts to build the TypeScript wrapper, and npm run build:wasm to build the wasm artifact.

Build on your own

Consult the file build-wasm.ts for configurations used for building wasm.

Tests

Current tests are very minimal: test-ts-api.ts contains a couple real cases translated very mechanically from this file.