}
: {}
-export type ShortEmitsToObject<E> = E extends Record<string, any[]>
- ? {
- [K in keyof E]: (...args: E[K]) => any
- }
- : E
+export type ShortEmitsToObject<E> =
+ E extends Record<string, any[]>
+ ? {
+ [K in keyof E]: (...args: E[K]) => any
+ }
+ : E
export type EmitFn<
Options = ObjectEmitsOptions,
Event extends keyof Options = keyof Options,
-> = Options extends Array<infer V>
- ? (event: V, ...args: any[]) => void
- : {} extends Options // if the emit is empty object (usually the default value for emit) should be converted to function
- ? (event: string, ...args: any[]) => void
- : UnionToIntersection<
- {
- [key in Event]: Options[key] extends (...args: infer Args) => any
- ? (event: key, ...args: Args) => void
- : Options[key] extends any[]
- ? (event: key, ...args: Options[key]) => void
- : (event: key, ...args: any[]) => void
- }[Event]
- >
+> =
+ Options extends Array<infer V>
+ ? (event: V, ...args: any[]) => void
+ : {} extends Options // if the emit is empty object (usually the default value for emit) should be converted to function
+ ? (event: string, ...args: any[]) => void
+ : UnionToIntersection<
+ {
+ [key in Event]: Options[key] extends (...args: infer Args) => any
+ ? (event: key, ...args: Args) => void
+ : Options[key] extends any[]
+ ? (event: key, ...args: Options[key]) => void
+ : (event: key, ...args: any[]) => void
+ }[Event]
+ >
export function emit(
instance: ComponentInternalInstance,
specifier: ^7.5.6
version: 7.5.6
'@typescript-eslint/eslint-plugin':
- specifier: ^6.17.0
- version: 6.17.0(@typescript-eslint/parser@6.17.0)(eslint@8.56.0)(typescript@5.2.2)
+ specifier: ^6.18.1
+ version: 6.18.1(@typescript-eslint/parser@6.18.1)(eslint@8.56.0)(typescript@5.2.2)
'@typescript-eslint/parser':
- specifier: ^6.17.0
- version: 6.17.0(eslint@8.56.0)(typescript@5.2.2)
+ specifier: ^6.18.1
+ version: 6.18.1(eslint@8.56.0)(typescript@5.2.2)
'@vitest/coverage-istanbul':
specifier: ^1.1.3
version: 1.1.3(vitest@1.1.3)
version: 1.24.1
eslint-plugin-import:
specifier: npm:eslint-plugin-i@^2.29.1
- version: /eslint-plugin-i@2.29.1(@typescript-eslint/parser@6.17.0)(eslint@8.56.0)
+ version: /eslint-plugin-i@2.29.1(@typescript-eslint/parser@6.18.1)(eslint@8.56.0)
eslint-plugin-jest:
- specifier: ^27.6.1
- version: 27.6.1(@typescript-eslint/eslint-plugin@6.17.0)(eslint@8.56.0)(typescript@5.2.2)
+ specifier: ^27.6.3
+ version: 27.6.3(@typescript-eslint/eslint-plugin@6.18.1)(eslint@8.56.0)(typescript@5.2.2)
estree-walker:
specifier: ^2.0.2
version: 2.0.2
specifier: ^1.0.0
version: 1.0.0
prettier:
- specifier: ^3.1.1
- version: 3.1.1
+ specifier: ^3.2.2
+ version: 3.2.2
pretty-bytes:
specifier: ^6.1.1
version: 6.1.1
dev: true
optional: true
- /@typescript-eslint/eslint-plugin@6.17.0(@typescript-eslint/parser@6.17.0)(eslint@8.56.0)(typescript@5.2.2):
- resolution: {integrity: sha512-Vih/4xLXmY7V490dGwBQJTpIZxH4ZFH6eCVmQ4RFkB+wmaCTDAx4dtgoWwMNGKLkqRY1L6rPqzEbjorRnDo4rQ==}
+ /@typescript-eslint/eslint-plugin@6.18.1(@typescript-eslint/parser@6.18.1)(eslint@8.56.0)(typescript@5.2.2):
+ resolution: {integrity: sha512-nISDRYnnIpk7VCFrGcu1rnZfM1Dh9LRHnfgdkjcbi/l7g16VYRri3TjXi9Ir4lOZSw5N/gnV/3H7jIPQ8Q4daA==}
engines: {node: ^16.0.0 || >=18.0.0}
peerDependencies:
'@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha
optional: true
dependencies:
'@eslint-community/regexpp': 4.9.1
- '@typescript-eslint/parser': 6.17.0(eslint@8.56.0)(typescript@5.2.2)
- '@typescript-eslint/scope-manager': 6.17.0
- '@typescript-eslint/type-utils': 6.17.0(eslint@8.56.0)(typescript@5.2.2)
- '@typescript-eslint/utils': 6.17.0(eslint@8.56.0)(typescript@5.2.2)
- '@typescript-eslint/visitor-keys': 6.17.0
+ '@typescript-eslint/parser': 6.18.1(eslint@8.56.0)(typescript@5.2.2)
+ '@typescript-eslint/scope-manager': 6.18.1
+ '@typescript-eslint/type-utils': 6.18.1(eslint@8.56.0)(typescript@5.2.2)
+ '@typescript-eslint/utils': 6.18.1(eslint@8.56.0)(typescript@5.2.2)
+ '@typescript-eslint/visitor-keys': 6.18.1
debug: 4.3.4
eslint: 8.56.0
graphemer: 1.4.0
- supports-color
dev: true
- /@typescript-eslint/parser@6.17.0(eslint@8.56.0)(typescript@5.2.2):
- resolution: {integrity: sha512-C4bBaX2orvhK+LlwrY8oWGmSl4WolCfYm513gEccdWZj0CwGadbIADb0FtVEcI+WzUyjyoBj2JRP8g25E6IB8A==}
+ /@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.2.2):
+ resolution: {integrity: sha512-zct/MdJnVaRRNy9e84XnVtRv9Vf91/qqe+hZJtKanjojud4wAVy/7lXxJmMyX6X6J+xc6c//YEWvpeif8cAhWA==}
engines: {node: ^16.0.0 || >=18.0.0}
peerDependencies:
eslint: ^7.0.0 || ^8.0.0
typescript:
optional: true
dependencies:
- '@typescript-eslint/scope-manager': 6.17.0
- '@typescript-eslint/types': 6.17.0
- '@typescript-eslint/typescript-estree': 6.17.0(typescript@5.2.2)
- '@typescript-eslint/visitor-keys': 6.17.0
+ '@typescript-eslint/scope-manager': 6.18.1
+ '@typescript-eslint/types': 6.18.1
+ '@typescript-eslint/typescript-estree': 6.18.1(typescript@5.2.2)
+ '@typescript-eslint/visitor-keys': 6.18.1
debug: 4.3.4
eslint: 8.56.0
typescript: 5.2.2
'@typescript-eslint/visitor-keys': 5.62.0
dev: true
- /@typescript-eslint/scope-manager@6.17.0:
- resolution: {integrity: sha512-RX7a8lwgOi7am0k17NUO0+ZmMOX4PpjLtLRgLmT1d3lBYdWH4ssBUbwdmc5pdRX8rXon8v9x8vaoOSpkHfcXGA==}
+ /@typescript-eslint/scope-manager@6.18.1:
+ resolution: {integrity: sha512-BgdBwXPFmZzaZUuw6wKiHKIovms97a7eTImjkXCZE04TGHysG+0hDQPmygyvgtkoB/aOQwSM/nWv3LzrOIQOBw==}
engines: {node: ^16.0.0 || >=18.0.0}
dependencies:
- '@typescript-eslint/types': 6.17.0
- '@typescript-eslint/visitor-keys': 6.17.0
+ '@typescript-eslint/types': 6.18.1
+ '@typescript-eslint/visitor-keys': 6.18.1
dev: true
- /@typescript-eslint/type-utils@6.17.0(eslint@8.56.0)(typescript@5.2.2):
- resolution: {integrity: sha512-hDXcWmnbtn4P2B37ka3nil3yi3VCQO2QEB9gBiHJmQp5wmyQWqnjA85+ZcE8c4FqnaB6lBwMrPkgd4aBYz3iNg==}
+ /@typescript-eslint/type-utils@6.18.1(eslint@8.56.0)(typescript@5.2.2):
+ resolution: {integrity: sha512-wyOSKhuzHeU/5pcRDP2G2Ndci+4g653V43gXTpt4nbyoIOAASkGDA9JIAgbQCdCkcr1MvpSYWzxTz0olCn8+/Q==}
engines: {node: ^16.0.0 || >=18.0.0}
peerDependencies:
eslint: ^7.0.0 || ^8.0.0
typescript:
optional: true
dependencies:
- '@typescript-eslint/typescript-estree': 6.17.0(typescript@5.2.2)
- '@typescript-eslint/utils': 6.17.0(eslint@8.56.0)(typescript@5.2.2)
+ '@typescript-eslint/typescript-estree': 6.18.1(typescript@5.2.2)
+ '@typescript-eslint/utils': 6.18.1(eslint@8.56.0)(typescript@5.2.2)
debug: 4.3.4
eslint: 8.56.0
ts-api-utils: 1.0.3(typescript@5.2.2)
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
dev: true
- /@typescript-eslint/types@6.17.0:
- resolution: {integrity: sha512-qRKs9tvc3a4RBcL/9PXtKSehI/q8wuU9xYJxe97WFxnzH8NWWtcW3ffNS+EWg8uPvIerhjsEZ+rHtDqOCiH57A==}
+ /@typescript-eslint/types@6.18.1:
+ resolution: {integrity: sha512-4TuMAe+tc5oA7wwfqMtB0Y5OrREPF1GeJBAjqwgZh1lEMH5PJQgWgHGfYufVB51LtjD+peZylmeyxUXPfENLCw==}
engines: {node: ^16.0.0 || >=18.0.0}
dev: true
- supports-color
dev: true
- /@typescript-eslint/typescript-estree@6.17.0(typescript@5.2.2):
- resolution: {integrity: sha512-gVQe+SLdNPfjlJn5VNGhlOhrXz4cajwFd5kAgWtZ9dCZf4XJf8xmgCTLIqec7aha3JwgLI2CK6GY1043FRxZwg==}
+ /@typescript-eslint/typescript-estree@6.18.1(typescript@5.2.2):
+ resolution: {integrity: sha512-fv9B94UAhywPRhUeeV/v+3SBDvcPiLxRZJw/xZeeGgRLQZ6rLMG+8krrJUyIf6s1ecWTzlsbp0rlw7n9sjufHA==}
engines: {node: ^16.0.0 || >=18.0.0}
peerDependencies:
typescript: '*'
typescript:
optional: true
dependencies:
- '@typescript-eslint/types': 6.17.0
- '@typescript-eslint/visitor-keys': 6.17.0
+ '@typescript-eslint/types': 6.18.1
+ '@typescript-eslint/visitor-keys': 6.18.1
debug: 4.3.4
globby: 11.1.0
is-glob: 4.0.3
- typescript
dev: true
- /@typescript-eslint/utils@6.17.0(eslint@8.56.0)(typescript@5.2.2):
- resolution: {integrity: sha512-LofsSPjN/ITNkzV47hxas2JCsNCEnGhVvocfyOcLzT9c/tSZE7SfhS/iWtzP1lKNOEfLhRTZz6xqI8N2RzweSQ==}
+ /@typescript-eslint/utils@6.18.1(eslint@8.56.0)(typescript@5.2.2):
+ resolution: {integrity: sha512-zZmTuVZvD1wpoceHvoQpOiewmWu3uP9FuTWo8vqpy2ffsmfCE8mklRPi+vmnIYAIk9t/4kOThri2QCDgor+OpQ==}
engines: {node: ^16.0.0 || >=18.0.0}
peerDependencies:
eslint: ^7.0.0 || ^8.0.0
'@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0)
'@types/json-schema': 7.0.14
'@types/semver': 7.5.6
- '@typescript-eslint/scope-manager': 6.17.0
- '@typescript-eslint/types': 6.17.0
- '@typescript-eslint/typescript-estree': 6.17.0(typescript@5.2.2)
+ '@typescript-eslint/scope-manager': 6.18.1
+ '@typescript-eslint/types': 6.18.1
+ '@typescript-eslint/typescript-estree': 6.18.1(typescript@5.2.2)
eslint: 8.56.0
semver: 7.5.4
transitivePeerDependencies:
eslint-visitor-keys: 3.4.3
dev: true
- /@typescript-eslint/visitor-keys@6.17.0:
- resolution: {integrity: sha512-H6VwB/k3IuIeQOyYczyyKN8wH6ed8EwliaYHLxOIhyF0dYEIsN8+Bk3GE19qafeMKyZJJHP8+O1HiFhFLUNKSg==}
+ /@typescript-eslint/visitor-keys@6.18.1:
+ resolution: {integrity: sha512-/kvt0C5lRqGoCfsbmm7/CwMqoSkY3zzHLIjdhHZQW3VFrnz7ATecOHR7nb7V+xn4286MBxfnQfQhAmCI0u+bJA==}
engines: {node: ^16.0.0 || >=18.0.0}
dependencies:
- '@typescript-eslint/types': 6.17.0
+ '@typescript-eslint/types': 6.18.1
eslint-visitor-keys: 3.4.3
dev: true
- supports-color
dev: true
- /eslint-module-utils@2.8.0(@typescript-eslint/parser@6.17.0)(eslint-import-resolver-node@0.3.9)(eslint@8.56.0):
+ /eslint-module-utils@2.8.0(@typescript-eslint/parser@6.18.1)(eslint-import-resolver-node@0.3.9)(eslint@8.56.0):
resolution: {integrity: sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==}
engines: {node: '>=4'}
peerDependencies:
eslint-import-resolver-webpack:
optional: true
dependencies:
- '@typescript-eslint/parser': 6.17.0(eslint@8.56.0)(typescript@5.2.2)
+ '@typescript-eslint/parser': 6.18.1(eslint@8.56.0)(typescript@5.2.2)
debug: 3.2.7
eslint: 8.56.0
eslint-import-resolver-node: 0.3.9
- supports-color
dev: true
- /eslint-plugin-i@2.29.1(@typescript-eslint/parser@6.17.0)(eslint@8.56.0):
+ /eslint-plugin-i@2.29.1(@typescript-eslint/parser@6.18.1)(eslint@8.56.0):
resolution: {integrity: sha512-ORizX37MelIWLbMyqI7hi8VJMf7A0CskMmYkB+lkCX3aF4pkGV7kwx5bSEb4qx7Yce2rAf9s34HqDRPjGRZPNQ==}
engines: {node: '>=12'}
peerDependencies:
doctrine: 3.0.0
eslint: 8.56.0
eslint-import-resolver-node: 0.3.9
- eslint-module-utils: 2.8.0(@typescript-eslint/parser@6.17.0)(eslint-import-resolver-node@0.3.9)(eslint@8.56.0)
+ eslint-module-utils: 2.8.0(@typescript-eslint/parser@6.18.1)(eslint-import-resolver-node@0.3.9)(eslint@8.56.0)
get-tsconfig: 4.7.2
is-glob: 4.0.3
minimatch: 3.1.2
- supports-color
dev: true
- /eslint-plugin-jest@27.6.1(@typescript-eslint/eslint-plugin@6.17.0)(eslint@8.56.0)(typescript@5.2.2):
- resolution: {integrity: sha512-WEYkyVXD9NlmFBKvrkmzrC+C9yZoz5pAml2hO19PlS3spJtoiwj4p2u8spd/7zx5IvRsZsCmsoImaAvBB9X93Q==}
+ /eslint-plugin-jest@27.6.3(@typescript-eslint/eslint-plugin@6.18.1)(eslint@8.56.0)(typescript@5.2.2):
+ resolution: {integrity: sha512-+YsJFVH6R+tOiO3gCJon5oqn4KWc+mDq2leudk8mrp8RFubLOo9CVyi3cib4L7XMpxExmkmBZQTPDYVBzgpgOA==}
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
peerDependencies:
'@typescript-eslint/eslint-plugin': ^5.0.0 || ^6.0.0
jest:
optional: true
dependencies:
- '@typescript-eslint/eslint-plugin': 6.17.0(@typescript-eslint/parser@6.17.0)(eslint@8.56.0)(typescript@5.2.2)
+ '@typescript-eslint/eslint-plugin': 6.18.1(@typescript-eslint/parser@6.18.1)(eslint@8.56.0)(typescript@5.2.2)
'@typescript-eslint/utils': 5.62.0(eslint@8.56.0)(typescript@5.2.2)
eslint: 8.56.0
transitivePeerDependencies:
engines: {node: '>= 0.8.0'}
dev: true
- /prettier@3.1.1:
- resolution: {integrity: sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==}
+ /prettier@3.2.2:
+ resolution: {integrity: sha512-HTByuKZzw7utPiDO523Tt2pLtEyK7OibUD9suEJQrPUCYQqrHr74GGX6VidMrovbf/I50mPqr8j/II6oBAuc5A==}
engines: {node: '>=14'}
hasBin: true
dev: true