How a-chepugov/alwz works
alwz is an extendable TypeScript typecasting library. A caller uses the public exports to cast values directly or select a named converter; configurable presets implement the conversions, while utilities build structured transformations. Predicate helpers and guard builders support validation, and the library also exposes converter aggregation and informative errors. The graph reflects documented capabilities and sampled imports/calls; unsampled implementation details are omitted rather than inferred.
Main entry points: index.ts Public exports · presets.ts Conversion presets · Converter.ts Converter engine · ErrorValue.ts Informative errors
Components 14
Public API
- Public exports
src/index.ts - Cast functions
src/cast.ts - Named selector
src/cast.ts
Conversion Engine
- Conversion presets
src/presets.ts - Converter engine
src/models/Converter.ts - Converter registry
src/models/Aggregator.ts - Registry base
src/models/Registry.ts - Numeric bounds
src/constants/numbers.ts
Validation and Structures
- Structure utilities
src/utils.ts - Type predicates
src/is.ts - Guard builders
src/models/Is.ts - Type definitions
src/constants/types.ts
Shared Support
- Informative errors
src/models/ErrorValue.ts
Other components
- Library caller
Connections 24
- Library caller → Public exports: imports
README.md - Public exports → Cast functions: exports
src/index.ts - Public exports → Conversion presets: exports
src/index.ts - Public exports → Converter registry: creates
src/index.ts - Public exports → Structure utilities: exports
src/index.ts - Public exports → Type predicates: exports
src/index.ts - Public exports → Guard builders: exports
src/index.ts - Public exports → Converter engine: exports
src/index.ts - Public exports → Informative errors: exports
src/index.ts - Cast functions → Conversion presets: uses converters
src/cast.ts - Named selector → Conversion presets: selects converter
src/cast.ts - Conversion presets → Converter engine: configures
src/presets.ts - Conversion presets → Numeric bounds: uses bounds
src/presets.ts - Conversion presets → Type predicates: checks inputs
src/presets.ts - Converter registry → Converter engine: registers
src/models/Aggregator.ts - Converter registry → Registry base: extends
src/models/Aggregator.ts - Structure utilities → Converter engine: validates conversions
src/utils.ts - Structure utilities → Conversion presets: uses default conversion
src/utils.ts - Structure utilities → Informative errors: throws
src/utils.ts - Type predicates → Numeric bounds: checks bounds
src/is.ts - Guard builders → Type definitions: validates type names
src/models/Is.ts - Guard builders → Informative errors: throws
src/models/Is.ts - Converter engine → Informative errors: throws
src/models/Converter.ts - Converter registry → Informative errors: throws
src/models/Aggregator.ts