format: apply repo prettier (3.8.1) to the folded skills tree
963 markdown files reformatted with the repository's pinned prettier so pnpm format:check covers the folded tree like every other repo file. The formatter's embedded-language pass also normalized code fences (TS semicolons, closed HTML tags in examples, lowercased CSS hex colors, one renumbered list that skipped an index). Alphanumeric token deltas vs the fold commit were audited file-by-file; all are formatter-equivalent markup normalizations plus the four sanitized skills.
This commit is contained in:
@@ -15,46 +15,46 @@ npm i async-validator@^4
|
||||
## Usage
|
||||
|
||||
```ts
|
||||
import { useAsyncValidator } from '@vueuse/integrations/useAsyncValidator'
|
||||
import { useAsyncValidator } from '@vueuse/integrations/useAsyncValidator';
|
||||
```
|
||||
|
||||
## Type Declarations
|
||||
|
||||
```ts
|
||||
export type AsyncValidatorError = Error & {
|
||||
errors: ValidateError[]
|
||||
fields: Record<string, ValidateError[]>
|
||||
}
|
||||
errors: ValidateError[];
|
||||
fields: Record<string, ValidateError[]>;
|
||||
};
|
||||
export interface UseAsyncValidatorExecuteReturn {
|
||||
pass: boolean
|
||||
errors: AsyncValidatorError["errors"] | undefined
|
||||
errorInfo: AsyncValidatorError | null
|
||||
errorFields: AsyncValidatorError["fields"] | undefined
|
||||
pass: boolean;
|
||||
errors: AsyncValidatorError['errors'] | undefined;
|
||||
errorInfo: AsyncValidatorError | null;
|
||||
errorFields: AsyncValidatorError['fields'] | undefined;
|
||||
}
|
||||
export interface UseAsyncValidatorReturn {
|
||||
pass: ShallowRef<boolean>
|
||||
isFinished: ShallowRef<boolean>
|
||||
errors: ComputedRef<AsyncValidatorError["errors"] | undefined>
|
||||
errorInfo: ShallowRef<AsyncValidatorError | null>
|
||||
errorFields: ComputedRef<AsyncValidatorError["fields"] | undefined>
|
||||
execute: () => Promise<UseAsyncValidatorExecuteReturn>
|
||||
pass: ShallowRef<boolean>;
|
||||
isFinished: ShallowRef<boolean>;
|
||||
errors: ComputedRef<AsyncValidatorError['errors'] | undefined>;
|
||||
errorInfo: ShallowRef<AsyncValidatorError | null>;
|
||||
errorFields: ComputedRef<AsyncValidatorError['fields'] | undefined>;
|
||||
execute: () => Promise<UseAsyncValidatorExecuteReturn>;
|
||||
}
|
||||
export interface UseAsyncValidatorOptions {
|
||||
/**
|
||||
* @see https://github.com/yiminghe/async-validator#options
|
||||
*/
|
||||
validateOption?: ValidateOption
|
||||
validateOption?: ValidateOption;
|
||||
/**
|
||||
* The validation will be triggered right away for the first time.
|
||||
* Only works when `manual` is not set to true.
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
immediate?: boolean
|
||||
immediate?: boolean;
|
||||
/**
|
||||
* If set to true, the validation will not be triggered automatically.
|
||||
*/
|
||||
manual?: boolean
|
||||
manual?: boolean;
|
||||
}
|
||||
/**
|
||||
* Wrapper for async-validator.
|
||||
@@ -66,5 +66,5 @@ export declare function useAsyncValidator(
|
||||
value: MaybeRefOrGetter<Record<string, any>>,
|
||||
rules: MaybeRefOrGetter<Rules>,
|
||||
options?: UseAsyncValidatorOptions,
|
||||
): UseAsyncValidatorReturn & PromiseLike<UseAsyncValidatorReturn>
|
||||
): UseAsyncValidatorReturn & PromiseLike<UseAsyncValidatorReturn>;
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user