| Crates.io | vize_canon |
| lib.rs | vize_canon |
| version | 0.0.1-alpha.31 |
| created_at | 2026-01-11 16:48:02.499065+00 |
| updated_at | 2026-01-12 12:43:52.09086+00 |
| description | Canon - The standard of correctness for Vize type checking |
| homepage | |
| repository | https://github.com/ubugeeei/vize |
| max_upload_size | |
| id | 2036088 |
| size | 58,649 |
The Canon - TypeScript type checking for Vue SFCs
Canon (/ˈkænən/) in art refers to a set of ideal proportions or standards that define aesthetic perfection. Ancient Greek sculptors like Polykleitos established the "Canon" - mathematical ratios for the ideal human figure that became the standard for classical sculpture.
In the art world, a canon:
Similarly, vize_canon provides:
{{ }}v-bind, v-on, etc.use vize_canon::{TypeChecker, TypeContext};
let checker = TypeChecker::new();
let ctx = TypeContext::from_sfc(&descriptor);
// Check template for type errors
let diagnostics = checker.check_template(&ctx);
// Get type at position
if let Some(info) = checker.get_type_at(&ctx, offset) {
println!("Type: {}", info.display());
}
| Code | Description |
|---|---|
| 2304 | Cannot find name |
| 2339 | Property does not exist |
| 2345 | Argument type mismatch |
vize_canon is part of the Vize compiler's art-themed crate collection:
| Crate | Art Term | Role |
|---|---|---|
| vize_carton | Carton (Portfolio Case) | Shared utilities & allocator |
| vize_atelier_core | - | AST & Parser (core) |
| vize_atelier_dom | Atelier (Workshop) | DOM compiler |
| vize_atelier_vapor | Atelier (Workshop) | Vapor compiler |
| vize_atelier_sfc | Atelier (Workshop) | SFC compiler |
| vize_vitrine | Vitrine (Display Case) | Bindings (Node.js/WASM) |
| vize_canon | Canon (Standard) | Type checker (this crate) |
MIT License