⬅️ Back to Table of Contents
📄 index.test.ts
📊 Analysis Summary
Metric |
Count |
📦 Imports |
9 |
📊 Variables & Constants |
13 |
📚 Table of Contents
🛠️ File Location:
📂 packages/integrations/useAsyncValidator/index.test.ts
📦 Imports
Name |
Source |
Rules |
async-validator |
Ref |
vue |
beforeEach |
vitest |
describe |
vitest |
expect |
vitest |
it |
vitest |
deepRef |
vue |
nextTick |
vue |
useAsyncValidator |
./index |
Variables & Constants
Name |
Type |
Kind |
Value |
Exported |
form |
`{ |
|
|
|
name: string |
|
|
|
|
age: number |
|
|
|
|
}| let/var | not shown` |
✗ |
|
|
|
rules |
Rules |
const |
`{ |
|
name: { |
|
|
|
|
type: 'string', |
|
|
|
|
}, |
|
|
|
|
age: { |
|
|
|
|
type: 'number', |
|
|
|
|
}, |
|
|
|
|
}` |
✗ |
|
|
|
rules |
Rules |
let/var |
`{ |
|
name: { |
|
|
|
|
type: 'string', |
|
|
|
|
}, |
|
|
|
|
age: { |
|
|
|
|
type: 'number', |
|
|
|
|
}, |
|
|
|
|
}` |
✗ |
|
|
|
rules |
Rules |
let/var |
`{ |
|
name: { |
|
|
|
|
type: 'string', |
|
|
|
|
}, |
|
|
|
|
age: { |
|
|
|
|
type: 'number', |
|
|
|
|
}, |
|
|
|
|
}` |
✗ |
|
|
|
rules |
Rules |
let/var |
`{ |
|
name: { |
|
|
|
|
type: 'string', |
|
|
|
|
}, |
|
|
|
|
age: { |
|
|
|
|
type: 'number', |
|
|
|
|
}, |
|
|
|
|
}` |
✗ |
|
|
|
rules |
Rules |
let/var |
`{ |
|
name: { |
|
|
|
|
type: 'string', |
|
|
|
|
}, |
|
|
|
|
age: { |
|
|
|
|
type: 'number', |
|
|
|
|
}, |
|
|
|
|
}` |
✗ |
|
|
|
rules |
Rules |
let/var |
`{ |
|
name: { |
|
|
|
|
type: 'string', |
|
|
|
|
min: 5, |
|
|
|
|
max: 20, |
|
|
|
|
message: 'name length must be 5-20', |
|
|
|
|
}, |
|
|
|
|
age: { |
|
|
|
|
type: 'number', |
|
|
|
|
}, |
|
|
|
|
}` |
✗ |
|
|
|
rules |
Rules |
let/var |
`{ |
|
name: { |
|
|
|
|
type: 'string', |
|
|
|
|
min: 5, |
|
|
|
|
max: 20, |
|
|
|
|
message: 'name length must be 5-20', |
|
|
|
|
}, |
|
|
|
|
age: { |
|
|
|
|
type: 'number', |
|
|
|
|
}, |
|
|
|
|
}` |
✗ |
|
|
|
rules |
Ref<Rules> |
let/var |
`deepRef({ |
|
name: { |
|
|
|
|
type: 'string', |
|
|
|
|
min: 5, |
|
|
|
|
max: 20, |
|
|
|
|
message: 'name length must be 5-20', |
|
|
|
|
}, |
|
|
|
|
age: { |
|
|
|
|
type: 'number', |
|
|
|
|
}, |
|
|
|
|
}) as Ref` |
✗ |
|
|
|
form |
`{ |
|
|
|
name: string |
|
|
|
|
age: number |
|
|
|
|
}| let/var | not shown` |
✗ |
|
|
|
rules |
Rules |
let/var |
`{ |
|
name: { |
|
|
|
|
type: 'string', |
|
|
|
|
min: 5, |
|
|
|
|
max: 20, |
|
|
|
|
message: 'name length must be 5-20', |
|
|
|
|
}, |
|
|
|
|
age: { |
|
|
|
|
type: 'number', |
|
|
|
|
}, |
|
|
|
|
}` |
✗ |
|
|
|
rules |
Rules |
let/var |
`{ |
|
name: { |
|
|
|
|
type: 'string', |
|
|
|
|
min: 5, |
|
|
|
|
max: 20, |
|
|
|
|
message: 'name length must be 5-20', |
|
|
|
|
}, |
|
|
|
|
age: { |
|
|
|
|
type: 'number', |
|
|
|
|
}, |
|
|
|
|
}` |
✗ |
|
|
|
rules |
Ref<Rules> |
let/var |
`deepRef({ |
|
name: { |
|
|
|
|
type: 'string', |
|
|
|
|
min: 5, |
|
|
|
|
max: 20, |
|
|
|
|
message: 'name length must be 5-20', |
|
|
|
|
}, |
|
|
|
|
age: { |
|
|
|
|
type: 'number', |
|
|
|
|
}, |
|
|
|
|
}) as Ref` |
✗ |
|
|
|