Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use TypeScript for @finos/perspective-viewer #1530

Merged
merged 4 commits into from
Sep 6, 2021
Merged

Use TypeScript for @finos/perspective-viewer #1530

merged 4 commits into from
Sep 6, 2021

Conversation

texodus
Copy link
Member

@texodus texodus commented Sep 3, 2021

Maintaining an index.d.ts for Perspective has been a headache. As most development is now in Rust/WebAssembly anyway, and we only need shallow JavaScript wrappers to export clean APIs, we might as well write these wrappers in TypeScript to take advantage of the TypeScript compiler and the existing partial type signatures generated from wasm_bindgen in Rust. I find this preferable to any combination of hand-writing type files and/or writing tests explicitly against type signatures (though we'll likely need some facsimile of the latter regardless).

Additionally:

@texodus texodus marked this pull request as ready for review September 4, 2021 20:44
@texodus texodus merged commit 71ffb6a into master Sep 6, 2021
@texodus texodus deleted the correct-types branch September 6, 2021 04:00
@texodus texodus added the bug Concrete, reproducible bugs label Sep 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Concrete, reproducible bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect type for Filters in Typescript perspective-viewer/index.d.ts
1 participant