@omnifyjp/ts 6.7.10 → 6.7.11

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.
@@ -11,7 +11,7 @@ export declare function shadowingPropertyConflicts(baseClass: string, baseArrayV
11
11
  */
12
12
  export declare function parseRedeclaredStringArray(source: string, prop: string): string[] | null;
13
13
  export declare function formatShadowingDrift(baseValues: readonly string[], childValues: string[] | null): string;
14
- export type ShadowingDrift = 'out-of-sync' | 'in-sync' | 'unknown';
14
+ export type ShadowingDrift = 'out-of-sync' | 'extra-only' | 'in-sync' | 'unknown';
15
15
  export type ShadowingConflictResult = {
16
16
  property: ShadowingEloquentProperty;
17
17
  message: string;
@@ -106,7 +106,10 @@ function classifyShadowingDrift(baseValues, childValues) {
106
106
  if (missing.length === 0 && extra.length === 0) {
107
107
  return 'in-sync';
108
108
  }
109
- return 'out-of-sync';
109
+ if (missing.length > 0) {
110
+ return 'out-of-sync';
111
+ }
112
+ return 'extra-only';
110
113
  }
111
114
  /**
112
115
  * Evaluate shadowing conflicts for a skipped user-editable model file.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnifyjp/ts",
3
- "version": "6.7.10",
3
+ "version": "6.7.11",
4
4
  "description": "TypeScript model type generator from Omnify schemas.json",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",