Expand description
Shared export infrastructure for type declaration generators.
Provides the core traits and utilities that both flowjs-rs and ts-rs (and any future type-declaration-from-Rust project) need:
TypeVisitortrait for dependency graph walkingDependencystruct for import generationExportConfigfor configuring output paths and extensionsExportErrorfor error handling- File export with thread-safe locking and idempotent writes
- Relative import path calculation
Structs§
- Dependency
- A type dependency for import generation.
- Export
Config - Configuration for type export.
Enums§
- Export
Error - Export error.
Traits§
- Exportable
Type - Core trait that all exportable types implement.
- Type
Visitor - A visitor used to iterate over all dependencies or generics of a type.
Functions§
- diff_
paths - Compute a relative path from
basetotarget. - export_
recursive - Recursively export a type and all its dependencies.
- file_
lock - Per-file mutex for thread-safe exports.
- normalize_
separators - Normalize Windows backslashes to forward slashes for JS import paths.
- relative_
import_ path - Compute a relative import path from one file to another.
- write_
with_ lock - Write content to a file, with idempotent marker checking.