Skip to content

Commit

Permalink
fix: typing SaveData
Browse files Browse the repository at this point in the history
  • Loading branch information
m2a2x committed Nov 4, 2024
1 parent 78e9a72 commit 2c59714
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
5 changes: 2 additions & 3 deletions lib/editor.adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
EditCell,
EditorBase,
HyperFunc,
SaveData,
VNode,
} from '@revolist/revogrid';

Expand All @@ -14,7 +13,7 @@ import {
*/
export type EditorType = {
column: ColumnDataSchemaModel;
save: (value: SaveData, preventFocus?: boolean) => void;
save: (value: any, preventFocus?: boolean) => void;
close: (focusNext?: boolean) => void;
} & Partial<EditCell>;

Expand All @@ -30,7 +29,7 @@ export default class VueEditorAdapter implements EditorBase {
constructor(
private VueEditorConstructor: VueConstructor,
public column: ColumnDataSchemaModel,
private save: (value: SaveData, preventFocus?: boolean) => void,
private save: (value: any, preventFocus?: boolean) => void,
private close: (focusNext?: boolean) => void
) {}

Expand Down
4 changes: 2 additions & 2 deletions lib/editor.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { VueConstructor } from 'vue';
import { ColumnDataSchemaModel, EditorCtr, SaveData } from '@revolist/revogrid';
import type { ColumnDataSchemaModel, EditorCtr } from '@revolist/revogrid';
import VueEditorAdapter from './editor.adapter';

/**
Expand All @@ -10,7 +10,7 @@ import VueEditorAdapter from './editor.adapter';
export const Editor = (vueConstructor: VueConstructor): EditorCtr => {
return function (
column: ColumnDataSchemaModel,
save: (value: SaveData, preventFocus?: boolean) => void,
save: (value: any, preventFocus?: boolean) => void,
close: (focusNext?: boolean) => void
) {
return new VueEditorAdapter(vueConstructor, column, save, close);
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2c59714

Please sign in to comment.