Commit Graph
10 Commits
Author SHA1 Message Date
hypercross c969c7f6fc refactor: enforce mandatory brackets for composite values
Implements Phase 1 and 2 of the syntax rework plan:
- Brackets `[]` are now mandatory for all tuple and array values.
- Removed the `[Type][]` array syntax; arrays now only use `Type[]`.
- `[single]` is now strictly a 1-tuple rather than an array.
- Updated documentation and test fixtures to reflect these breaking
  changes.
2026-08-06 09:19:39 +08:00
hypercross a3e0e953ff docs: update README and loader documentation 2026-06-13 10:24:42 +08:00
hypercross ea98399c24 refactor: rename package from inline-schema to typed-csv 2026-06-13 10:22:18 +08:00
hypercross 08cac3965e feat: add inline-schema/csv-loader/rollup for tsup/vite 2026-04-04 16:44:03 +08:00
hyper d056145462 fix: change format of output .d.ts files 2026-03-31 16:12:17 +08:00
hyperandQwen-Coder 525ae262fd feat: add writeToDisk option for dev server support
- Add writeToDisk option to write .d.ts files directly to disk
- Useful for rsbuild/rspack dev server which uses in-memory FS
- Set writeToDisk: true in dev mode to see generated types

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-31 15:54:38 +08:00
hyperandQwen-Coder 452b600487 fix: use declare module syntax for type definitions
- Change from standalone .d.ts to module augmentation style
- Now properly declares types for the CSV module path
- Fixes TypeScript module resolution

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-31 15:25:58 +08:00
hyperandQwen-Coder 69b419256c feat: add TypeScript type definition generation for csv-loader
- Add emitTypes option (default true) to generate .d.ts files
- Add typesOutputDir option for custom output directory
- Generate interface based on CSV schema definitions
- Export RowType for explicit type imports

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-31 15:19:03 +08:00
hyper 9a8cdcaaea refactor: default csv-parse params 2026-03-31 14:45:02 +08:00
hypercross fe2e323d19 feat: csv-loader? 2026-03-31 13:02:29 +08:00