Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type FormValidate not up to date #1747

Closed
OrbisK opened this issue Dec 4, 2021 · 0 comments
Closed

Type FormValidate not up to date #1747

OrbisK opened this issue Dec 4, 2021 · 0 comments

Comments

@OrbisK
Copy link
Collaborator

OrbisK commented Dec 4, 2021

TuSimple/naive-ui version (版本)

2.21.3

Vue version (Vue 版本)

3.2.23

Browser and its version (浏览器及其版本)

OperaGX LVL3 (core: 81.0.4196.61)

System and its version (系统及其版本)

Windows 10 Home

Node version (Node 版本)

Reappearance link (重现链接)

https://codesandbox.io/s/elegant-leaf-43ep8?file=/src/Demo.vue

Reappearance steps (重现步骤)

No steps required.

Expected results (期望的结果)

// naive-ui/es/form/src/interface.d.ts
export declare type FormValidate = ((callback?: FormValidateCallback) => void, (shouldRuleBeApplied?: FormItemRule) => boolean) & (() => Promise<void>);

Actual results (实际的结果)

// naive-ui/es/form/src/interface.d.ts
export declare type FormValidate = ((callback?: FormValidateCallback) => void) & (() => Promise<void>);

Is wrong (I guess). FormValidate has 2 arguments.

Remarks (补充说明)

@github-actions github-actions bot added the untriaged need to sort label Dec 4, 2021
@07akioni 07akioni removed the untriaged need to sort label Dec 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants