Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d34f1fbf
authored
Sep 21, 2024
by
Vben
Committed by
GitHub
Sep 21, 2024
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: improve defineConfig types (#4454)
1 parent
60cffb0d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
internal/vite-config/src/typing.ts
packages/@core/ui-kit/form-ui/__tests__/form-api.test.ts
internal/vite-config/src/typing.ts
View file @
d34f1fb
...
@@ -137,12 +137,12 @@ type ApplicationOptions = ApplicationPluginOptions;
...
@@ -137,12 +137,12 @@ type ApplicationOptions = ApplicationPluginOptions;
type
LibraryOptions
=
LibraryPluginOptions
;
type
LibraryOptions
=
LibraryPluginOptions
;
type
DefineApplicationOptions
=
(
config
?
:
ConfigEnv
)
=>
Promise
<
{
type
DefineApplicationOptions
=
(
config
:
ConfigEnv
)
=>
Promise
<
{
application
?:
ApplicationOptions
;
application
?:
ApplicationOptions
;
vite
?:
UserConfig
;
vite
?:
UserConfig
;
}
>
;
}
>
;
type
DefineLibraryOptions
=
(
config
?
:
ConfigEnv
)
=>
Promise
<
{
type
DefineLibraryOptions
=
(
config
:
ConfigEnv
)
=>
Promise
<
{
library
?:
LibraryOptions
;
library
?:
LibraryOptions
;
vite
?:
UserConfig
;
vite
?:
UserConfig
;
}
>
;
}
>
;
...
...
packages/@core/ui-kit/form-ui/__tests__/form-api.test.ts
View file @
d34f1fb
...
@@ -183,7 +183,7 @@ describe('updateSchema', () => {
...
@@ -183,7 +183,7 @@ describe('updateSchema', () => {
instance
.
updateSchema
(
newSchema
);
instance
.
updateSchema
(
newSchema
);
expect
(
consoleErrorSpy
).
toHaveBeenCalledWith
(
expect
(
consoleErrorSpy
).
toHaveBeenCalledWith
(
'All
children of the form Schema array that need to be updated must contain the `field` fiel
d'
,
'All
items in the schema array must have a valid `fieldName` property to be update
d'
,
);
);
});
});
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment