Skip to content

Commit bbd893d

Browse files
serpentbladeclaude
andcommitted
fix(data-table): regen Vue leaf — unknown|null -> Record<string,any>|null (260623-kks)
Regenerated the data-table Vue leaf .vue files from the fixed Vue emitter. Every change is the prop-type string only: the collapsing `unknown | null` fields (column/row/value/minMax) now emit `Record<string, any> | null`, which withDefaults accepts. Function fields (commit/cancel/setFilter) stay `((...args: any[]) => any) | null` byte-identical. Eliminates the 29x TS2322 class in the leaf's strict ./source typecheck. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011JE6gykywo57CcqUJZTsB9
1 parent c7cd8fe commit bbd893d

9 files changed

Lines changed: 9 additions & 9 deletions

File tree

packages/ui/data-table/packages/vue/src/DetailPanel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<script setup lang="ts">
1414
const props = withDefaults(
15-
defineProps<{ row?: unknown | null }>(),
15+
defineProps<{ row?: Record<string, any> | null }>(),
1616
{ row: null }
1717
);
1818

packages/ui/data-table/packages/vue/src/EditorCheckbox.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<script setup lang="ts">
88
const props = withDefaults(
9-
defineProps<{ columnId?: string; column?: unknown | null; row?: unknown | null; value?: unknown | null; commit?: ((...args: any[]) => any) | null; cancel?: ((...args: any[]) => any) | null }>(),
9+
defineProps<{ columnId?: string; column?: Record<string, any> | null; row?: Record<string, any> | null; value?: Record<string, any> | null; commit?: ((...args: any[]) => any) | null; cancel?: ((...args: any[]) => any) | null }>(),
1010
{ columnId: '', column: null, row: null, value: null, commit: null, cancel: null }
1111
);
1212

packages/ui/data-table/packages/vue/src/EditorDate.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import { ref } from 'vue';
99
1010
const props = withDefaults(
11-
defineProps<{ columnId?: string; column?: unknown | null; row?: unknown | null; value?: unknown | null; commit?: ((...args: any[]) => any) | null; cancel?: ((...args: any[]) => any) | null }>(),
11+
defineProps<{ columnId?: string; column?: Record<string, any> | null; row?: Record<string, any> | null; value?: Record<string, any> | null; commit?: ((...args: any[]) => any) | null; cancel?: ((...args: any[]) => any) | null }>(),
1212
{ columnId: '', column: null, row: null, value: null, commit: null, cancel: null }
1313
);
1414

packages/ui/data-table/packages/vue/src/EditorNumber.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import { ref } from 'vue';
99
1010
const props = withDefaults(
11-
defineProps<{ columnId?: string; column?: unknown | null; row?: unknown | null; value?: unknown | null; commit?: ((...args: any[]) => any) | null; cancel?: ((...args: any[]) => any) | null }>(),
11+
defineProps<{ columnId?: string; column?: Record<string, any> | null; row?: Record<string, any> | null; value?: Record<string, any> | null; commit?: ((...args: any[]) => any) | null; cancel?: ((...args: any[]) => any) | null }>(),
1212
{ columnId: '', column: null, row: null, value: null, commit: null, cancel: null }
1313
);
1414

packages/ui/data-table/packages/vue/src/EditorSelect.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<script setup lang="ts">
1010
const props = withDefaults(
11-
defineProps<{ columnId?: string; column?: unknown | null; row?: unknown | null; value?: unknown | null; commit?: ((...args: any[]) => any) | null; cancel?: ((...args: any[]) => any) | null; options?: any[] }>(),
11+
defineProps<{ columnId?: string; column?: Record<string, any> | null; row?: Record<string, any> | null; value?: Record<string, any> | null; commit?: ((...args: any[]) => any) | null; cancel?: ((...args: any[]) => any) | null; options?: any[] }>(),
1212
{ columnId: '', column: null, row: null, value: null, commit: null, cancel: null, options: () => [] }
1313
);
1414

packages/ui/data-table/packages/vue/src/EditorText.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import { ref } from 'vue';
99
1010
const props = withDefaults(
11-
defineProps<{ columnId?: string; column?: unknown | null; row?: unknown | null; value?: unknown | null; commit?: ((...args: any[]) => any) | null; cancel?: ((...args: any[]) => any) | null }>(),
11+
defineProps<{ columnId?: string; column?: Record<string, any> | null; row?: Record<string, any> | null; value?: Record<string, any> | null; commit?: ((...args: any[]) => any) | null; cancel?: ((...args: any[]) => any) | null }>(),
1212
{ columnId: '', column: null, row: null, value: null, commit: null, cancel: null }
1313
);
1414

packages/ui/data-table/packages/vue/src/FilterNumberRange.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import { ref } from 'vue';
1212
1313
const props = withDefaults(
14-
defineProps<{ columnId?: string; column?: unknown | null; value?: unknown | null; setFilter?: ((...args: any[]) => any) | null; minMax?: unknown | null }>(),
14+
defineProps<{ columnId?: string; column?: Record<string, any> | null; value?: Record<string, any> | null; setFilter?: ((...args: any[]) => any) | null; minMax?: Record<string, any> | null }>(),
1515
{ columnId: '', column: null, value: null, setFilter: null, minMax: null }
1616
);
1717

packages/ui/data-table/packages/vue/src/FilterSelect.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<script setup lang="ts">
1111
const props = withDefaults(
12-
defineProps<{ columnId?: string; column?: unknown | null; value?: unknown | null; setFilter?: ((...args: any[]) => any) | null; uniqueValues?: any[] }>(),
12+
defineProps<{ columnId?: string; column?: Record<string, any> | null; value?: Record<string, any> | null; setFilter?: ((...args: any[]) => any) | null; uniqueValues?: any[] }>(),
1313
{ columnId: '', column: null, value: null, setFilter: null, uniqueValues: () => [] }
1414
);
1515

packages/ui/data-table/packages/vue/src/FilterText.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import { ref } from 'vue';
99
1010
const props = withDefaults(
11-
defineProps<{ columnId?: string; column?: unknown | null; value?: unknown | null; setFilter?: ((...args: any[]) => any) | null }>(),
11+
defineProps<{ columnId?: string; column?: Record<string, any> | null; value?: Record<string, any> | null; setFilter?: ((...args: any[]) => any) | null }>(),
1212
{ columnId: '', column: null, value: null, setFilter: null }
1313
);
1414

0 commit comments

Comments
 (0)