@company-semantics/contracts 47.1.0 → 47.1.1
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/package.json +1 -1
- package/src/resource-keys.ts +8 -2
package/package.json
CHANGED
package/src/resource-keys.ts
CHANGED
|
@@ -303,9 +303,15 @@ type Assert<T extends true> = T;
|
|
|
303
303
|
* The false branch resolves to the UNROUTED LITERALS rather than to `false`, so
|
|
304
304
|
* the diagnostic names the culprit:
|
|
305
305
|
* `Type '"directGrants"' does not satisfy the constraint 'true'`.
|
|
306
|
-
*
|
|
306
|
+
*
|
|
307
|
+
* EXPORTED, though nothing consumes it. This package ships `src`, so every
|
|
308
|
+
* consumer typechecks this file under ITS OWN compiler options — and the
|
|
309
|
+
* backend sets `noUnusedLocals`, which rejects an unexported type alias that
|
|
310
|
+
* nothing references. Keeping it private broke `tsc` in a consumer while
|
|
311
|
+
* passing here, so the export is what makes the assertion portable, not a
|
|
312
|
+
* widening of the public vocabulary. Do not "tidy" it away.
|
|
307
313
|
*/
|
|
308
|
-
type
|
|
314
|
+
export type RoutingExhaustivenessWitness = Assert<
|
|
309
315
|
[Exclude<ResourceKey["type"], RoutedType>] extends [never]
|
|
310
316
|
? true
|
|
311
317
|
: Exclude<ResourceKey["type"], RoutedType>
|