feat(conformance): implement ReadOnly brand and reader generator
- Add ReadOnly<F> phantom brand to core-shared/conformance (compile-time enforcement that readers only wrap non-mutating use cases) - Add isReadOnly runtime predicate for boot-time assertReaderPurity - Scaffold pnpm turbo gen reader: creates integrations/readers/ with interface, implementation, test, barrel, and adds ./reader export subpath to package.json
This commit is contained in:
3
turbo/generators/templates/reader/index.ts.hbs
Normal file
3
turbo/generators/templates/reader/index.ts.hbs
Normal file
@@ -0,0 +1,3 @@
|
||||
// packages/{{kebabCase feature}}/src/integrations/readers/index.ts
|
||||
// Public surface: type-only export. Implementation is internal.
|
||||
export type { I{{pascalCase feature}}Reader } from "./{{kebabCase feature}}.reader.interface";
|
||||
Reference in New Issue
Block a user