@mnemonica/tactica 0.4.3 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -33,6 +33,12 @@ TypeScript can't infer that `user.AdminType` exists, because `UserType.define()`
33
33
 
34
34
  Tactica parses your source, builds the type hierarchy, and emits `.tactica/types.ts` + `.tactica/registry.ts`. Once those files are part of your `tsc` compilation, TypeScript understands the full hierarchy — without runtime changes.
35
35
 
36
+ > Emitting `define()` results directly instead of using tactica (or the
37
+ > builder pattern) breaks TypeScript 6 declaration emit with a TS2883
38
+ > error. That failure is the guard rail, not a missing export — the full
39
+ > story and the available paths:
40
+ > [mnemonica docs/typed-lookup.md — Declaration emit on TypeScript 6](https://github.com/wentout/mnemonica/blob/master/docs/typed-lookup.md#declaration-emit-on-typescript-6-the-ts2883-symptom).
41
+
36
42
  ## Installation
37
43
 
38
44
  ```bash
package/SKILL.md CHANGED
@@ -27,6 +27,11 @@ consumed by editor extensions and other tools.
27
27
  - Code calls `lookup('Some.Type')` and you want the result typed
28
28
  - A constructor or subtype type-errors and the fix belongs upstream
29
29
  (regenerate `.tactica` before reaching for a cast)
30
+ - TypeScript 6 declaration emit fails with TS2883 ("cannot be named
31
+ without a reference to 'GlobalRegistry'") — the project exports free
32
+ `define()` results without a registry merge; tactica is one of the
33
+ right fixes. Full story:
34
+ [mnemonica docs/typed-lookup.md — Declaration emit on TypeScript 6](https://github.com/wentout/mnemonica/blob/master/docs/typed-lookup.md#declaration-emit-on-typescript-6-the-ts2883-symptom)
30
35
 
31
36
  ## How to run
32
37