Skip to content

Commit

Permalink
fix: use strict return type for resolveData
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvxd committed Mar 26, 2024
1 parent 95280e6 commit 777cd3c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/core/types/Config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,10 @@ export type ComponentConfig<
resolveData?: (
data: DataShape,
params: { changed: Partial<Record<keyof ComponentProps, boolean>> }
) =>
| Promise<Partial<ComponentDataWithOptionalProps<ComponentProps>>>
| Partial<ComponentDataWithOptionalProps<ComponentProps>>;
) => Promise<{
props?: Partial<ComponentProps>;
readOnly?: Partial<Record<keyof ComponentProps, boolean>>;
}>;
};

type Category<ComponentName> = {
Expand Down

0 comments on commit 777cd3c

Please sign in to comment.