Skip to content

Expose type checker API #232

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

Draft
wants to merge 1 commit into
base: general-fixes
Choose a base branch
from
Draft

Expose type checker API #232

wants to merge 1 commit into from

Conversation

kaleidawave
Copy link
Owner

Adds a basic API for working with types

let mut space = Space::new();

assert!(space.is_assignable_to("number", "number | string"));
assert!(!space.is_assignable_to("number | string", "number"));

TODO

  • Candidates from inference
  • More mismatch information
  • Disjoint tesy
  • Declare types and variables
  • WASM API

@kaleidawave kaleidawave added feedback-needed Extra attention/consensus is needed api Related to external (or internal) definitions labels Jul 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Related to external (or internal) definitions feedback-needed Extra attention/consensus is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant