Skip to content

Commit

Permalink
fix: improve defineConfig types (#4454)
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb committed Sep 21, 2024
1 parent 60cffb0 commit d34f1fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/vite-config/src/typing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@ type ApplicationOptions = ApplicationPluginOptions;

type LibraryOptions = LibraryPluginOptions;

type DefineApplicationOptions = (config?: ConfigEnv) => Promise<{
type DefineApplicationOptions = (config: ConfigEnv) => Promise<{
application?: ApplicationOptions;
vite?: UserConfig;
}>;

type DefineLibraryOptions = (config?: ConfigEnv) => Promise<{
type DefineLibraryOptions = (config: ConfigEnv) => Promise<{
library?: LibraryOptions;
vite?: UserConfig;
}>;
Expand Down
2 changes: 1 addition & 1 deletion packages/@core/ui-kit/form-ui/__tests__/form-api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ describe('updateSchema', () => {
instance.updateSchema(newSchema);

expect(consoleErrorSpy).toHaveBeenCalledWith(
'All children of the form Schema array that need to be updated must contain the `field` field',
'All items in the schema array must have a valid `fieldName` property to be updated',
);
});

Expand Down

0 comments on commit d34f1fb

Please sign in to comment.