@nubisco/ui 1.56.0 → 1.57.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"globalTypes.d.ts","sourceRoot":"","sources":["../../src/plugins/globalTypes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAUlC,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAgFpD"}
1
+ {"version":3,"file":"globalTypes.d.ts","sourceRoot":"","sources":["../../src/plugins/globalTypes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAUlC,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAqFpD"}
@@ -36,12 +36,17 @@ export function globalTypes(basePath) {
36
36
  const entries = files
37
37
  .map((f) => ` Nb${f.name}: typeof ${f.name}`)
38
38
  .join('\n');
39
+ // The interface MUST be named `GlobalComponents`: that is the exact name
40
+ // Vue's template type-checker reads when resolving a tag that was never
41
+ // imported (i.e. everything registered by our plugin). Any other name is
42
+ // a valid module augmentation that nothing ever looks at, so consumers
43
+ // keep getting `any` for every <Nb*> tag and no prop is ever checked.
39
44
  const content = `// AUTO-GENERATED: do not edit by hand
40
45
  // Re-run the build to update this file when components change
41
46
  ${imports}
42
47
 
43
48
  declare module 'vue' {
44
- interface IGlobalComponents {
49
+ interface GlobalComponents {
45
50
  ${entries}
46
51
  }
47
52
  }