@histoire/vendors 0.8.3 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/b-floating-vue.d.ts +3 -0
- package/dist/client/{floating-vue.js → b-floating-vue.js} +13 -18
- package/dist/client/b-iconify.d.ts +1 -0
- package/dist/client/{iconify.js → b-iconify.js} +0 -0
- package/dist/client/b-pinia.d.ts +1 -0
- package/dist/client/{pinia.js → b-pinia.js} +41 -8
- package/dist/client/b-scroll.d.ts +2 -0
- package/dist/client/{scroll.js → b-scroll.js} +1 -1
- package/dist/client/b-vue-router.d.ts +1 -0
- package/dist/client/{vue-router.js → b-vue-router.js} +279 -158
- package/dist/client/b-vue-use.d.ts +1 -0
- package/dist/client/{vue-use.js → b-vue-use.js} +1070 -603
- package/dist/client/b-vue.d.ts +1 -0
- package/dist/client/{vue.js → b-vue.js} +1 -1
- package/dist/client/node_modules/@babel/parser/package.json +46 -0
- package/dist/client/node_modules/@babel/parser/typings/babel-parser.d.ts +214 -0
- package/dist/client/node_modules/@floating-ui/core/index.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/core/package.json +70 -0
- package/dist/client/node_modules/@floating-ui/core/src/_babel.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/core/src/computeCoordsFromPlacement.d.ts +4 -0
- package/dist/client/node_modules/@floating-ui/core/src/computePosition.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/detectOverflow.d.ts +9 -0
- package/dist/client/node_modules/@floating-ui/core/src/enums.d.ts +4 -0
- package/dist/client/node_modules/@floating-ui/core/src/index.d.ts +11 -0
- package/dist/client/node_modules/@floating-ui/core/src/middleware/arrow.d.ts +6 -0
- package/dist/client/node_modules/@floating-ui/core/src/middleware/autoPlacement.d.ts +9 -0
- package/dist/client/node_modules/@floating-ui/core/src/middleware/flip.d.ts +10 -0
- package/dist/client/node_modules/@floating-ui/core/src/middleware/hide.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/middleware/inline.d.ts +5 -0
- package/dist/client/node_modules/@floating-ui/core/src/middleware/offset.d.ts +21 -0
- package/dist/client/node_modules/@floating-ui/core/src/middleware/shift.d.ts +32 -0
- package/dist/client/node_modules/@floating-ui/core/src/middleware/size.d.ts +6 -0
- package/dist/client/node_modules/@floating-ui/core/src/types.d.ts +148 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/expandPaddingObject.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getAlignment.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getAlignmentSides.d.ts +5 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getBasePlacement.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getCrossAxis.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getExpandedPlacements.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getLengthFromAxis.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getMainAxisFromPlacement.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getOppositeAlignmentPlacement.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getOppositePlacement.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getPaddingObject.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/math.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/rectToClientRect.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/within.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/index.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/package.json +75 -0
- package/dist/client/node_modules/@floating-ui/dom/src/index.d.ts +7 -0
- package/dist/client/node_modules/@floating-ui/dom/src/platform.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/dom/src/types.d.ts +27 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/contains.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/convertOffsetParentRelativeRectToViewportRelativeRect.d.ts +6 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getBoundingClientRect.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getClippingClientRect.d.ts +6 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getComputedStyle.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getDimensions.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getDocumentElement.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getDocumentRect.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getNodeName.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getNodeScroll.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getOffsetParent.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getParentNode.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getRectRelativeToOffsetParent.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getScrollParent.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getScrollParents.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getViewportRect.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getWindowScrollBarX.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/is.d.ts +15 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/math.d.ts +3 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/window.d.ts +2 -0
- package/dist/client/node_modules/@iconify/vue/dist/iconify.d.ts +680 -0
- package/dist/client/node_modules/@iconify/vue/dist/offline.d.ts +347 -0
- package/dist/client/node_modules/@iconify/vue/offline/package.json +14 -0
- package/dist/client/node_modules/@iconify/vue/package.json +61 -0
- package/dist/client/node_modules/@types/web-bluetooth/index.d.ts +176 -0
- package/dist/client/node_modules/@types/web-bluetooth/package.json +40 -0
- package/dist/client/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +1198 -0
- package/dist/client/node_modules/@vue/compiler-core/package.json +43 -0
- package/dist/client/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts +66 -0
- package/dist/client/node_modules/@vue/compiler-dom/package.json +43 -0
- package/dist/client/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +321 -0
- package/dist/client/node_modules/@vue/compiler-sfc/package.json +59 -0
- package/dist/client/node_modules/@vue/compiler-ssr/dist/compiler-ssr.d.ts +6 -0
- package/dist/client/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/api.d.ts +108 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/app.d.ts +1 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/component.d.ts +77 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/context.d.ts +5 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/hooks.d.ts +179 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/index.d.ts +6 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/util.d.ts +4 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/const.d.ts +2 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/env.d.ts +15 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/index.d.ts +18 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/plugin.d.ts +47 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/proxy.d.ts +20 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/time.d.ts +2 -0
- package/dist/client/node_modules/@vue/devtools-api/package.json +37 -0
- package/dist/client/node_modules/@vue/reactivity/dist/reactivity.d.ts +347 -0
- package/dist/client/node_modules/@vue/reactivity/package.json +41 -0
- package/dist/client/node_modules/@vue/reactivity-transform/dist/reactivity-transform.d.ts +33 -0
- package/dist/client/node_modules/@vue/reactivity-transform/package.json +41 -0
- package/dist/client/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +2018 -0
- package/dist/client/node_modules/@vue/runtime-core/package.json +38 -0
- package/dist/client/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +1522 -0
- package/dist/client/node_modules/@vue/runtime-dom/package.json +42 -0
- package/dist/client/node_modules/@vue/server-renderer/dist/server-renderer.d.ts +100 -0
- package/dist/client/node_modules/@vue/server-renderer/package.json +41 -0
- package/dist/client/node_modules/@vue/shared/dist/shared.d.ts +356 -0
- package/dist/client/node_modules/@vue/shared/package.json +33 -0
- package/dist/client/node_modules/@vueuse/core/index.d.ts +4305 -0
- package/dist/client/node_modules/@vueuse/core/metadata.d.ts +1 -0
- package/dist/client/node_modules/@vueuse/core/node_modules/@vueuse/shared/index.d.ts +874 -0
- package/dist/client/node_modules/@vueuse/core/node_modules/@vueuse/shared/package.json +50 -0
- package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/lib/index.d.ts +22 -0
- package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/lib/v2/index.d.ts +31 -0
- package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/lib/v2.7/index.d.ts +52 -0
- package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/lib/v3/index.d.ts +22 -0
- package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/package.json +47 -0
- package/dist/client/node_modules/@vueuse/core/package.json +59 -0
- package/dist/client/node_modules/@vueuse/metadata/index.d.ts +75 -0
- package/dist/client/node_modules/@vueuse/metadata/package.json +39 -0
- package/dist/client/node_modules/compute-scroll-into-view/package.json +90 -0
- package/dist/client/node_modules/compute-scroll-into-view/typings/index.d.ts +19 -0
- package/dist/client/node_modules/csstype/index.d.ts +38372 -0
- package/dist/client/node_modules/csstype/package.json +57 -0
- package/dist/client/node_modules/estree-walker/dist/esm/package.json +1 -0
- package/dist/client/node_modules/estree-walker/package.json +37 -0
- package/dist/client/node_modules/estree-walker/src/package.json +1 -0
- package/dist/client/node_modules/estree-walker/types/async.d.ts +53 -0
- package/dist/client/node_modules/estree-walker/types/index.d.ts +56 -0
- package/dist/client/node_modules/estree-walker/types/sync.d.ts +53 -0
- package/dist/client/node_modules/estree-walker/types/walker.d.ts +37 -0
- package/dist/client/node_modules/floating-vue/dist/components/Dropdown.vue.d.ts +25 -0
- package/dist/client/node_modules/floating-vue/dist/components/Menu.vue.d.ts +25 -0
- package/dist/client/node_modules/floating-vue/dist/components/Popper.d.ts +375 -0
- package/dist/client/node_modules/floating-vue/dist/components/Popper.vue.d.ts +367 -0
- package/dist/client/node_modules/floating-vue/dist/components/PopperContent.vue.d.ts +48 -0
- package/dist/client/node_modules/floating-vue/dist/components/PopperMethods.d.ts +9 -0
- package/dist/client/node_modules/floating-vue/dist/components/PopperWrapper.vue.d.ts +28 -0
- package/dist/client/node_modules/floating-vue/dist/components/ThemeClass.d.ts +6 -0
- package/dist/client/node_modules/floating-vue/dist/components/Tooltip.vue.d.ts +25 -0
- package/dist/client/node_modules/floating-vue/dist/components/TooltipDirective.vue.d.ts +28 -0
- package/dist/client/node_modules/floating-vue/dist/config.d.ts +11 -0
- package/dist/client/node_modules/floating-vue/dist/directives/v-close-popper.d.ts +13 -0
- package/dist/client/node_modules/floating-vue/dist/directives/v-tooltip.d.ts +27 -0
- package/dist/client/node_modules/floating-vue/dist/directives/v-tooltip.spec.d.ts +1 -0
- package/dist/client/node_modules/floating-vue/dist/index.d.ts +415 -0
- package/dist/client/node_modules/floating-vue/dist/util/assign-deep.d.ts +1 -0
- package/dist/client/node_modules/floating-vue/dist/util/env.d.ts +2 -0
- package/dist/client/node_modules/floating-vue/dist/util/events.d.ts +12 -0
- package/dist/client/node_modules/floating-vue/dist/util/frame.d.ts +1 -0
- package/dist/client/node_modules/floating-vue/dist/util/lang.d.ts +1 -0
- package/dist/client/node_modules/floating-vue/dist/util/popper.d.ts +3 -0
- package/dist/client/node_modules/floating-vue/package.json +71 -0
- package/dist/client/node_modules/floating-vue/src/global-shim.d.ts +1 -0
- package/dist/client/node_modules/floating-vue/src/vue-shim.d.ts +5 -0
- package/dist/client/node_modules/magic-string/index.d.ts +221 -0
- package/dist/client/node_modules/magic-string/package.json +52 -0
- package/dist/client/node_modules/nanoid/async/index.d.ts +56 -0
- package/dist/client/node_modules/nanoid/async/package.json +12 -0
- package/dist/client/node_modules/nanoid/index.d.ts +91 -0
- package/dist/client/node_modules/nanoid/non-secure/index.d.ts +33 -0
- package/dist/client/node_modules/nanoid/non-secure/package.json +6 -0
- package/dist/client/node_modules/nanoid/package.json +60 -0
- package/dist/client/node_modules/nanoid/url-alphabet/package.json +6 -0
- package/dist/client/node_modules/picocolors/package.json +25 -0
- package/dist/client/node_modules/picocolors/picocolors.d.ts +5 -0
- package/dist/client/node_modules/pinia/dist/pinia.d.ts +963 -0
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/index.d.ts +22 -0
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2/index.d.ts +31 -0
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2.7/index.d.ts +52 -0
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v3/index.d.ts +22 -0
- package/dist/client/node_modules/pinia/node_modules/vue-demi/package.json +47 -0
- package/dist/client/node_modules/pinia/package.json +101 -0
- package/dist/client/node_modules/postcss/lib/at-rule.d.ts +106 -0
- package/dist/client/node_modules/postcss/lib/comment.d.ts +56 -0
- package/dist/client/node_modules/postcss/lib/container.d.ts +442 -0
- package/dist/client/node_modules/postcss/lib/css-syntax-error.d.ts +239 -0
- package/dist/client/node_modules/postcss/lib/declaration.d.ts +124 -0
- package/dist/client/node_modules/postcss/lib/document.d.ts +57 -0
- package/dist/client/node_modules/postcss/lib/fromJSON.d.ts +5 -0
- package/dist/client/node_modules/postcss/lib/input.d.ts +150 -0
- package/dist/client/node_modules/postcss/lib/lazy-result.d.ts +176 -0
- package/dist/client/node_modules/postcss/lib/list.d.ts +51 -0
- package/dist/client/node_modules/postcss/lib/no-work-result.d.ts +37 -0
- package/dist/client/node_modules/postcss/lib/node.d.ts +478 -0
- package/dist/client/node_modules/postcss/lib/parse.d.ts +5 -0
- package/dist/client/node_modules/postcss/lib/postcss.d.ts +473 -0
- package/dist/client/node_modules/postcss/lib/previous-map.d.ts +72 -0
- package/dist/client/node_modules/postcss/lib/processor.d.ts +102 -0
- package/dist/client/node_modules/postcss/lib/result.d.ts +196 -0
- package/dist/client/node_modules/postcss/lib/root.d.ts +73 -0
- package/dist/client/node_modules/postcss/lib/rule.d.ts +104 -0
- package/dist/client/node_modules/postcss/lib/stringifier.d.ts +37 -0
- package/dist/client/node_modules/postcss/lib/stringify.d.ts +5 -0
- package/dist/client/node_modules/postcss/lib/warning.d.ts +138 -0
- package/dist/client/node_modules/postcss/package.json +85 -0
- package/dist/client/node_modules/scroll-into-view-if-needed/package.json +144 -0
- package/dist/client/node_modules/scroll-into-view-if-needed/typings/index.d.ts +13 -0
- package/dist/client/node_modules/scroll-into-view-if-needed/typings/types.d.ts +19 -0
- package/dist/client/node_modules/source-map/package.json +73 -0
- package/dist/client/node_modules/source-map/source-map.d.ts +98 -0
- package/dist/client/node_modules/source-map-js/package.json +71 -0
- package/dist/client/node_modules/source-map-js/source-map.d.ts +115 -0
- package/dist/client/node_modules/sourcemap-codec/dist/types/sourcemap-codec.d.ts +5 -0
- package/dist/client/node_modules/sourcemap-codec/package.json +53 -0
- package/dist/client/node_modules/vue/compiler-sfc/index.d.ts +1 -0
- package/dist/client/node_modules/vue/compiler-sfc/package.json +5 -0
- package/dist/client/node_modules/vue/dist/vue.d.ts +9 -0
- package/dist/client/node_modules/vue/macros-global.d.ts +19 -0
- package/dist/client/node_modules/vue/macros.d.ts +110 -0
- package/dist/client/node_modules/vue/package.json +75 -0
- package/dist/client/node_modules/vue/ref-macros.d.ts +2 -0
- package/dist/client/node_modules/vue/server-renderer/index.d.ts +1 -0
- package/dist/client/node_modules/vue/server-renderer/package.json +5 -0
- package/dist/client/node_modules/vue-resize/package.json +77 -0
- package/dist/client/node_modules/vue-router/dist/vue-router.d.ts +1491 -0
- package/dist/client/node_modules/vue-router/package.json +114 -0
- package/dist/client/vue.runtime.esm-bundler.js +24 -19
- package/entries.js +7 -7
- package/floating-vue.d.ts +3 -0
- package/iconify.d.ts +3 -0
- package/package.json +14 -5
- package/pinia.d.ts +3 -0
- package/rollup.config.mjs +117 -0
- package/scroll.d.ts +3 -0
- package/src/client/b-floating-vue.ts +3 -0
- package/src/client/b-iconify.ts +1 -0
- package/src/client/b-pinia.ts +1 -0
- package/src/client/b-scroll.ts +2 -0
- package/src/client/b-vue-router.ts +1 -0
- package/src/client/b-vue-use.ts +1 -0
- package/src/client/b-vue.ts +1 -0
- package/vue-router.d.ts +3 -0
- package/vue-use.d.ts +3 -0
- package/vue.d.ts +3 -0
- package/dist/client/floating-vue.d.ts +0 -2
- package/dist/client/iconify.d.ts +0 -1
- package/dist/client/pinia.d.ts +0 -1
- package/dist/client/scroll.d.ts +0 -1
- package/dist/client/vue-router.d.ts +0 -1
- package/dist/client/vue-use.d.ts +0 -1
- package/dist/client/vue.d.ts +0 -1
- package/rollup.config.js +0 -37
- package/src/client/floating-vue.ts +0 -2
- package/src/client/iconify.ts +0 -1
- package/src/client/pinia.ts +0 -1
- package/src/client/scroll.ts +0 -1
- package/src/client/vue-router.ts +0 -1
- package/src/client/vue-use.ts +0 -1
- package/src/client/vue.ts +0 -1
|
@@ -0,0 +1,2018 @@
|
|
|
1
|
+
import { camelize } from '@vue/shared';
|
|
2
|
+
import { capitalize } from '@vue/shared';
|
|
3
|
+
import { ComponentPropsOptions as ComponentPropsOptions_2 } from '@vue/runtime-core';
|
|
4
|
+
import { computed as computed_2 } from '@vue/reactivity';
|
|
5
|
+
import { ComputedGetter } from '@vue/reactivity';
|
|
6
|
+
import { ComputedRef } from '@vue/reactivity';
|
|
7
|
+
import { ComputedSetter } from '@vue/reactivity';
|
|
8
|
+
import { customRef } from '@vue/reactivity';
|
|
9
|
+
import { CustomRefFactory } from '@vue/reactivity';
|
|
10
|
+
import { DebuggerEvent } from '@vue/reactivity';
|
|
11
|
+
import { DebuggerEventExtraInfo } from '@vue/reactivity';
|
|
12
|
+
import { DebuggerOptions } from '@vue/reactivity';
|
|
13
|
+
import { DeepReadonly } from '@vue/reactivity';
|
|
14
|
+
import { effect } from '@vue/reactivity';
|
|
15
|
+
import { EffectScheduler } from '@vue/reactivity';
|
|
16
|
+
import { EffectScope } from '@vue/reactivity';
|
|
17
|
+
import { effectScope } from '@vue/reactivity';
|
|
18
|
+
import { getCurrentScope } from '@vue/reactivity';
|
|
19
|
+
import { IfAny } from '@vue/shared';
|
|
20
|
+
import { isProxy } from '@vue/reactivity';
|
|
21
|
+
import { isReactive } from '@vue/reactivity';
|
|
22
|
+
import { isReadonly } from '@vue/reactivity';
|
|
23
|
+
import { isRef } from '@vue/reactivity';
|
|
24
|
+
import { isShallow } from '@vue/reactivity';
|
|
25
|
+
import { LooseRequired } from '@vue/shared';
|
|
26
|
+
import { markRaw } from '@vue/reactivity';
|
|
27
|
+
import { normalizeClass } from '@vue/shared';
|
|
28
|
+
import { normalizeProps } from '@vue/shared';
|
|
29
|
+
import { normalizeStyle } from '@vue/shared';
|
|
30
|
+
import { onScopeDispose } from '@vue/reactivity';
|
|
31
|
+
import { proxyRefs } from '@vue/reactivity';
|
|
32
|
+
import { reactive } from '@vue/reactivity';
|
|
33
|
+
import { ReactiveEffect } from '@vue/reactivity';
|
|
34
|
+
import { ReactiveEffectOptions } from '@vue/reactivity';
|
|
35
|
+
import { ReactiveEffectRunner } from '@vue/reactivity';
|
|
36
|
+
import { ReactiveFlags } from '@vue/reactivity';
|
|
37
|
+
import { readonly } from '@vue/reactivity';
|
|
38
|
+
import { Ref } from '@vue/reactivity';
|
|
39
|
+
import { ref } from '@vue/reactivity';
|
|
40
|
+
import { ShallowReactive } from '@vue/reactivity';
|
|
41
|
+
import { shallowReactive } from '@vue/reactivity';
|
|
42
|
+
import { shallowReadonly } from '@vue/reactivity';
|
|
43
|
+
import { ShallowRef } from '@vue/reactivity';
|
|
44
|
+
import { shallowRef } from '@vue/reactivity';
|
|
45
|
+
import { ShallowUnwrapRef } from '@vue/reactivity';
|
|
46
|
+
import { ShapeFlags } from '@vue/shared';
|
|
47
|
+
import { SlotFlags } from '@vue/shared';
|
|
48
|
+
import { stop as stop_2 } from '@vue/reactivity';
|
|
49
|
+
import { toDisplayString } from '@vue/shared';
|
|
50
|
+
import { toHandlerKey } from '@vue/shared';
|
|
51
|
+
import { toRaw } from '@vue/reactivity';
|
|
52
|
+
import { ToRef } from '@vue/reactivity';
|
|
53
|
+
import { toRef } from '@vue/reactivity';
|
|
54
|
+
import { ToRefs } from '@vue/reactivity';
|
|
55
|
+
import { toRefs } from '@vue/reactivity';
|
|
56
|
+
import { TrackOpTypes } from '@vue/reactivity';
|
|
57
|
+
import { TriggerOpTypes } from '@vue/reactivity';
|
|
58
|
+
import { triggerRef } from '@vue/reactivity';
|
|
59
|
+
import { UnionToIntersection } from '@vue/shared';
|
|
60
|
+
import { unref } from '@vue/reactivity';
|
|
61
|
+
import { UnwrapNestedRefs } from '@vue/reactivity';
|
|
62
|
+
import { UnwrapRef } from '@vue/reactivity';
|
|
63
|
+
import { WritableComputedOptions } from '@vue/reactivity';
|
|
64
|
+
import { WritableComputedRef } from '@vue/reactivity';
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Default allowed non-declared props on component in TSX
|
|
68
|
+
*/
|
|
69
|
+
export declare interface AllowedComponentProps {
|
|
70
|
+
class?: unknown;
|
|
71
|
+
style?: unknown;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export declare interface App<HostElement = any> {
|
|
75
|
+
version: string;
|
|
76
|
+
config: AppConfig;
|
|
77
|
+
use(plugin: Plugin_2, ...options: any[]): this;
|
|
78
|
+
mixin(mixin: ComponentOptions): this;
|
|
79
|
+
component(name: string): Component | undefined;
|
|
80
|
+
component(name: string, component: Component): this;
|
|
81
|
+
directive(name: string): Directive | undefined;
|
|
82
|
+
directive(name: string, directive: Directive): this;
|
|
83
|
+
mount(rootContainer: HostElement | string, isHydrate?: boolean, isSVG?: boolean): ComponentPublicInstance;
|
|
84
|
+
unmount(): void;
|
|
85
|
+
provide<T>(key: InjectionKey<T> | string, value: T): this;
|
|
86
|
+
_uid: number;
|
|
87
|
+
_component: ConcreteComponent;
|
|
88
|
+
_props: Data | null;
|
|
89
|
+
_container: HostElement | null;
|
|
90
|
+
_context: AppContext;
|
|
91
|
+
_instance: ComponentInternalInstance | null;
|
|
92
|
+
/**
|
|
93
|
+
* v2 compat only
|
|
94
|
+
*/
|
|
95
|
+
filter?(name: string): Function | undefined;
|
|
96
|
+
filter?(name: string, filter: Function): this;
|
|
97
|
+
/* Excluded from this release type: _createRoot */
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export declare interface AppConfig {
|
|
101
|
+
readonly isNativeTag?: (tag: string) => boolean;
|
|
102
|
+
performance: boolean;
|
|
103
|
+
optionMergeStrategies: Record<string, OptionMergeFunction>;
|
|
104
|
+
globalProperties: Record<string, any>;
|
|
105
|
+
errorHandler?: (err: unknown, instance: ComponentPublicInstance | null, info: string) => void;
|
|
106
|
+
warnHandler?: (msg: string, instance: ComponentPublicInstance | null, trace: string) => void;
|
|
107
|
+
/**
|
|
108
|
+
* Options to pass to `@vue/compiler-dom`.
|
|
109
|
+
* Only supported in runtime compiler build.
|
|
110
|
+
*/
|
|
111
|
+
compilerOptions: RuntimeCompilerOptions;
|
|
112
|
+
/**
|
|
113
|
+
* @deprecated use config.compilerOptions.isCustomElement
|
|
114
|
+
*/
|
|
115
|
+
isCustomElement?: (tag: string) => boolean;
|
|
116
|
+
/**
|
|
117
|
+
* Temporary config for opt-in to unwrap injected refs.
|
|
118
|
+
* TODO deprecate in 3.3
|
|
119
|
+
*/
|
|
120
|
+
unwrapInjectedRef?: boolean;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export declare interface AppContext {
|
|
124
|
+
app: App;
|
|
125
|
+
config: AppConfig;
|
|
126
|
+
mixins: ComponentOptions[];
|
|
127
|
+
components: Record<string, Component>;
|
|
128
|
+
directives: Record<string, Directive>;
|
|
129
|
+
provides: Record<string | symbol, any>;
|
|
130
|
+
/* Excluded from this release type: optionsCache */
|
|
131
|
+
/* Excluded from this release type: propsCache */
|
|
132
|
+
/* Excluded from this release type: emitsCache */
|
|
133
|
+
/* Excluded from this release type: reload */
|
|
134
|
+
/* Excluded from this release type: filters */
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
declare interface AppRecord {
|
|
138
|
+
id: number;
|
|
139
|
+
app: App;
|
|
140
|
+
version: string;
|
|
141
|
+
types: Record<string, string | Symbol>;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export declare type AsyncComponentLoader<T = any> = () => Promise<AsyncComponentResolveResult<T>>;
|
|
145
|
+
|
|
146
|
+
export declare interface AsyncComponentOptions<T = any> {
|
|
147
|
+
loader: AsyncComponentLoader<T>;
|
|
148
|
+
loadingComponent?: Component;
|
|
149
|
+
errorComponent?: Component;
|
|
150
|
+
delay?: number;
|
|
151
|
+
timeout?: number;
|
|
152
|
+
suspensible?: boolean;
|
|
153
|
+
onError?: (error: Error, retry: () => void, fail: () => void, attempts: number) => any;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
declare type AsyncComponentResolveResult<T = Component> = T | {
|
|
157
|
+
default: T;
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
export declare const BaseTransition: new () => {
|
|
161
|
+
$props: BaseTransitionProps<any>;
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
export declare interface BaseTransitionProps<HostElement = RendererElement> {
|
|
165
|
+
mode?: 'in-out' | 'out-in' | 'default';
|
|
166
|
+
appear?: boolean;
|
|
167
|
+
persisted?: boolean;
|
|
168
|
+
onBeforeEnter?: Hook<(el: HostElement) => void>;
|
|
169
|
+
onEnter?: Hook<(el: HostElement, done: () => void) => void>;
|
|
170
|
+
onAfterEnter?: Hook<(el: HostElement) => void>;
|
|
171
|
+
onEnterCancelled?: Hook<(el: HostElement) => void>;
|
|
172
|
+
onBeforeLeave?: Hook<(el: HostElement) => void>;
|
|
173
|
+
onLeave?: Hook<(el: HostElement, done: () => void) => void>;
|
|
174
|
+
onAfterLeave?: Hook<(el: HostElement) => void>;
|
|
175
|
+
onLeaveCancelled?: Hook<(el: HostElement) => void>;
|
|
176
|
+
onBeforeAppear?: Hook<(el: HostElement) => void>;
|
|
177
|
+
onAppear?: Hook<(el: HostElement, done: () => void) => void>;
|
|
178
|
+
onAfterAppear?: Hook<(el: HostElement) => void>;
|
|
179
|
+
onAppearCancelled?: Hook<(el: HostElement) => void>;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
declare const enum BooleanFlags {
|
|
183
|
+
shouldCast = 0,
|
|
184
|
+
shouldCastTrue = 1
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export declare function callWithAsyncErrorHandling(fn: Function | Function[], instance: ComponentInternalInstance | null, type: ErrorTypes, args?: unknown[]): any[];
|
|
188
|
+
|
|
189
|
+
export declare function callWithErrorHandling(fn: Function, instance: ComponentInternalInstance | null, type: ErrorTypes, args?: unknown[]): any;
|
|
190
|
+
|
|
191
|
+
export { camelize }
|
|
192
|
+
|
|
193
|
+
export { capitalize }
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Use this for features with the same syntax but with mutually exclusive
|
|
197
|
+
* behavior in 2 vs 3. Only warn if compat is enabled.
|
|
198
|
+
* e.g. render function
|
|
199
|
+
*/
|
|
200
|
+
declare function checkCompatEnabled(key: DeprecationTypes, instance: ComponentInternalInstance | null, ...args: any[]): boolean;
|
|
201
|
+
|
|
202
|
+
declare interface ClassComponent {
|
|
203
|
+
new (...args: any[]): ComponentPublicInstance<any, any, any, any, any>;
|
|
204
|
+
__vccOpts: ComponentOptions;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export declare function cloneVNode<T, U>(vnode: VNode<T, U>, extraProps?: (Data & VNodeProps) | null, mergeRef?: boolean): VNode<T, U>;
|
|
208
|
+
|
|
209
|
+
declare const Comment_2: unique symbol;
|
|
210
|
+
export { Comment_2 as Comment }
|
|
211
|
+
|
|
212
|
+
declare type CompatConfig = Partial<Record<DeprecationTypes, boolean | 'suppress-warning'>> & {
|
|
213
|
+
MODE?: 2 | 3 | ((comp: Component | null) => 2 | 3);
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
/* Excluded from this release type: compatUtils */
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* @deprecated the default `Vue` export has been removed in Vue 3. The type for
|
|
220
|
+
* the default export is provided only for migration purposes. Please use
|
|
221
|
+
* named imports instead - e.g. `import { createApp } from 'vue'`.
|
|
222
|
+
*/
|
|
223
|
+
export declare type CompatVue = Pick<App, 'version' | 'component' | 'directive'> & {
|
|
224
|
+
configureCompat: typeof configureCompat;
|
|
225
|
+
new (options?: ComponentOptions): LegacyPublicInstance;
|
|
226
|
+
version: string;
|
|
227
|
+
config: AppConfig & LegacyConfig;
|
|
228
|
+
nextTick: typeof nextTick;
|
|
229
|
+
use(plugin: Plugin_2, ...options: any[]): CompatVue;
|
|
230
|
+
mixin(mixin: ComponentOptions): CompatVue;
|
|
231
|
+
component(name: string): Component | undefined;
|
|
232
|
+
component(name: string, component: Component): CompatVue;
|
|
233
|
+
directive(name: string): Directive | undefined;
|
|
234
|
+
directive(name: string, directive: Directive): CompatVue;
|
|
235
|
+
compile(template: string): RenderFunction;
|
|
236
|
+
/**
|
|
237
|
+
* @deprecated Vue 3 no longer supports extending constructors.
|
|
238
|
+
*/
|
|
239
|
+
extend: (options?: ComponentOptions) => CompatVue;
|
|
240
|
+
/**
|
|
241
|
+
* @deprecated Vue 3 no longer needs set() for adding new properties.
|
|
242
|
+
*/
|
|
243
|
+
set(target: any, key: string | number | symbol, value: any): void;
|
|
244
|
+
/**
|
|
245
|
+
* @deprecated Vue 3 no longer needs delete() for property deletions.
|
|
246
|
+
*/
|
|
247
|
+
delete(target: any, key: string | number | symbol): void;
|
|
248
|
+
/**
|
|
249
|
+
* @deprecated use `reactive` instead.
|
|
250
|
+
*/
|
|
251
|
+
observable: typeof reactive;
|
|
252
|
+
/**
|
|
253
|
+
* @deprecated filters have been removed from Vue 3.
|
|
254
|
+
*/
|
|
255
|
+
filter(name: string, arg?: any): null;
|
|
256
|
+
/* Excluded from this release type: cid */
|
|
257
|
+
/* Excluded from this release type: options */
|
|
258
|
+
/* Excluded from this release type: util */
|
|
259
|
+
/* Excluded from this release type: super */
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
declare interface CompiledSlotDescriptor {
|
|
263
|
+
name: string;
|
|
264
|
+
fn: Slot;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* A type used in public APIs where a component type is expected.
|
|
269
|
+
* The constructor type is an artificial type returned by defineComponent().
|
|
270
|
+
*/
|
|
271
|
+
export declare type Component<Props = any, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions> = ConcreteComponent<Props, RawBindings, D, C, M> | ComponentPublicInstanceConstructor<Props>;
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Interface for declaring custom options.
|
|
275
|
+
*
|
|
276
|
+
* @example
|
|
277
|
+
* ```ts
|
|
278
|
+
* declare module '@vue/runtime-core' {
|
|
279
|
+
* interface ComponentCustomOptions {
|
|
280
|
+
* beforeRouteUpdate?(
|
|
281
|
+
* to: Route,
|
|
282
|
+
* from: Route,
|
|
283
|
+
* next: () => void
|
|
284
|
+
* ): void
|
|
285
|
+
* }
|
|
286
|
+
* }
|
|
287
|
+
* ```
|
|
288
|
+
*/
|
|
289
|
+
export declare interface ComponentCustomOptions {
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Custom properties added to component instances in any way and can be accessed through `this`
|
|
294
|
+
*
|
|
295
|
+
* @example
|
|
296
|
+
* Here is an example of adding a property `$router` to every component instance:
|
|
297
|
+
* ```ts
|
|
298
|
+
* import { createApp } from 'vue'
|
|
299
|
+
* import { Router, createRouter } from 'vue-router'
|
|
300
|
+
*
|
|
301
|
+
* declare module '@vue/runtime-core' {
|
|
302
|
+
* interface ComponentCustomProperties {
|
|
303
|
+
* $router: Router
|
|
304
|
+
* }
|
|
305
|
+
* }
|
|
306
|
+
*
|
|
307
|
+
* // effectively adding the router to every component instance
|
|
308
|
+
* const app = createApp({})
|
|
309
|
+
* const router = createRouter()
|
|
310
|
+
* app.config.globalProperties.$router = router
|
|
311
|
+
*
|
|
312
|
+
* const vm = app.mount('#app')
|
|
313
|
+
* // we can access the router from the instance
|
|
314
|
+
* vm.$router.push('/')
|
|
315
|
+
* ```
|
|
316
|
+
*/
|
|
317
|
+
export declare interface ComponentCustomProperties {
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* For extending allowed non-declared props on components in TSX
|
|
322
|
+
*/
|
|
323
|
+
export declare interface ComponentCustomProps {
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
declare type ComponentInjectOptions = string[] | ObjectInjectOptions;
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* We expose a subset of properties on the internal instance as they are
|
|
330
|
+
* useful for advanced external libraries and tools.
|
|
331
|
+
*/
|
|
332
|
+
export declare interface ComponentInternalInstance {
|
|
333
|
+
uid: number;
|
|
334
|
+
type: ConcreteComponent;
|
|
335
|
+
parent: ComponentInternalInstance | null;
|
|
336
|
+
root: ComponentInternalInstance;
|
|
337
|
+
appContext: AppContext;
|
|
338
|
+
/**
|
|
339
|
+
* Vnode representing this component in its parent's vdom tree
|
|
340
|
+
*/
|
|
341
|
+
vnode: VNode;
|
|
342
|
+
/* Excluded from this release type: next */
|
|
343
|
+
/**
|
|
344
|
+
* Root vnode of this component's own vdom tree
|
|
345
|
+
*/
|
|
346
|
+
subTree: VNode;
|
|
347
|
+
/**
|
|
348
|
+
* Render effect instance
|
|
349
|
+
*/
|
|
350
|
+
effect: ReactiveEffect;
|
|
351
|
+
/**
|
|
352
|
+
* Bound effect runner to be passed to schedulers
|
|
353
|
+
*/
|
|
354
|
+
update: SchedulerJob;
|
|
355
|
+
/* Excluded from this release type: render */
|
|
356
|
+
/* Excluded from this release type: ssrRender */
|
|
357
|
+
/* Excluded from this release type: provides */
|
|
358
|
+
/* Excluded from this release type: scope */
|
|
359
|
+
/* Excluded from this release type: accessCache */
|
|
360
|
+
/* Excluded from this release type: renderCache */
|
|
361
|
+
/* Excluded from this release type: components */
|
|
362
|
+
/* Excluded from this release type: directives */
|
|
363
|
+
/* Excluded from this release type: filters */
|
|
364
|
+
/* Excluded from this release type: propsOptions */
|
|
365
|
+
/* Excluded from this release type: emitsOptions */
|
|
366
|
+
/* Excluded from this release type: inheritAttrs */
|
|
367
|
+
/**
|
|
368
|
+
* is custom element?
|
|
369
|
+
*/
|
|
370
|
+
isCE?: boolean;
|
|
371
|
+
/**
|
|
372
|
+
* custom element specific HMR method
|
|
373
|
+
*/
|
|
374
|
+
ceReload?: (newStyles?: string[]) => void;
|
|
375
|
+
proxy: ComponentPublicInstance | null;
|
|
376
|
+
exposed: Record<string, any> | null;
|
|
377
|
+
exposeProxy: Record<string, any> | null;
|
|
378
|
+
/* Excluded from this release type: withProxy */
|
|
379
|
+
/* Excluded from this release type: ctx */
|
|
380
|
+
data: Data;
|
|
381
|
+
props: Data;
|
|
382
|
+
attrs: Data;
|
|
383
|
+
slots: InternalSlots;
|
|
384
|
+
refs: Data;
|
|
385
|
+
emit: EmitFn;
|
|
386
|
+
/* Excluded from this release type: emitted */
|
|
387
|
+
/* Excluded from this release type: propsDefaults */
|
|
388
|
+
/* Excluded from this release type: setupState */
|
|
389
|
+
/* Excluded from this release type: devtoolsRawSetupState */
|
|
390
|
+
/* Excluded from this release type: setupContext */
|
|
391
|
+
/* Excluded from this release type: suspense */
|
|
392
|
+
/* Excluded from this release type: suspenseId */
|
|
393
|
+
/* Excluded from this release type: asyncDep */
|
|
394
|
+
/* Excluded from this release type: asyncResolved */
|
|
395
|
+
isMounted: boolean;
|
|
396
|
+
isUnmounted: boolean;
|
|
397
|
+
isDeactivated: boolean;
|
|
398
|
+
/* Excluded from this release type: bc */
|
|
399
|
+
/* Excluded from this release type: c */
|
|
400
|
+
/* Excluded from this release type: bm */
|
|
401
|
+
/* Excluded from this release type: m */
|
|
402
|
+
/* Excluded from this release type: bu */
|
|
403
|
+
/* Excluded from this release type: u */
|
|
404
|
+
/* Excluded from this release type: bum */
|
|
405
|
+
/* Excluded from this release type: um */
|
|
406
|
+
/* Excluded from this release type: rtc */
|
|
407
|
+
/* Excluded from this release type: rtg */
|
|
408
|
+
/* Excluded from this release type: a */
|
|
409
|
+
/* Excluded from this release type: da */
|
|
410
|
+
/* Excluded from this release type: ec */
|
|
411
|
+
/* Excluded from this release type: sp */
|
|
412
|
+
/**
|
|
413
|
+
* For caching bound $forceUpdate on public proxy access
|
|
414
|
+
*/
|
|
415
|
+
f?: () => void;
|
|
416
|
+
/**
|
|
417
|
+
* For caching bound $nextTick on public proxy access
|
|
418
|
+
*/
|
|
419
|
+
n?: () => Promise<void>;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
declare interface ComponentInternalOptions {
|
|
423
|
+
/* Excluded from this release type: __scopeId */
|
|
424
|
+
/* Excluded from this release type: __cssModules */
|
|
425
|
+
/* Excluded from this release type: __hmrId */
|
|
426
|
+
/**
|
|
427
|
+
* Compat build only, for bailing out of certain compatibility behavior
|
|
428
|
+
*/
|
|
429
|
+
__isBuiltIn?: boolean;
|
|
430
|
+
/**
|
|
431
|
+
* This one should be exposed so that devtools can make use of it
|
|
432
|
+
*/
|
|
433
|
+
__file?: string;
|
|
434
|
+
/**
|
|
435
|
+
* name inferred from filename
|
|
436
|
+
*/
|
|
437
|
+
__name?: string;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
export declare type ComponentObjectPropsOptions<P = Data> = {
|
|
441
|
+
[K in keyof P]: Prop<P[K]> | null;
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
export declare type ComponentOptions<Props = {}, RawBindings = any, D = any, C extends ComputedOptions = any, M extends MethodOptions = any, Mixin extends ComponentOptionsMixin = any, Extends extends ComponentOptionsMixin = any, E extends EmitsOptions = any> = ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E> & ThisType<CreateComponentPublicInstance<{}, RawBindings, D, C, M, Mixin, Extends, E, Readonly<Props>>>;
|
|
445
|
+
|
|
446
|
+
export declare interface ComponentOptionsBase<Props, RawBindings, D, C extends ComputedOptions, M extends MethodOptions, Mixin extends ComponentOptionsMixin, Extends extends ComponentOptionsMixin, E extends EmitsOptions, EE extends string = string, Defaults = {}> extends LegacyOptions<Props, D, C, M, Mixin, Extends>, ComponentInternalOptions, ComponentCustomOptions {
|
|
447
|
+
setup?: (this: void, props: Readonly<LooseRequired<Props & UnionToIntersection<ExtractOptionProp<Mixin>> & UnionToIntersection<ExtractOptionProp<Extends>>>>, ctx: SetupContext<E>) => Promise<RawBindings> | RawBindings | RenderFunction | void;
|
|
448
|
+
name?: string;
|
|
449
|
+
template?: string | object;
|
|
450
|
+
render?: Function;
|
|
451
|
+
components?: Record<string, Component>;
|
|
452
|
+
directives?: Record<string, Directive>;
|
|
453
|
+
inheritAttrs?: boolean;
|
|
454
|
+
emits?: (E | EE[]) & ThisType<void>;
|
|
455
|
+
expose?: string[];
|
|
456
|
+
serverPrefetch?(): Promise<any>;
|
|
457
|
+
compilerOptions?: RuntimeCompilerOptions;
|
|
458
|
+
/* Excluded from this release type: ssrRender */
|
|
459
|
+
/* Excluded from this release type: __ssrInlineRender */
|
|
460
|
+
/* Excluded from this release type: __asyncLoader */
|
|
461
|
+
/* Excluded from this release type: __asyncResolved */
|
|
462
|
+
call?: (this: unknown, ...args: unknown[]) => never;
|
|
463
|
+
__isFragment?: never;
|
|
464
|
+
__isTeleport?: never;
|
|
465
|
+
__isSuspense?: never;
|
|
466
|
+
__defaults?: Defaults;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
export declare type ComponentOptionsMixin = ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>;
|
|
470
|
+
|
|
471
|
+
export declare type ComponentOptionsWithArrayProps<PropNames extends string = string, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = EmitsOptions, EE extends string = string, Props = Readonly<{
|
|
472
|
+
[key in PropNames]?: any;
|
|
473
|
+
}> & EmitsToProps<E>> = ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, {}> & {
|
|
474
|
+
props: PropNames[];
|
|
475
|
+
} & ThisType<CreateComponentPublicInstance<Props, RawBindings, D, C, M, Mixin, Extends, E>>;
|
|
476
|
+
|
|
477
|
+
export declare type ComponentOptionsWithObjectProps<PropsOptions = ComponentObjectPropsOptions, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = EmitsOptions, EE extends string = string, Props = Readonly<ExtractPropTypes<PropsOptions>> & EmitsToProps<E>, Defaults = ExtractDefaultPropTypes<PropsOptions>> = ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, Defaults> & {
|
|
478
|
+
props: PropsOptions & ThisType<void>;
|
|
479
|
+
} & ThisType<CreateComponentPublicInstance<Props, RawBindings, D, C, M, Mixin, Extends, E, Props, Defaults, false>>;
|
|
480
|
+
|
|
481
|
+
export declare type ComponentOptionsWithoutProps<Props = {}, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = EmitsOptions, EE extends string = string, PE = Props & EmitsToProps<E>> = ComponentOptionsBase<PE, RawBindings, D, C, M, Mixin, Extends, E, EE, {}> & {
|
|
482
|
+
props?: undefined;
|
|
483
|
+
} & ThisType<CreateComponentPublicInstance<PE, RawBindings, D, C, M, Mixin, Extends, E>>;
|
|
484
|
+
|
|
485
|
+
export declare type ComponentPropsOptions<P = Data> = ComponentObjectPropsOptions<P> | string[];
|
|
486
|
+
|
|
487
|
+
export declare type ComponentProvideOptions = ObjectProvideOptions | Function;
|
|
488
|
+
|
|
489
|
+
export declare type ComponentPublicInstance<P = {}, // props type extracted from props option
|
|
490
|
+
B = {}, // raw bindings returned from setup()
|
|
491
|
+
D = {}, // return from data()
|
|
492
|
+
C extends ComputedOptions = {}, M extends MethodOptions = {}, E extends EmitsOptions = {}, PublicProps = P, Defaults = {}, MakeDefaultsOptional extends boolean = false, Options = ComponentOptionsBase<any, any, any, any, any, any, any, any, any>> = {
|
|
493
|
+
$: ComponentInternalInstance;
|
|
494
|
+
$data: D;
|
|
495
|
+
$props: MakeDefaultsOptional extends true ? Partial<Defaults> & Omit<P & PublicProps, keyof Defaults> : P & PublicProps;
|
|
496
|
+
$attrs: Data;
|
|
497
|
+
$refs: Data;
|
|
498
|
+
$slots: Slots;
|
|
499
|
+
$root: ComponentPublicInstance | null;
|
|
500
|
+
$parent: ComponentPublicInstance | null;
|
|
501
|
+
$emit: EmitFn<E>;
|
|
502
|
+
$el: any;
|
|
503
|
+
$options: Options & MergedComponentOptionsOverride;
|
|
504
|
+
$forceUpdate: () => void;
|
|
505
|
+
$nextTick: typeof nextTick;
|
|
506
|
+
$watch(source: string | Function, cb: Function, options?: WatchOptions): WatchStopHandle;
|
|
507
|
+
} & P & ShallowUnwrapRef<B> & UnwrapNestedRefs<D> & ExtractComputedReturns<C> & M & ComponentCustomProperties;
|
|
508
|
+
|
|
509
|
+
declare type ComponentPublicInstanceConstructor<T extends ComponentPublicInstance<Props, RawBindings, D, C, M> = ComponentPublicInstance<any>, Props = any, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions> = {
|
|
510
|
+
__isFragment?: never;
|
|
511
|
+
__isTeleport?: never;
|
|
512
|
+
__isSuspense?: never;
|
|
513
|
+
new (...args: any[]): T;
|
|
514
|
+
};
|
|
515
|
+
|
|
516
|
+
declare type ComponentWatchOptionItem = WatchOptionItem | WatchOptionItem[];
|
|
517
|
+
|
|
518
|
+
declare type ComponentWatchOptions = Record<string, ComponentWatchOptionItem>;
|
|
519
|
+
|
|
520
|
+
export declare const computed: typeof computed_2;
|
|
521
|
+
|
|
522
|
+
export { ComputedGetter }
|
|
523
|
+
|
|
524
|
+
export declare type ComputedOptions = Record<string, ComputedGetter<any> | WritableComputedOptions<any>>;
|
|
525
|
+
|
|
526
|
+
export { ComputedRef }
|
|
527
|
+
|
|
528
|
+
export { ComputedSetter }
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* Concrete component type matches its actual value: it's either an options
|
|
532
|
+
* object, or a function. Use this where the code expects to work with actual
|
|
533
|
+
* values, e.g. checking if its a function or not. This is mostly for internal
|
|
534
|
+
* implementation code.
|
|
535
|
+
*/
|
|
536
|
+
export declare type ConcreteComponent<Props = {}, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions> = ComponentOptions<Props, RawBindings, D, C, M> | FunctionalComponent<Props, any>;
|
|
537
|
+
|
|
538
|
+
declare function configureCompat(config: CompatConfig): void;
|
|
539
|
+
|
|
540
|
+
declare interface Constructor<P = any> {
|
|
541
|
+
__isFragment?: never;
|
|
542
|
+
__isTeleport?: never;
|
|
543
|
+
__isSuspense?: never;
|
|
544
|
+
new (...args: any[]): {
|
|
545
|
+
$props: P;
|
|
546
|
+
};
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
export declare type CreateAppFunction<HostElement> = (rootComponent: Component, rootProps?: Data | null) => App<HostElement>;
|
|
550
|
+
|
|
551
|
+
/**
|
|
552
|
+
* Create a block root vnode. Takes the same exact arguments as `createVNode`.
|
|
553
|
+
* A block root keeps track of dynamic nodes within the block in the
|
|
554
|
+
* `dynamicChildren` array.
|
|
555
|
+
*
|
|
556
|
+
* @private
|
|
557
|
+
*/
|
|
558
|
+
export declare function createBlock(type: VNodeTypes | ClassComponent, props?: Record<string, any> | null, children?: any, patchFlag?: number, dynamicProps?: string[]): VNode;
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* @private
|
|
562
|
+
*/
|
|
563
|
+
export declare function createCommentVNode(text?: string, asBlock?: boolean): VNode;
|
|
564
|
+
|
|
565
|
+
declare function createCompatVue(createApp: CreateAppFunction<Element>, createSingletonApp: CreateAppFunction<Element>): CompatVue;
|
|
566
|
+
|
|
567
|
+
declare function createComponentInstance(vnode: VNode, parent: ComponentInternalInstance | null, suspense: SuspenseBoundary | null): ComponentInternalInstance;
|
|
568
|
+
|
|
569
|
+
export declare type CreateComponentPublicInstance<P = {}, B = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, PublicProps = P, Defaults = {}, MakeDefaultsOptional extends boolean = false, PublicMixin = IntersectionMixin<Mixin> & IntersectionMixin<Extends>, PublicP = UnwrapMixinsType<PublicMixin, 'P'> & EnsureNonVoid<P>, PublicB = UnwrapMixinsType<PublicMixin, 'B'> & EnsureNonVoid<B>, PublicD = UnwrapMixinsType<PublicMixin, 'D'> & EnsureNonVoid<D>, PublicC extends ComputedOptions = UnwrapMixinsType<PublicMixin, 'C'> & EnsureNonVoid<C>, PublicM extends MethodOptions = UnwrapMixinsType<PublicMixin, 'M'> & EnsureNonVoid<M>, PublicDefaults = UnwrapMixinsType<PublicMixin, 'Defaults'> & EnsureNonVoid<Defaults>> = ComponentPublicInstance<PublicP, PublicB, PublicD, PublicC, PublicM, E, PublicProps, PublicDefaults, MakeDefaultsOptional, ComponentOptionsBase<P, B, D, C, M, Mixin, Extends, E, string, Defaults>>;
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* @private
|
|
573
|
+
*/
|
|
574
|
+
export declare function createElementBlock(type: string | typeof Fragment, props?: Record<string, any> | null, children?: any, patchFlag?: number, dynamicProps?: string[], shapeFlag?: number): VNode<RendererNode, RendererElement, {
|
|
575
|
+
[key: string]: any;
|
|
576
|
+
}>;
|
|
577
|
+
|
|
578
|
+
export declare function createElementVNode(type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT, props?: (Data & VNodeProps) | null, children?: unknown, patchFlag?: number, dynamicProps?: string[] | null, shapeFlag?: number | ShapeFlags, isBlockNode?: boolean, needFullChildrenNormalization?: boolean): VNode<RendererNode, RendererElement, {
|
|
579
|
+
[key: string]: any;
|
|
580
|
+
}>;
|
|
581
|
+
|
|
582
|
+
export declare function createHydrationRenderer(options: RendererOptions<Node, Element>): HydrationRenderer;
|
|
583
|
+
|
|
584
|
+
/* Excluded from this release type: createPropsRestProxy */
|
|
585
|
+
|
|
586
|
+
declare function createRecord(id: string, initialDef: HMRComponent): boolean;
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* The createRenderer function accepts two generic arguments:
|
|
590
|
+
* HostNode and HostElement, corresponding to Node and Element types in the
|
|
591
|
+
* host environment. For example, for runtime-dom, HostNode would be the DOM
|
|
592
|
+
* `Node` interface and HostElement would be the DOM `Element` interface.
|
|
593
|
+
*
|
|
594
|
+
* Custom renderers can pass in the platform specific types like this:
|
|
595
|
+
*
|
|
596
|
+
* ``` js
|
|
597
|
+
* const { render, createApp } = createRenderer<Node, Element>({
|
|
598
|
+
* patchProp,
|
|
599
|
+
* ...nodeOps
|
|
600
|
+
* })
|
|
601
|
+
* ```
|
|
602
|
+
*/
|
|
603
|
+
export declare function createRenderer<HostNode = RendererNode, HostElement = RendererElement>(options: RendererOptions<HostNode, HostElement>): Renderer<HostElement>;
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* Compiler runtime helper for creating dynamic slots object
|
|
607
|
+
* @private
|
|
608
|
+
*/
|
|
609
|
+
export declare function createSlots(slots: Record<string, Slot>, dynamicSlots: (CompiledSlotDescriptor | CompiledSlotDescriptor[] | undefined)[]): Record<string, Slot>;
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* @private
|
|
613
|
+
*/
|
|
614
|
+
export declare function createStaticVNode(content: string, numberOfNodes: number): VNode;
|
|
615
|
+
|
|
616
|
+
declare function createSuspenseBoundary(vnode: VNode, parent: SuspenseBoundary | null, parentComponent: ComponentInternalInstance | null, container: RendererElement, hiddenContainer: RendererElement, anchor: RendererNode | null, isSVG: boolean, slotScopeIds: string[] | null, optimized: boolean, rendererInternals: RendererInternals, isHydrating?: boolean): SuspenseBoundary;
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
* @private
|
|
620
|
+
*/
|
|
621
|
+
export declare function createTextVNode(text?: string, flag?: number): VNode;
|
|
622
|
+
|
|
623
|
+
export declare const createVNode: typeof _createVNode;
|
|
624
|
+
|
|
625
|
+
declare function _createVNode(type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT, props?: (Data & VNodeProps) | null, children?: unknown, patchFlag?: number, dynamicProps?: string[] | null, isBlockNode?: boolean): VNode;
|
|
626
|
+
|
|
627
|
+
export { customRef }
|
|
628
|
+
|
|
629
|
+
export { CustomRefFactory }
|
|
630
|
+
|
|
631
|
+
declare type Data = Record<string, unknown>;
|
|
632
|
+
|
|
633
|
+
export { DebuggerEvent }
|
|
634
|
+
|
|
635
|
+
export { DebuggerEventExtraInfo }
|
|
636
|
+
|
|
637
|
+
declare type DebuggerHook = (e: DebuggerEvent) => void;
|
|
638
|
+
|
|
639
|
+
export { DebuggerOptions }
|
|
640
|
+
|
|
641
|
+
export { DeepReadonly }
|
|
642
|
+
|
|
643
|
+
declare type DefaultFactory<T> = (props: Data) => T | null | undefined;
|
|
644
|
+
|
|
645
|
+
declare type DefaultKeys<T> = {
|
|
646
|
+
[K in keyof T]: T[K] extends {
|
|
647
|
+
default: any;
|
|
648
|
+
} | BooleanConstructor | {
|
|
649
|
+
type: BooleanConstructor;
|
|
650
|
+
} ? T[K] extends {
|
|
651
|
+
type: BooleanConstructor;
|
|
652
|
+
required: true;
|
|
653
|
+
} ? never : K : never;
|
|
654
|
+
}[keyof T];
|
|
655
|
+
|
|
656
|
+
export declare function defineAsyncComponent<T extends Component = {
|
|
657
|
+
new (): ComponentPublicInstance;
|
|
658
|
+
}>(source: AsyncComponentLoader<T> | AsyncComponentOptions<T>): T;
|
|
659
|
+
|
|
660
|
+
export declare type DefineComponent<PropsOrPropOptions = {}, RawBindings = {}, D = {}, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, EE extends string = string, PP = PublicProps, Props = Readonly<PropsOrPropOptions extends ComponentPropsOptions ? ExtractPropTypes<PropsOrPropOptions> : PropsOrPropOptions> & ({} extends E ? {} : EmitsToProps<E>), Defaults = ExtractDefaultPropTypes<PropsOrPropOptions>> = ComponentPublicInstanceConstructor<CreateComponentPublicInstance<Props, RawBindings, D, C, M, Mixin, Extends, E, PP & Props, Defaults, true> & Props> & ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, Defaults> & PP;
|
|
661
|
+
|
|
662
|
+
export declare function defineComponent<Props, RawBindings = object>(setup: (props: Readonly<Props>, ctx: SetupContext) => RawBindings | RenderFunction): DefineComponent<Props, RawBindings>;
|
|
663
|
+
|
|
664
|
+
export declare function defineComponent<Props = {}, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = EmitsOptions, EE extends string = string>(options: ComponentOptionsWithoutProps<Props, RawBindings, D, C, M, Mixin, Extends, E, EE>): DefineComponent<Props, RawBindings, D, C, M, Mixin, Extends, E, EE>;
|
|
665
|
+
|
|
666
|
+
export declare function defineComponent<PropNames extends string, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = Record<string, any>, EE extends string = string>(options: ComponentOptionsWithArrayProps<PropNames, RawBindings, D, C, M, Mixin, Extends, E, EE>): DefineComponent<Readonly<{
|
|
667
|
+
[key in PropNames]?: any;
|
|
668
|
+
}>, RawBindings, D, C, M, Mixin, Extends, E, EE>;
|
|
669
|
+
|
|
670
|
+
export declare function defineComponent<PropsOptions extends Readonly<ComponentPropsOptions>, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = Record<string, any>, EE extends string = string>(options: ComponentOptionsWithObjectProps<PropsOptions, RawBindings, D, C, M, Mixin, Extends, E, EE>): DefineComponent<PropsOptions, RawBindings, D, C, M, Mixin, Extends, E, EE>;
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
* Vue `<script setup>` compiler macro for declaring a component's emitted
|
|
674
|
+
* events. The expected argument is the same as the component `emits` option.
|
|
675
|
+
*
|
|
676
|
+
* Example runtime declaration:
|
|
677
|
+
* ```js
|
|
678
|
+
* const emit = defineEmits(['change', 'update'])
|
|
679
|
+
* ```
|
|
680
|
+
*
|
|
681
|
+
* Example type-based declaration:
|
|
682
|
+
* ```ts
|
|
683
|
+
* const emit = defineEmits<{
|
|
684
|
+
* (event: 'change'): void
|
|
685
|
+
* (event: 'update', id: number): void
|
|
686
|
+
* }>()
|
|
687
|
+
*
|
|
688
|
+
* emit('change')
|
|
689
|
+
* emit('update', 1)
|
|
690
|
+
* ```
|
|
691
|
+
*
|
|
692
|
+
* This is only usable inside `<script setup>`, is compiled away in the
|
|
693
|
+
* output and should **not** be actually called at runtime.
|
|
694
|
+
*/
|
|
695
|
+
export declare function defineEmits<EE extends string = string>(emitOptions: EE[]): EmitFn<EE[]>;
|
|
696
|
+
|
|
697
|
+
export declare function defineEmits<E extends EmitsOptions = EmitsOptions>(emitOptions: E): EmitFn<E>;
|
|
698
|
+
|
|
699
|
+
export declare function defineEmits<TypeEmit>(): TypeEmit;
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* Vue `<script setup>` compiler macro for declaring a component's exposed
|
|
703
|
+
* instance properties when it is accessed by a parent component via template
|
|
704
|
+
* refs.
|
|
705
|
+
*
|
|
706
|
+
* `<script setup>` components are closed by default - i.e. variables inside
|
|
707
|
+
* the `<script setup>` scope is not exposed to parent unless explicitly exposed
|
|
708
|
+
* via `defineExpose`.
|
|
709
|
+
*
|
|
710
|
+
* This is only usable inside `<script setup>`, is compiled away in the
|
|
711
|
+
* output and should **not** be actually called at runtime.
|
|
712
|
+
*/
|
|
713
|
+
export declare function defineExpose<Exposed extends Record<string, any> = Record<string, any>>(exposed?: Exposed): void;
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* Vue `<script setup>` compiler macro for declaring component props. The
|
|
717
|
+
* expected argument is the same as the component `props` option.
|
|
718
|
+
*
|
|
719
|
+
* Example runtime declaration:
|
|
720
|
+
* ```js
|
|
721
|
+
* // using Array syntax
|
|
722
|
+
* const props = defineProps(['foo', 'bar'])
|
|
723
|
+
* // using Object syntax
|
|
724
|
+
* const props = defineProps({
|
|
725
|
+
* foo: String,
|
|
726
|
+
* bar: {
|
|
727
|
+
* type: Number,
|
|
728
|
+
* required: true
|
|
729
|
+
* }
|
|
730
|
+
* })
|
|
731
|
+
* ```
|
|
732
|
+
*
|
|
733
|
+
* Equivalent type-based declaration:
|
|
734
|
+
* ```ts
|
|
735
|
+
* // will be compiled into equivalent runtime declarations
|
|
736
|
+
* const props = defineProps<{
|
|
737
|
+
* foo?: string
|
|
738
|
+
* bar: number
|
|
739
|
+
* }>()
|
|
740
|
+
* ```
|
|
741
|
+
*
|
|
742
|
+
* This is only usable inside `<script setup>`, is compiled away in the
|
|
743
|
+
* output and should **not** be actually called at runtime.
|
|
744
|
+
*/
|
|
745
|
+
export declare function defineProps<PropNames extends string = string>(props: PropNames[]): Readonly<{
|
|
746
|
+
[key in PropNames]?: any;
|
|
747
|
+
}>;
|
|
748
|
+
|
|
749
|
+
export declare function defineProps<PP extends ComponentObjectPropsOptions = ComponentObjectPropsOptions>(props: PP): Readonly<ExtractPropTypes<PP>>;
|
|
750
|
+
|
|
751
|
+
export declare function defineProps<TypeProps>(): Readonly<TypeProps>;
|
|
752
|
+
|
|
753
|
+
export declare const enum DeprecationTypes {
|
|
754
|
+
GLOBAL_MOUNT = "GLOBAL_MOUNT",
|
|
755
|
+
GLOBAL_MOUNT_CONTAINER = "GLOBAL_MOUNT_CONTAINER",
|
|
756
|
+
GLOBAL_EXTEND = "GLOBAL_EXTEND",
|
|
757
|
+
GLOBAL_PROTOTYPE = "GLOBAL_PROTOTYPE",
|
|
758
|
+
GLOBAL_SET = "GLOBAL_SET",
|
|
759
|
+
GLOBAL_DELETE = "GLOBAL_DELETE",
|
|
760
|
+
GLOBAL_OBSERVABLE = "GLOBAL_OBSERVABLE",
|
|
761
|
+
GLOBAL_PRIVATE_UTIL = "GLOBAL_PRIVATE_UTIL",
|
|
762
|
+
CONFIG_SILENT = "CONFIG_SILENT",
|
|
763
|
+
CONFIG_DEVTOOLS = "CONFIG_DEVTOOLS",
|
|
764
|
+
CONFIG_KEY_CODES = "CONFIG_KEY_CODES",
|
|
765
|
+
CONFIG_PRODUCTION_TIP = "CONFIG_PRODUCTION_TIP",
|
|
766
|
+
CONFIG_IGNORED_ELEMENTS = "CONFIG_IGNORED_ELEMENTS",
|
|
767
|
+
CONFIG_WHITESPACE = "CONFIG_WHITESPACE",
|
|
768
|
+
CONFIG_OPTION_MERGE_STRATS = "CONFIG_OPTION_MERGE_STRATS",
|
|
769
|
+
INSTANCE_SET = "INSTANCE_SET",
|
|
770
|
+
INSTANCE_DELETE = "INSTANCE_DELETE",
|
|
771
|
+
INSTANCE_DESTROY = "INSTANCE_DESTROY",
|
|
772
|
+
INSTANCE_EVENT_EMITTER = "INSTANCE_EVENT_EMITTER",
|
|
773
|
+
INSTANCE_EVENT_HOOKS = "INSTANCE_EVENT_HOOKS",
|
|
774
|
+
INSTANCE_CHILDREN = "INSTANCE_CHILDREN",
|
|
775
|
+
INSTANCE_LISTENERS = "INSTANCE_LISTENERS",
|
|
776
|
+
INSTANCE_SCOPED_SLOTS = "INSTANCE_SCOPED_SLOTS",
|
|
777
|
+
INSTANCE_ATTRS_CLASS_STYLE = "INSTANCE_ATTRS_CLASS_STYLE",
|
|
778
|
+
OPTIONS_DATA_FN = "OPTIONS_DATA_FN",
|
|
779
|
+
OPTIONS_DATA_MERGE = "OPTIONS_DATA_MERGE",
|
|
780
|
+
OPTIONS_BEFORE_DESTROY = "OPTIONS_BEFORE_DESTROY",
|
|
781
|
+
OPTIONS_DESTROYED = "OPTIONS_DESTROYED",
|
|
782
|
+
WATCH_ARRAY = "WATCH_ARRAY",
|
|
783
|
+
PROPS_DEFAULT_THIS = "PROPS_DEFAULT_THIS",
|
|
784
|
+
V_ON_KEYCODE_MODIFIER = "V_ON_KEYCODE_MODIFIER",
|
|
785
|
+
CUSTOM_DIR = "CUSTOM_DIR",
|
|
786
|
+
ATTR_FALSE_VALUE = "ATTR_FALSE_VALUE",
|
|
787
|
+
ATTR_ENUMERATED_COERCION = "ATTR_ENUMERATED_COERCION",
|
|
788
|
+
TRANSITION_CLASSES = "TRANSITION_CLASSES",
|
|
789
|
+
TRANSITION_GROUP_ROOT = "TRANSITION_GROUP_ROOT",
|
|
790
|
+
COMPONENT_ASYNC = "COMPONENT_ASYNC",
|
|
791
|
+
COMPONENT_FUNCTIONAL = "COMPONENT_FUNCTIONAL",
|
|
792
|
+
COMPONENT_V_MODEL = "COMPONENT_V_MODEL",
|
|
793
|
+
RENDER_FUNCTION = "RENDER_FUNCTION",
|
|
794
|
+
FILTERS = "FILTERS",
|
|
795
|
+
PRIVATE_APIS = "PRIVATE_APIS"
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
export declare let devtools: DevtoolsHook;
|
|
799
|
+
|
|
800
|
+
declare interface DevtoolsHook {
|
|
801
|
+
enabled?: boolean;
|
|
802
|
+
emit: (event: string, ...payload: any[]) => void;
|
|
803
|
+
on: (event: string, handler: Function) => void;
|
|
804
|
+
once: (event: string, handler: Function) => void;
|
|
805
|
+
off: (event: string, handler: Function) => void;
|
|
806
|
+
appRecords: AppRecord[];
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
export declare type Directive<T = any, V = any> = ObjectDirective<T, V> | FunctionDirective<T, V>;
|
|
810
|
+
|
|
811
|
+
export declare type DirectiveArguments = Array<[Directive] | [Directive, any] | [Directive, any, string] | [Directive, any, string, DirectiveModifiers]>;
|
|
812
|
+
|
|
813
|
+
export declare interface DirectiveBinding<V = any> {
|
|
814
|
+
instance: ComponentPublicInstance | null;
|
|
815
|
+
value: V;
|
|
816
|
+
oldValue: V | null;
|
|
817
|
+
arg?: string;
|
|
818
|
+
modifiers: DirectiveModifiers;
|
|
819
|
+
dir: ObjectDirective<any, V>;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
export declare type DirectiveHook<T = any, Prev = VNode<any, T> | null, V = any> = (el: T, binding: DirectiveBinding<V>, vnode: VNode<any, T>, prevVNode: Prev) => void;
|
|
823
|
+
|
|
824
|
+
declare type DirectiveModifiers = Record<string, boolean>;
|
|
825
|
+
|
|
826
|
+
export { effect }
|
|
827
|
+
|
|
828
|
+
export { EffectScheduler }
|
|
829
|
+
|
|
830
|
+
export { EffectScope }
|
|
831
|
+
|
|
832
|
+
export { effectScope }
|
|
833
|
+
|
|
834
|
+
declare type EmitFn<Options = ObjectEmitsOptions, Event extends keyof Options = keyof Options> = Options extends Array<infer V> ? (event: V, ...args: any[]) => void : {} extends Options ? (event: string, ...args: any[]) => void : UnionToIntersection<{
|
|
835
|
+
[key in Event]: Options[key] extends (...args: infer Args) => any ? (event: key, ...args: Args) => void : (event: key, ...args: any[]) => void;
|
|
836
|
+
}[Event]>;
|
|
837
|
+
|
|
838
|
+
export declare type EmitsOptions = ObjectEmitsOptions | string[];
|
|
839
|
+
|
|
840
|
+
declare type EmitsToProps<T extends EmitsOptions> = T extends string[] ? {
|
|
841
|
+
[K in string & `on${Capitalize<T[number]>}`]?: (...args: any[]) => any;
|
|
842
|
+
} : T extends ObjectEmitsOptions ? {
|
|
843
|
+
[K in string & `on${Capitalize<string & keyof T>}`]?: K extends `on${infer C}` ? T[Uncapitalize<C>] extends null ? (...args: any[]) => any : (...args: T[Uncapitalize<C>] extends (...args: infer P) => any ? P : never) => any : never;
|
|
844
|
+
} : {};
|
|
845
|
+
|
|
846
|
+
declare type EnsureNonVoid<T> = T extends void ? {} : T;
|
|
847
|
+
|
|
848
|
+
declare type ErrorCapturedHook<TError = unknown> = (err: TError, instance: ComponentPublicInstance | null, info: string) => boolean | void;
|
|
849
|
+
|
|
850
|
+
export declare const enum ErrorCodes {
|
|
851
|
+
SETUP_FUNCTION = 0,
|
|
852
|
+
RENDER_FUNCTION = 1,
|
|
853
|
+
WATCH_GETTER = 2,
|
|
854
|
+
WATCH_CALLBACK = 3,
|
|
855
|
+
WATCH_CLEANUP = 4,
|
|
856
|
+
NATIVE_EVENT_HANDLER = 5,
|
|
857
|
+
COMPONENT_EVENT_HANDLER = 6,
|
|
858
|
+
VNODE_HOOK = 7,
|
|
859
|
+
DIRECTIVE_HOOK = 8,
|
|
860
|
+
TRANSITION_HOOK = 9,
|
|
861
|
+
APP_ERROR_HANDLER = 10,
|
|
862
|
+
APP_WARN_HANDLER = 11,
|
|
863
|
+
FUNCTION_REF = 12,
|
|
864
|
+
ASYNC_COMPONENT_LOADER = 13,
|
|
865
|
+
SCHEDULER = 14
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
declare type ErrorTypes = LifecycleHooks | ErrorCodes;
|
|
869
|
+
|
|
870
|
+
declare type ExtractComputedReturns<T extends any> = {
|
|
871
|
+
[key in keyof T]: T[key] extends {
|
|
872
|
+
get: (...args: any[]) => infer TReturn;
|
|
873
|
+
} ? TReturn : T[key] extends (...args: any[]) => infer TReturn ? TReturn : never;
|
|
874
|
+
};
|
|
875
|
+
|
|
876
|
+
export declare type ExtractDefaultPropTypes<O> = O extends object ? {
|
|
877
|
+
[K in keyof Pick<O, DefaultKeys<O>>]: InferPropType<O[K]>;
|
|
878
|
+
} : {};
|
|
879
|
+
|
|
880
|
+
declare type ExtractMixin<T> = {
|
|
881
|
+
Mixin: MixinToOptionTypes<T>;
|
|
882
|
+
}[T extends ComponentOptionsMixin ? 'Mixin' : never];
|
|
883
|
+
|
|
884
|
+
declare type ExtractOptionProp<T> = T extends ComponentOptionsBase<infer P, // Props
|
|
885
|
+
any, // RawBindings
|
|
886
|
+
any, // D
|
|
887
|
+
any, // C
|
|
888
|
+
any, // M
|
|
889
|
+
any, // Mixin
|
|
890
|
+
any, // Extends
|
|
891
|
+
any> ? unknown extends P ? {} : P : {};
|
|
892
|
+
|
|
893
|
+
export declare type ExtractPropTypes<O> = {
|
|
894
|
+
[K in keyof Pick<O, RequiredKeys<O>>]: InferPropType<O[K]>;
|
|
895
|
+
} & {
|
|
896
|
+
[K in keyof Pick<O, OptionalKeys<O>>]?: InferPropType<O[K]>;
|
|
897
|
+
};
|
|
898
|
+
|
|
899
|
+
export declare const Fragment: {
|
|
900
|
+
new (): {
|
|
901
|
+
$props: VNodeProps;
|
|
902
|
+
};
|
|
903
|
+
__isFragment: true;
|
|
904
|
+
};
|
|
905
|
+
|
|
906
|
+
export declare interface FunctionalComponent<P = {}, E extends EmitsOptions = {}> extends ComponentInternalOptions {
|
|
907
|
+
(props: P, ctx: Omit<SetupContext<E>, 'expose'>): any;
|
|
908
|
+
props?: ComponentPropsOptions<P>;
|
|
909
|
+
emits?: E | (keyof E)[];
|
|
910
|
+
inheritAttrs?: boolean;
|
|
911
|
+
displayName?: string;
|
|
912
|
+
compatConfig?: CompatConfig;
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
export declare type FunctionDirective<T = any, V = any> = DirectiveHook<T, any, V>;
|
|
916
|
+
|
|
917
|
+
export declare const getCurrentInstance: () => ComponentInternalInstance | null;
|
|
918
|
+
|
|
919
|
+
export { getCurrentScope }
|
|
920
|
+
|
|
921
|
+
export declare function getTransitionRawChildren(children: VNode[], keepComment?: boolean, parentKey?: VNode['key']): VNode[];
|
|
922
|
+
|
|
923
|
+
export declare function guardReactiveProps(props: (Data & VNodeProps) | null): (Data & VNodeProps) | null;
|
|
924
|
+
|
|
925
|
+
export declare function h(type: string, children?: RawChildren): VNode;
|
|
926
|
+
|
|
927
|
+
export declare function h(type: string, props?: RawProps | null, children?: RawChildren | RawSlots): VNode;
|
|
928
|
+
|
|
929
|
+
export declare function h(type: typeof Text_2 | typeof Comment_2, children?: string | number | boolean): VNode;
|
|
930
|
+
|
|
931
|
+
export declare function h(type: typeof Text_2 | typeof Comment_2, props?: null, children?: string | number | boolean): VNode;
|
|
932
|
+
|
|
933
|
+
export declare function h(type: typeof Fragment, children?: VNodeArrayChildren): VNode;
|
|
934
|
+
|
|
935
|
+
export declare function h(type: typeof Fragment, props?: RawProps | null, children?: VNodeArrayChildren): VNode;
|
|
936
|
+
|
|
937
|
+
export declare function h(type: typeof Teleport, props: RawProps & TeleportProps, children: RawChildren): VNode;
|
|
938
|
+
|
|
939
|
+
export declare function h(type: typeof Suspense, children?: RawChildren): VNode;
|
|
940
|
+
|
|
941
|
+
export declare function h(type: typeof Suspense, props?: (RawProps & SuspenseProps) | null, children?: RawChildren | RawSlots): VNode;
|
|
942
|
+
|
|
943
|
+
export declare function h<P, E extends EmitsOptions = {}>(type: FunctionalComponent<P, E>, props?: (RawProps & P) | ({} extends P ? null : never), children?: RawChildren | RawSlots): VNode;
|
|
944
|
+
|
|
945
|
+
export declare function h(type: Component, children?: RawChildren): VNode;
|
|
946
|
+
|
|
947
|
+
export declare function h<P>(type: ConcreteComponent | string, children?: RawChildren): VNode;
|
|
948
|
+
|
|
949
|
+
export declare function h<P>(type: ConcreteComponent<P> | string, props?: (RawProps & P) | ({} extends P ? null : never), children?: RawChildren): VNode;
|
|
950
|
+
|
|
951
|
+
export declare function h(type: Component, props: null, children?: RawChildren | RawSlots): VNode;
|
|
952
|
+
|
|
953
|
+
export declare function h<P>(type: ComponentOptions<P>, props?: (RawProps & P) | ({} extends P ? null : never), children?: RawChildren | RawSlots): VNode;
|
|
954
|
+
|
|
955
|
+
export declare function h(type: Constructor, children?: RawChildren): VNode;
|
|
956
|
+
|
|
957
|
+
export declare function h<P>(type: Constructor<P>, props?: (RawProps & P) | ({} extends P ? null : never), children?: RawChildren | RawSlots): VNode;
|
|
958
|
+
|
|
959
|
+
export declare function h(type: DefineComponent, children?: RawChildren): VNode;
|
|
960
|
+
|
|
961
|
+
export declare function h<P>(type: DefineComponent<P>, props?: (RawProps & P) | ({} extends P ? null : never), children?: RawChildren | RawSlots): VNode;
|
|
962
|
+
|
|
963
|
+
export declare function handleError(err: unknown, instance: ComponentInternalInstance | null, type: ErrorTypes, throwInDev?: boolean): void;
|
|
964
|
+
|
|
965
|
+
declare type HMRComponent = ComponentOptions | ClassComponent;
|
|
966
|
+
|
|
967
|
+
export declare interface HMRRuntime {
|
|
968
|
+
createRecord: typeof createRecord;
|
|
969
|
+
rerender: typeof rerender;
|
|
970
|
+
reload: typeof reload;
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
declare type Hook<T = () => void> = T | T[];
|
|
974
|
+
|
|
975
|
+
declare function hydrateSuspense(node: Node, vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null, optimized: boolean, rendererInternals: RendererInternals, hydrateNode: (node: Node, vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, slotScopeIds: string[] | null, optimized: boolean) => Node | null): Node | null;
|
|
976
|
+
|
|
977
|
+
declare function hydrateTeleport(node: Node, vnode: TeleportVNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, slotScopeIds: string[] | null, optimized: boolean, { o: { nextSibling, parentNode, querySelector } }: RendererInternals<Node, Element>, hydrateChildren: (node: Node | null, vnode: VNode, container: Element, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, slotScopeIds: string[] | null, optimized: boolean) => Node | null): Node | null;
|
|
978
|
+
|
|
979
|
+
export declare interface HydrationRenderer extends Renderer<Element | ShadowRoot> {
|
|
980
|
+
hydrate: RootHydrateFunction;
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
declare type InferDefault<P, T> = T extends null | number | string | boolean | symbol | Function ? T | ((props: P) => T) : (props: P) => T;
|
|
984
|
+
|
|
985
|
+
declare type InferDefaults<T> = {
|
|
986
|
+
[K in keyof T]?: InferDefault<T, NotUndefined<T[K]>>;
|
|
987
|
+
};
|
|
988
|
+
|
|
989
|
+
declare type InferPropType<T> = [T] extends [null] ? any : [T] extends [{
|
|
990
|
+
type: null | true;
|
|
991
|
+
}] ? any : [T] extends [ObjectConstructor | {
|
|
992
|
+
type: ObjectConstructor;
|
|
993
|
+
}] ? Record<string, any> : [T] extends [BooleanConstructor | {
|
|
994
|
+
type: BooleanConstructor;
|
|
995
|
+
}] ? boolean : [T] extends [DateConstructor | {
|
|
996
|
+
type: DateConstructor;
|
|
997
|
+
}] ? Date : [T] extends [(infer U)[] | {
|
|
998
|
+
type: (infer U)[];
|
|
999
|
+
}] ? U extends DateConstructor ? Date | InferPropType<U> : InferPropType<U> : [T] extends [Prop<infer V, infer D>] ? unknown extends V ? IfAny<V, V, D> : V : T;
|
|
1000
|
+
|
|
1001
|
+
export declare function initCustomFormatter(): void;
|
|
1002
|
+
|
|
1003
|
+
export declare function inject<T>(key: InjectionKey<T> | string): T | undefined;
|
|
1004
|
+
|
|
1005
|
+
export declare function inject<T>(key: InjectionKey<T> | string, defaultValue: T, treatDefaultAsFactory?: false): T;
|
|
1006
|
+
|
|
1007
|
+
export declare function inject<T>(key: InjectionKey<T> | string, defaultValue: T | (() => T), treatDefaultAsFactory: true): T;
|
|
1008
|
+
|
|
1009
|
+
export declare interface InjectionKey<T> extends Symbol {
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
/* Excluded from this release type: InternalRenderFunction */
|
|
1013
|
+
|
|
1014
|
+
declare type InternalSlots = {
|
|
1015
|
+
[name: string]: Slot | undefined;
|
|
1016
|
+
};
|
|
1017
|
+
|
|
1018
|
+
declare type IntersectionMixin<T> = IsDefaultMixinComponent<T> extends true ? OptionTypesType<{}, {}, {}, {}, {}> : UnionToIntersection<ExtractMixin<T>>;
|
|
1019
|
+
|
|
1020
|
+
declare function isCompatEnabled(key: DeprecationTypes, instance: ComponentInternalInstance | null, enableForBuiltIn?: boolean): boolean;
|
|
1021
|
+
|
|
1022
|
+
declare type IsDefaultMixinComponent<T> = T extends ComponentOptionsMixin ? ComponentOptionsMixin extends T ? true : false : false;
|
|
1023
|
+
|
|
1024
|
+
export declare function isMemoSame(cached: VNode, memo: any[]): boolean;
|
|
1025
|
+
|
|
1026
|
+
export { isProxy }
|
|
1027
|
+
|
|
1028
|
+
export { isReactive }
|
|
1029
|
+
|
|
1030
|
+
export { isReadonly }
|
|
1031
|
+
|
|
1032
|
+
export { isRef }
|
|
1033
|
+
|
|
1034
|
+
export declare const isRuntimeOnly: () => boolean;
|
|
1035
|
+
|
|
1036
|
+
export { isShallow }
|
|
1037
|
+
|
|
1038
|
+
export declare function isVNode(value: any): value is VNode;
|
|
1039
|
+
|
|
1040
|
+
export declare const KeepAlive: {
|
|
1041
|
+
new (): {
|
|
1042
|
+
$props: VNodeProps & KeepAliveProps;
|
|
1043
|
+
};
|
|
1044
|
+
__isKeepAlive: true;
|
|
1045
|
+
};
|
|
1046
|
+
|
|
1047
|
+
export declare interface KeepAliveProps {
|
|
1048
|
+
include?: MatchPattern;
|
|
1049
|
+
exclude?: MatchPattern;
|
|
1050
|
+
max?: number | string;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
export declare type LegacyConfig = {
|
|
1054
|
+
/**
|
|
1055
|
+
* @deprecated `config.silent` option has been removed
|
|
1056
|
+
*/
|
|
1057
|
+
silent?: boolean;
|
|
1058
|
+
/**
|
|
1059
|
+
* @deprecated use __VUE_PROD_DEVTOOLS__ compile-time feature flag instead
|
|
1060
|
+
* https://github.com/vuejs/core/tree/main/packages/vue#bundler-build-feature-flags
|
|
1061
|
+
*/
|
|
1062
|
+
devtools?: boolean;
|
|
1063
|
+
/**
|
|
1064
|
+
* @deprecated use `config.isCustomElement` instead
|
|
1065
|
+
* https://v3-migration.vuejs.org/breaking-changes/global-api.html#config-ignoredelements-is-now-config-iscustomelement
|
|
1066
|
+
*/
|
|
1067
|
+
ignoredElements?: (string | RegExp)[];
|
|
1068
|
+
/**
|
|
1069
|
+
* @deprecated
|
|
1070
|
+
* https://v3-migration.vuejs.org/breaking-changes/keycode-modifiers.html
|
|
1071
|
+
*/
|
|
1072
|
+
keyCodes?: Record<string, number | number[]>;
|
|
1073
|
+
/**
|
|
1074
|
+
* @deprecated
|
|
1075
|
+
* https://v3-migration.vuejs.org/breaking-changes/global-api.html#config-productiontip-removed
|
|
1076
|
+
*/
|
|
1077
|
+
productionTip?: boolean;
|
|
1078
|
+
};
|
|
1079
|
+
|
|
1080
|
+
declare interface LegacyOptions<Props, D, C extends ComputedOptions, M extends MethodOptions, Mixin extends ComponentOptionsMixin, Extends extends ComponentOptionsMixin> {
|
|
1081
|
+
compatConfig?: CompatConfig;
|
|
1082
|
+
[key: string]: any;
|
|
1083
|
+
data?: (this: CreateComponentPublicInstance<Props, {}, {}, {}, MethodOptions, Mixin, Extends>, vm: CreateComponentPublicInstance<Props, {}, {}, {}, MethodOptions, Mixin, Extends>) => D;
|
|
1084
|
+
computed?: C;
|
|
1085
|
+
methods?: M;
|
|
1086
|
+
watch?: ComponentWatchOptions;
|
|
1087
|
+
provide?: ComponentProvideOptions;
|
|
1088
|
+
inject?: ComponentInjectOptions;
|
|
1089
|
+
filters?: Record<string, Function>;
|
|
1090
|
+
mixins?: Mixin[];
|
|
1091
|
+
extends?: Extends;
|
|
1092
|
+
beforeCreate?(): void;
|
|
1093
|
+
created?(): void;
|
|
1094
|
+
beforeMount?(): void;
|
|
1095
|
+
mounted?(): void;
|
|
1096
|
+
beforeUpdate?(): void;
|
|
1097
|
+
updated?(): void;
|
|
1098
|
+
activated?(): void;
|
|
1099
|
+
deactivated?(): void;
|
|
1100
|
+
/** @deprecated use `beforeUnmount` instead */
|
|
1101
|
+
beforeDestroy?(): void;
|
|
1102
|
+
beforeUnmount?(): void;
|
|
1103
|
+
/** @deprecated use `unmounted` instead */
|
|
1104
|
+
destroyed?(): void;
|
|
1105
|
+
unmounted?(): void;
|
|
1106
|
+
renderTracked?: DebuggerHook;
|
|
1107
|
+
renderTriggered?: DebuggerHook;
|
|
1108
|
+
errorCaptured?: ErrorCapturedHook;
|
|
1109
|
+
/**
|
|
1110
|
+
* runtime compile only
|
|
1111
|
+
* @deprecated use `compilerOptions.delimiters` instead.
|
|
1112
|
+
*/
|
|
1113
|
+
delimiters?: [string, string];
|
|
1114
|
+
/**
|
|
1115
|
+
* #3468
|
|
1116
|
+
*
|
|
1117
|
+
* type-only, used to assist Mixin's type inference,
|
|
1118
|
+
* typescript will try to simplify the inferred `Mixin` type,
|
|
1119
|
+
* with the `__differentiator`, typescript won't be able to combine different mixins,
|
|
1120
|
+
* because the `__differentiator` will be different
|
|
1121
|
+
*/
|
|
1122
|
+
__differentiator?: keyof D | keyof C | keyof M;
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
declare type LegacyPublicInstance = ComponentPublicInstance & LegacyPublicProperties;
|
|
1126
|
+
|
|
1127
|
+
declare interface LegacyPublicProperties {
|
|
1128
|
+
$set(target: object, key: string, value: any): void;
|
|
1129
|
+
$delete(target: object, key: string): void;
|
|
1130
|
+
$mount(el?: string | Element): this;
|
|
1131
|
+
$destroy(): void;
|
|
1132
|
+
$scopedSlots: Slots;
|
|
1133
|
+
$on(event: string | string[], fn: Function): this;
|
|
1134
|
+
$once(event: string, fn: Function): this;
|
|
1135
|
+
$off(event?: string | string[], fn?: Function): this;
|
|
1136
|
+
$children: LegacyPublicProperties[];
|
|
1137
|
+
$listeners: Record<string, Function | Function[]>;
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
declare type LifecycleHook<TFn = Function> = TFn[] | null;
|
|
1141
|
+
|
|
1142
|
+
declare const enum LifecycleHooks {
|
|
1143
|
+
BEFORE_CREATE = "bc",
|
|
1144
|
+
CREATED = "c",
|
|
1145
|
+
BEFORE_MOUNT = "bm",
|
|
1146
|
+
MOUNTED = "m",
|
|
1147
|
+
BEFORE_UPDATE = "bu",
|
|
1148
|
+
UPDATED = "u",
|
|
1149
|
+
BEFORE_UNMOUNT = "bum",
|
|
1150
|
+
UNMOUNTED = "um",
|
|
1151
|
+
DEACTIVATED = "da",
|
|
1152
|
+
ACTIVATED = "a",
|
|
1153
|
+
RENDER_TRIGGERED = "rtg",
|
|
1154
|
+
RENDER_TRACKED = "rtc",
|
|
1155
|
+
ERROR_CAPTURED = "ec",
|
|
1156
|
+
SERVER_PREFETCH = "sp"
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
declare type MapSources<T, Immediate> = {
|
|
1160
|
+
[K in keyof T]: T[K] extends WatchSource<infer V> ? Immediate extends true ? V | undefined : V : T[K] extends object ? Immediate extends true ? T[K] | undefined : T[K] : never;
|
|
1161
|
+
};
|
|
1162
|
+
|
|
1163
|
+
export { markRaw }
|
|
1164
|
+
|
|
1165
|
+
declare type MatchPattern = string | RegExp | (string | RegExp)[];
|
|
1166
|
+
|
|
1167
|
+
declare type MergedComponentOptions = ComponentOptions & MergedComponentOptionsOverride;
|
|
1168
|
+
|
|
1169
|
+
declare type MergedComponentOptionsOverride = {
|
|
1170
|
+
beforeCreate?: MergedHook;
|
|
1171
|
+
created?: MergedHook;
|
|
1172
|
+
beforeMount?: MergedHook;
|
|
1173
|
+
mounted?: MergedHook;
|
|
1174
|
+
beforeUpdate?: MergedHook;
|
|
1175
|
+
updated?: MergedHook;
|
|
1176
|
+
activated?: MergedHook;
|
|
1177
|
+
deactivated?: MergedHook;
|
|
1178
|
+
/** @deprecated use `beforeUnmount` instead */
|
|
1179
|
+
beforeDestroy?: MergedHook;
|
|
1180
|
+
beforeUnmount?: MergedHook;
|
|
1181
|
+
/** @deprecated use `unmounted` instead */
|
|
1182
|
+
destroyed?: MergedHook;
|
|
1183
|
+
unmounted?: MergedHook;
|
|
1184
|
+
renderTracked?: MergedHook<DebuggerHook>;
|
|
1185
|
+
renderTriggered?: MergedHook<DebuggerHook>;
|
|
1186
|
+
errorCaptured?: MergedHook<ErrorCapturedHook>;
|
|
1187
|
+
};
|
|
1188
|
+
|
|
1189
|
+
/* Excluded from this release type: mergeDefaults */
|
|
1190
|
+
|
|
1191
|
+
declare type MergedHook<T = () => void> = T | T[];
|
|
1192
|
+
|
|
1193
|
+
export declare function mergeProps(...args: (Data & VNodeProps)[]): Data;
|
|
1194
|
+
|
|
1195
|
+
export declare interface MethodOptions {
|
|
1196
|
+
[key: string]: Function;
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
declare type MixinToOptionTypes<T> = T extends ComponentOptionsBase<infer P, infer B, infer D, infer C, infer M, infer Mixin, infer Extends, any, any, infer Defaults> ? OptionTypesType<P & {}, B & {}, D & {}, C & {}, M & {}, Defaults & {}> & IntersectionMixin<Mixin> & IntersectionMixin<Extends> : never;
|
|
1200
|
+
|
|
1201
|
+
declare type MountChildrenFn = (children: VNodeArrayChildren, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null, optimized: boolean, start?: number) => void;
|
|
1202
|
+
|
|
1203
|
+
declare type MountComponentFn = (initialVNode: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, optimized: boolean) => void;
|
|
1204
|
+
|
|
1205
|
+
declare type MoveFn = (vnode: VNode, container: RendererElement, anchor: RendererNode | null, type: MoveType, parentSuspense?: SuspenseBoundary | null) => void;
|
|
1206
|
+
|
|
1207
|
+
declare function moveTeleport(vnode: VNode, container: RendererElement, parentAnchor: RendererNode | null, { o: { insert }, m: move }: RendererInternals, moveType?: TeleportMoveTypes): void;
|
|
1208
|
+
|
|
1209
|
+
declare const enum MoveType {
|
|
1210
|
+
ENTER = 0,
|
|
1211
|
+
LEAVE = 1,
|
|
1212
|
+
REORDER = 2
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
declare type MultiWatchSources = (WatchSource<unknown> | object)[];
|
|
1216
|
+
|
|
1217
|
+
declare type NextFn = (vnode: VNode) => RendererNode | null;
|
|
1218
|
+
|
|
1219
|
+
export declare function nextTick<T = void>(this: T, fn?: (this: T) => void): Promise<void>;
|
|
1220
|
+
|
|
1221
|
+
export { normalizeClass }
|
|
1222
|
+
|
|
1223
|
+
declare type NormalizedProp = null | (PropOptions & {
|
|
1224
|
+
[BooleanFlags.shouldCast]?: boolean;
|
|
1225
|
+
[BooleanFlags.shouldCastTrue]?: boolean;
|
|
1226
|
+
});
|
|
1227
|
+
|
|
1228
|
+
declare type NormalizedProps = Record<string, NormalizedProp>;
|
|
1229
|
+
|
|
1230
|
+
declare type NormalizedPropsOptions = [NormalizedProps, string[]] | [];
|
|
1231
|
+
|
|
1232
|
+
export { normalizeProps }
|
|
1233
|
+
|
|
1234
|
+
export { normalizeStyle }
|
|
1235
|
+
|
|
1236
|
+
declare function normalizeSuspenseChildren(vnode: VNode): void;
|
|
1237
|
+
|
|
1238
|
+
declare function normalizeVNode(child: VNodeChild): VNode;
|
|
1239
|
+
|
|
1240
|
+
declare type NotUndefined<T> = T extends undefined ? never : T;
|
|
1241
|
+
|
|
1242
|
+
declare const NULL_DYNAMIC_COMPONENT: unique symbol;
|
|
1243
|
+
|
|
1244
|
+
export declare interface ObjectDirective<T = any, V = any> {
|
|
1245
|
+
created?: DirectiveHook<T, null, V>;
|
|
1246
|
+
beforeMount?: DirectiveHook<T, null, V>;
|
|
1247
|
+
mounted?: DirectiveHook<T, null, V>;
|
|
1248
|
+
beforeUpdate?: DirectiveHook<T, VNode<any, T>, V>;
|
|
1249
|
+
updated?: DirectiveHook<T, VNode<any, T>, V>;
|
|
1250
|
+
beforeUnmount?: DirectiveHook<T, null, V>;
|
|
1251
|
+
unmounted?: DirectiveHook<T, null, V>;
|
|
1252
|
+
getSSRProps?: SSRDirectiveHook;
|
|
1253
|
+
deep?: boolean;
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
export declare type ObjectEmitsOptions = Record<string, ((...args: any[]) => any) | null>;
|
|
1257
|
+
|
|
1258
|
+
declare type ObjectInjectOptions = Record<string | symbol, string | symbol | {
|
|
1259
|
+
from?: string | symbol;
|
|
1260
|
+
default?: unknown;
|
|
1261
|
+
}>;
|
|
1262
|
+
|
|
1263
|
+
declare type ObjectProvideOptions = Record<string | symbol, unknown>;
|
|
1264
|
+
|
|
1265
|
+
declare type ObjectWatchOptionItem = {
|
|
1266
|
+
handler: WatchCallback | string;
|
|
1267
|
+
} & WatchOptions;
|
|
1268
|
+
|
|
1269
|
+
export declare function onActivated(hook: Function, target?: ComponentInternalInstance | null): void;
|
|
1270
|
+
|
|
1271
|
+
export declare const onBeforeMount: (hook: () => any, target?: ComponentInternalInstance | null) => false | Function | undefined;
|
|
1272
|
+
|
|
1273
|
+
export declare const onBeforeUnmount: (hook: () => any, target?: ComponentInternalInstance | null) => false | Function | undefined;
|
|
1274
|
+
|
|
1275
|
+
export declare const onBeforeUpdate: (hook: () => any, target?: ComponentInternalInstance | null) => false | Function | undefined;
|
|
1276
|
+
|
|
1277
|
+
declare type OnCleanup = (cleanupFn: () => void) => void;
|
|
1278
|
+
|
|
1279
|
+
export declare function onDeactivated(hook: Function, target?: ComponentInternalInstance | null): void;
|
|
1280
|
+
|
|
1281
|
+
export declare function onErrorCaptured<TError = Error>(hook: ErrorCapturedHook<TError>, target?: ComponentInternalInstance | null): void;
|
|
1282
|
+
|
|
1283
|
+
export declare const onMounted: (hook: () => any, target?: ComponentInternalInstance | null) => false | Function | undefined;
|
|
1284
|
+
|
|
1285
|
+
export declare const onRenderTracked: (hook: DebuggerHook, target?: ComponentInternalInstance | null) => false | Function | undefined;
|
|
1286
|
+
|
|
1287
|
+
export declare const onRenderTriggered: (hook: DebuggerHook, target?: ComponentInternalInstance | null) => false | Function | undefined;
|
|
1288
|
+
|
|
1289
|
+
export { onScopeDispose }
|
|
1290
|
+
|
|
1291
|
+
export declare const onServerPrefetch: (hook: () => any, target?: ComponentInternalInstance | null) => false | Function | undefined;
|
|
1292
|
+
|
|
1293
|
+
export declare const onUnmounted: (hook: () => any, target?: ComponentInternalInstance | null) => false | Function | undefined;
|
|
1294
|
+
|
|
1295
|
+
export declare const onUpdated: (hook: () => any, target?: ComponentInternalInstance | null) => false | Function | undefined;
|
|
1296
|
+
|
|
1297
|
+
/**
|
|
1298
|
+
* Open a block.
|
|
1299
|
+
* This must be called before `createBlock`. It cannot be part of `createBlock`
|
|
1300
|
+
* because the children of the block are evaluated before `createBlock` itself
|
|
1301
|
+
* is called. The generated code typically looks like this:
|
|
1302
|
+
*
|
|
1303
|
+
* ```js
|
|
1304
|
+
* function render() {
|
|
1305
|
+
* return (openBlock(),createBlock('div', null, [...]))
|
|
1306
|
+
* }
|
|
1307
|
+
* ```
|
|
1308
|
+
* disableTracking is true when creating a v-for fragment block, since a v-for
|
|
1309
|
+
* fragment always diffs its children.
|
|
1310
|
+
*
|
|
1311
|
+
* @private
|
|
1312
|
+
*/
|
|
1313
|
+
export declare function openBlock(disableTracking?: boolean): void;
|
|
1314
|
+
|
|
1315
|
+
declare type OptionalKeys<T> = Exclude<keyof T, RequiredKeys<T>>;
|
|
1316
|
+
|
|
1317
|
+
export declare type OptionMergeFunction = (to: unknown, from: unknown) => any;
|
|
1318
|
+
|
|
1319
|
+
declare type OptionTypesKeys = 'P' | 'B' | 'D' | 'C' | 'M' | 'Defaults';
|
|
1320
|
+
|
|
1321
|
+
declare type OptionTypesType<P = {}, B = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Defaults = {}> = {
|
|
1322
|
+
P: P;
|
|
1323
|
+
B: B;
|
|
1324
|
+
D: D;
|
|
1325
|
+
C: C;
|
|
1326
|
+
M: M;
|
|
1327
|
+
Defaults: Defaults;
|
|
1328
|
+
};
|
|
1329
|
+
|
|
1330
|
+
declare type PatchBlockChildrenFn = (oldChildren: VNode[], newChildren: VNode[], fallbackContainer: RendererElement, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null) => void;
|
|
1331
|
+
|
|
1332
|
+
declare type PatchChildrenFn = (n1: VNode | null, n2: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null, optimized: boolean) => void;
|
|
1333
|
+
|
|
1334
|
+
declare type PatchFn = (n1: VNode | null, // null means this is a mount
|
|
1335
|
+
n2: VNode, container: RendererElement, anchor?: RendererNode | null, parentComponent?: ComponentInternalInstance | null, parentSuspense?: SuspenseBoundary | null, isSVG?: boolean, slotScopeIds?: string[] | null, optimized?: boolean) => void;
|
|
1336
|
+
|
|
1337
|
+
declare type Plugin_2 = (PluginInstallFunction & {
|
|
1338
|
+
install?: PluginInstallFunction;
|
|
1339
|
+
}) | {
|
|
1340
|
+
install: PluginInstallFunction;
|
|
1341
|
+
};
|
|
1342
|
+
export { Plugin_2 as Plugin }
|
|
1343
|
+
|
|
1344
|
+
declare type PluginInstallFunction = (app: App, ...options: any[]) => any;
|
|
1345
|
+
|
|
1346
|
+
/**
|
|
1347
|
+
* Technically we no longer need this after 3.0.8 but we need to keep the same
|
|
1348
|
+
* API for backwards compat w/ code generated by compilers.
|
|
1349
|
+
* @private
|
|
1350
|
+
*/
|
|
1351
|
+
export declare function popScopeId(): void;
|
|
1352
|
+
|
|
1353
|
+
export declare type Prop<T, D = T> = PropOptions<T, D> | PropType<T>;
|
|
1354
|
+
|
|
1355
|
+
declare type PropConstructor<T = any> = {
|
|
1356
|
+
new (...args: any[]): T & {};
|
|
1357
|
+
} | {
|
|
1358
|
+
(): T;
|
|
1359
|
+
} | PropMethod<T>;
|
|
1360
|
+
|
|
1361
|
+
declare type PropMethod<T, TConstructor = any> = [T] extends [
|
|
1362
|
+
((...args: any) => any) | undefined
|
|
1363
|
+
] ? {
|
|
1364
|
+
new (): TConstructor;
|
|
1365
|
+
(): T;
|
|
1366
|
+
readonly prototype: TConstructor;
|
|
1367
|
+
} : never;
|
|
1368
|
+
|
|
1369
|
+
declare interface PropOptions<T = any, D = T> {
|
|
1370
|
+
type?: PropType<T> | true | null;
|
|
1371
|
+
required?: boolean;
|
|
1372
|
+
default?: D | DefaultFactory<D> | null | undefined | object;
|
|
1373
|
+
validator?(value: unknown): boolean;
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
declare type PropsWithDefaults<Base, Defaults> = Base & {
|
|
1377
|
+
[K in keyof Defaults]: K extends keyof Base ? NotUndefined<Base[K]> : never;
|
|
1378
|
+
};
|
|
1379
|
+
|
|
1380
|
+
export declare type PropType<T> = PropConstructor<T> | PropConstructor<T>[];
|
|
1381
|
+
|
|
1382
|
+
export declare function provide<T>(key: InjectionKey<T> | string | number, value: T): void;
|
|
1383
|
+
|
|
1384
|
+
export { proxyRefs }
|
|
1385
|
+
|
|
1386
|
+
declare type PublicProps = VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1387
|
+
|
|
1388
|
+
/**
|
|
1389
|
+
* Set scope id when creating hoisted vnodes.
|
|
1390
|
+
* @private compiler helper
|
|
1391
|
+
*/
|
|
1392
|
+
export declare function pushScopeId(id: string | null): void;
|
|
1393
|
+
|
|
1394
|
+
export declare function queuePostFlushCb(cb: SchedulerJobs): void;
|
|
1395
|
+
|
|
1396
|
+
declare type RawChildren = string | number | boolean | VNode | VNodeArrayChildren | (() => any);
|
|
1397
|
+
|
|
1398
|
+
declare type RawProps = VNodeProps & {
|
|
1399
|
+
__v_isVNode?: never;
|
|
1400
|
+
[Symbol.iterator]?: never;
|
|
1401
|
+
} & Record<string, any>;
|
|
1402
|
+
|
|
1403
|
+
declare type RawSlots = {
|
|
1404
|
+
[name: string]: unknown;
|
|
1405
|
+
$stable?: boolean;
|
|
1406
|
+
/* Excluded from this release type: _ctx */
|
|
1407
|
+
/* Excluded from this release type: _ */
|
|
1408
|
+
};
|
|
1409
|
+
|
|
1410
|
+
export { reactive }
|
|
1411
|
+
|
|
1412
|
+
export { ReactiveEffect }
|
|
1413
|
+
|
|
1414
|
+
export { ReactiveEffectOptions }
|
|
1415
|
+
|
|
1416
|
+
export { ReactiveEffectRunner }
|
|
1417
|
+
|
|
1418
|
+
export { ReactiveFlags }
|
|
1419
|
+
|
|
1420
|
+
export { readonly }
|
|
1421
|
+
|
|
1422
|
+
export { Ref }
|
|
1423
|
+
|
|
1424
|
+
export { ref }
|
|
1425
|
+
|
|
1426
|
+
/**
|
|
1427
|
+
* For runtime-dom to register the compiler.
|
|
1428
|
+
* Note the exported method uses any to avoid d.ts relying on the compiler types.
|
|
1429
|
+
*/
|
|
1430
|
+
export declare function registerRuntimeCompiler(_compile: any): void;
|
|
1431
|
+
|
|
1432
|
+
declare function reload(id: string, newComp: HMRComponent): void;
|
|
1433
|
+
|
|
1434
|
+
declare type RemoveFn = (vnode: VNode) => void;
|
|
1435
|
+
|
|
1436
|
+
declare function renderComponentRoot(instance: ComponentInternalInstance): VNode;
|
|
1437
|
+
|
|
1438
|
+
export declare interface Renderer<HostElement = RendererElement> {
|
|
1439
|
+
render: RootRenderFunction<HostElement>;
|
|
1440
|
+
createApp: CreateAppFunction<HostElement>;
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
export declare interface RendererElement extends RendererNode {
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
declare interface RendererInternals<HostNode = RendererNode, HostElement = RendererElement> {
|
|
1447
|
+
p: PatchFn;
|
|
1448
|
+
um: UnmountFn;
|
|
1449
|
+
r: RemoveFn;
|
|
1450
|
+
m: MoveFn;
|
|
1451
|
+
mt: MountComponentFn;
|
|
1452
|
+
mc: MountChildrenFn;
|
|
1453
|
+
pc: PatchChildrenFn;
|
|
1454
|
+
pbc: PatchBlockChildrenFn;
|
|
1455
|
+
n: NextFn;
|
|
1456
|
+
o: RendererOptions<HostNode, HostElement>;
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
export declare interface RendererNode {
|
|
1460
|
+
[key: string]: any;
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
export declare interface RendererOptions<HostNode = RendererNode, HostElement = RendererElement> {
|
|
1464
|
+
patchProp(el: HostElement, key: string, prevValue: any, nextValue: any, isSVG?: boolean, prevChildren?: VNode<HostNode, HostElement>[], parentComponent?: ComponentInternalInstance | null, parentSuspense?: SuspenseBoundary | null, unmountChildren?: UnmountChildrenFn): void;
|
|
1465
|
+
insert(el: HostNode, parent: HostElement, anchor?: HostNode | null): void;
|
|
1466
|
+
remove(el: HostNode): void;
|
|
1467
|
+
createElement(type: string, isSVG?: boolean, isCustomizedBuiltIn?: string, vnodeProps?: (VNodeProps & {
|
|
1468
|
+
[key: string]: any;
|
|
1469
|
+
}) | null): HostElement;
|
|
1470
|
+
createText(text: string): HostNode;
|
|
1471
|
+
createComment(text: string): HostNode;
|
|
1472
|
+
setText(node: HostNode, text: string): void;
|
|
1473
|
+
setElementText(node: HostElement, text: string): void;
|
|
1474
|
+
parentNode(node: HostNode): HostElement | null;
|
|
1475
|
+
nextSibling(node: HostNode): HostNode | null;
|
|
1476
|
+
querySelector?(selector: string): HostElement | null;
|
|
1477
|
+
setScopeId?(el: HostElement, id: string): void;
|
|
1478
|
+
cloneNode?(node: HostNode): HostNode;
|
|
1479
|
+
insertStaticContent?(content: string, parent: HostElement, anchor: HostNode | null, isSVG: boolean, start?: HostNode | null, end?: HostNode | null): [HostNode, HostNode];
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
export declare type RenderFunction = () => VNodeChild;
|
|
1483
|
+
|
|
1484
|
+
/**
|
|
1485
|
+
* v-for string
|
|
1486
|
+
* @private
|
|
1487
|
+
*/
|
|
1488
|
+
export declare function renderList(source: string, renderItem: (value: string, index: number) => VNodeChild): VNodeChild[];
|
|
1489
|
+
|
|
1490
|
+
/**
|
|
1491
|
+
* v-for number
|
|
1492
|
+
*/
|
|
1493
|
+
export declare function renderList(source: number, renderItem: (value: number, index: number) => VNodeChild): VNodeChild[];
|
|
1494
|
+
|
|
1495
|
+
/**
|
|
1496
|
+
* v-for array
|
|
1497
|
+
*/
|
|
1498
|
+
export declare function renderList<T>(source: T[], renderItem: (value: T, index: number) => VNodeChild): VNodeChild[];
|
|
1499
|
+
|
|
1500
|
+
/**
|
|
1501
|
+
* v-for iterable
|
|
1502
|
+
*/
|
|
1503
|
+
export declare function renderList<T>(source: Iterable<T>, renderItem: (value: T, index: number) => VNodeChild): VNodeChild[];
|
|
1504
|
+
|
|
1505
|
+
/**
|
|
1506
|
+
* v-for object
|
|
1507
|
+
*/
|
|
1508
|
+
export declare function renderList<T>(source: T, renderItem: <K extends keyof T>(value: T[K], key: K, index: number) => VNodeChild): VNodeChild[];
|
|
1509
|
+
|
|
1510
|
+
/**
|
|
1511
|
+
* Compiler runtime helper for rendering `<slot/>`
|
|
1512
|
+
* @private
|
|
1513
|
+
*/
|
|
1514
|
+
export declare function renderSlot(slots: Slots, name: string, props?: Data, fallback?: () => VNodeArrayChildren, noSlotted?: boolean): VNode;
|
|
1515
|
+
|
|
1516
|
+
declare type RequiredKeys<T> = {
|
|
1517
|
+
[K in keyof T]: T[K] extends {
|
|
1518
|
+
required: true;
|
|
1519
|
+
} | {
|
|
1520
|
+
default: any;
|
|
1521
|
+
} | BooleanConstructor | {
|
|
1522
|
+
type: BooleanConstructor;
|
|
1523
|
+
} ? T[K] extends {
|
|
1524
|
+
default: undefined | (() => undefined);
|
|
1525
|
+
} ? never : K : never;
|
|
1526
|
+
}[keyof T];
|
|
1527
|
+
|
|
1528
|
+
declare function rerender(id: string, newRender?: Function): void;
|
|
1529
|
+
|
|
1530
|
+
/**
|
|
1531
|
+
* @private
|
|
1532
|
+
*/
|
|
1533
|
+
export declare function resolveComponent(name: string, maybeSelfReference?: boolean): ConcreteComponent | string;
|
|
1534
|
+
|
|
1535
|
+
/**
|
|
1536
|
+
* @private
|
|
1537
|
+
*/
|
|
1538
|
+
export declare function resolveDirective(name: string): Directive | undefined;
|
|
1539
|
+
|
|
1540
|
+
/**
|
|
1541
|
+
* @private
|
|
1542
|
+
*/
|
|
1543
|
+
export declare function resolveDynamicComponent(component: unknown): VNodeTypes;
|
|
1544
|
+
|
|
1545
|
+
/* Excluded from this release type: resolveFilter */
|
|
1546
|
+
|
|
1547
|
+
/* Excluded from this release type: resolveFilter_2 */
|
|
1548
|
+
|
|
1549
|
+
export declare function resolveTransitionHooks(vnode: VNode, props: BaseTransitionProps<any>, state: TransitionState, instance: ComponentInternalInstance): TransitionHooks;
|
|
1550
|
+
|
|
1551
|
+
export declare type RootHydrateFunction = (vnode: VNode<Node, Element>, container: (Element | ShadowRoot) & {
|
|
1552
|
+
_vnode?: VNode;
|
|
1553
|
+
}) => void;
|
|
1554
|
+
|
|
1555
|
+
export declare type RootRenderFunction<HostElement = RendererElement> = (vnode: VNode | null, container: HostElement, isSVG?: boolean) => void;
|
|
1556
|
+
|
|
1557
|
+
/**
|
|
1558
|
+
* Subset of compiler options that makes sense for the runtime.
|
|
1559
|
+
*/
|
|
1560
|
+
export declare interface RuntimeCompilerOptions {
|
|
1561
|
+
isCustomElement?: (tag: string) => boolean;
|
|
1562
|
+
whitespace?: 'preserve' | 'condense';
|
|
1563
|
+
comments?: boolean;
|
|
1564
|
+
delimiters?: [string, string];
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1567
|
+
declare interface SchedulerJob extends Function {
|
|
1568
|
+
id?: number;
|
|
1569
|
+
active?: boolean;
|
|
1570
|
+
computed?: boolean;
|
|
1571
|
+
/**
|
|
1572
|
+
* Indicates whether the effect is allowed to recursively trigger itself
|
|
1573
|
+
* when managed by the scheduler.
|
|
1574
|
+
*
|
|
1575
|
+
* By default, a job cannot trigger itself because some built-in method calls,
|
|
1576
|
+
* e.g. Array.prototype.push actually performs reads as well (#1740) which
|
|
1577
|
+
* can lead to confusing infinite loops.
|
|
1578
|
+
* The allowed cases are component update functions and watch callbacks.
|
|
1579
|
+
* Component update functions may update child component props, which in turn
|
|
1580
|
+
* trigger flush: "pre" watch callbacks that mutates state that the parent
|
|
1581
|
+
* relies on (#1801). Watch callbacks doesn't track its dependencies so if it
|
|
1582
|
+
* triggers itself again, it's likely intentional and it is the user's
|
|
1583
|
+
* responsibility to perform recursive state mutation that eventually
|
|
1584
|
+
* stabilizes (#1727).
|
|
1585
|
+
*/
|
|
1586
|
+
allowRecurse?: boolean;
|
|
1587
|
+
/**
|
|
1588
|
+
* Attached by renderer.ts when setting up a component's render effect
|
|
1589
|
+
* Used to obtain component information when reporting max recursive updates.
|
|
1590
|
+
* dev only.
|
|
1591
|
+
*/
|
|
1592
|
+
ownerInstance?: ComponentInternalInstance;
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
declare type SchedulerJobs = SchedulerJob | SchedulerJob[];
|
|
1596
|
+
|
|
1597
|
+
/**
|
|
1598
|
+
* Block tracking sometimes needs to be disabled, for example during the
|
|
1599
|
+
* creation of a tree that needs to be cached by v-once. The compiler generates
|
|
1600
|
+
* code like this:
|
|
1601
|
+
*
|
|
1602
|
+
* ``` js
|
|
1603
|
+
* _cache[1] || (
|
|
1604
|
+
* setBlockTracking(-1),
|
|
1605
|
+
* _cache[1] = createVNode(...),
|
|
1606
|
+
* setBlockTracking(1),
|
|
1607
|
+
* _cache[1]
|
|
1608
|
+
* )
|
|
1609
|
+
* ```
|
|
1610
|
+
*
|
|
1611
|
+
* @private
|
|
1612
|
+
*/
|
|
1613
|
+
export declare function setBlockTracking(value: number): void;
|
|
1614
|
+
|
|
1615
|
+
/**
|
|
1616
|
+
* Note: rendering calls maybe nested. The function returns the parent rendering
|
|
1617
|
+
* instance if present, which should be restored after the render is done:
|
|
1618
|
+
*
|
|
1619
|
+
* ```js
|
|
1620
|
+
* const prev = setCurrentRenderingInstance(i)
|
|
1621
|
+
* // ...render
|
|
1622
|
+
* setCurrentRenderingInstance(prev)
|
|
1623
|
+
* ```
|
|
1624
|
+
*/
|
|
1625
|
+
declare function setCurrentRenderingInstance(instance: ComponentInternalInstance | null): ComponentInternalInstance | null;
|
|
1626
|
+
|
|
1627
|
+
export declare function setDevtoolsHook(hook: DevtoolsHook, target: any): void;
|
|
1628
|
+
|
|
1629
|
+
export declare function setTransitionHooks(vnode: VNode, hooks: TransitionHooks): void;
|
|
1630
|
+
|
|
1631
|
+
declare function setupComponent(instance: ComponentInternalInstance, isSSR?: boolean): Promise<void> | undefined;
|
|
1632
|
+
|
|
1633
|
+
export declare interface SetupContext<E = EmitsOptions> {
|
|
1634
|
+
attrs: Data;
|
|
1635
|
+
slots: Slots;
|
|
1636
|
+
emit: EmitFn<E>;
|
|
1637
|
+
expose: (exposed?: Record<string, any>) => void;
|
|
1638
|
+
}
|
|
1639
|
+
|
|
1640
|
+
declare type SetupRenderEffectFn = (instance: ComponentInternalInstance, initialVNode: VNode, container: RendererElement, anchor: RendererNode | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, optimized: boolean) => void;
|
|
1641
|
+
|
|
1642
|
+
export { ShallowReactive }
|
|
1643
|
+
|
|
1644
|
+
export { shallowReactive }
|
|
1645
|
+
|
|
1646
|
+
export { shallowReadonly }
|
|
1647
|
+
|
|
1648
|
+
export { ShallowRef }
|
|
1649
|
+
|
|
1650
|
+
export { shallowRef }
|
|
1651
|
+
|
|
1652
|
+
export { ShallowUnwrapRef }
|
|
1653
|
+
|
|
1654
|
+
export declare type Slot = (...args: any[]) => VNode[];
|
|
1655
|
+
|
|
1656
|
+
export declare type Slots = Readonly<InternalSlots>;
|
|
1657
|
+
|
|
1658
|
+
/**
|
|
1659
|
+
* Use this for features where legacy usage is still possible, but will likely
|
|
1660
|
+
* lead to runtime error if compat is disabled. (warn in all cases)
|
|
1661
|
+
*/
|
|
1662
|
+
declare function softAssertCompatEnabled(key: DeprecationTypes, instance: ComponentInternalInstance | null, ...args: any[]): boolean;
|
|
1663
|
+
|
|
1664
|
+
export declare const ssrContextKey: unique symbol;
|
|
1665
|
+
|
|
1666
|
+
declare type SSRDirectiveHook = (binding: DirectiveBinding, vnode: VNode) => Data | undefined;
|
|
1667
|
+
|
|
1668
|
+
/* Excluded from this release type: ssrUtils */
|
|
1669
|
+
|
|
1670
|
+
export declare const Static: unique symbol;
|
|
1671
|
+
|
|
1672
|
+
export { stop_2 as stop }
|
|
1673
|
+
|
|
1674
|
+
export declare const Suspense: {
|
|
1675
|
+
new (): {
|
|
1676
|
+
$props: VNodeProps & SuspenseProps;
|
|
1677
|
+
};
|
|
1678
|
+
__isSuspense: true;
|
|
1679
|
+
};
|
|
1680
|
+
|
|
1681
|
+
export declare interface SuspenseBoundary {
|
|
1682
|
+
vnode: VNode<RendererNode, RendererElement, SuspenseProps>;
|
|
1683
|
+
parent: SuspenseBoundary | null;
|
|
1684
|
+
parentComponent: ComponentInternalInstance | null;
|
|
1685
|
+
isSVG: boolean;
|
|
1686
|
+
container: RendererElement;
|
|
1687
|
+
hiddenContainer: RendererElement;
|
|
1688
|
+
anchor: RendererNode | null;
|
|
1689
|
+
activeBranch: VNode | null;
|
|
1690
|
+
pendingBranch: VNode | null;
|
|
1691
|
+
deps: number;
|
|
1692
|
+
pendingId: number;
|
|
1693
|
+
timeout: number;
|
|
1694
|
+
isInFallback: boolean;
|
|
1695
|
+
isHydrating: boolean;
|
|
1696
|
+
isUnmounted: boolean;
|
|
1697
|
+
effects: Function[];
|
|
1698
|
+
resolve(force?: boolean): void;
|
|
1699
|
+
fallback(fallbackVNode: VNode): void;
|
|
1700
|
+
move(container: RendererElement, anchor: RendererNode | null, type: MoveType): void;
|
|
1701
|
+
next(): RendererNode | null;
|
|
1702
|
+
registerDep(instance: ComponentInternalInstance, setupRenderEffect: SetupRenderEffectFn): void;
|
|
1703
|
+
unmount(parentSuspense: SuspenseBoundary | null, doRemove?: boolean): void;
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
declare const SuspenseImpl: {
|
|
1707
|
+
name: string;
|
|
1708
|
+
__isSuspense: boolean;
|
|
1709
|
+
process(n1: VNode | null, n2: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null, optimized: boolean, rendererInternals: RendererInternals): void;
|
|
1710
|
+
hydrate: typeof hydrateSuspense;
|
|
1711
|
+
create: typeof createSuspenseBoundary;
|
|
1712
|
+
normalize: typeof normalizeSuspenseChildren;
|
|
1713
|
+
};
|
|
1714
|
+
|
|
1715
|
+
export declare interface SuspenseProps {
|
|
1716
|
+
onResolve?: () => void;
|
|
1717
|
+
onPending?: () => void;
|
|
1718
|
+
onFallback?: () => void;
|
|
1719
|
+
timeout?: string | number;
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
export declare const Teleport: {
|
|
1723
|
+
new (): {
|
|
1724
|
+
$props: VNodeProps & TeleportProps;
|
|
1725
|
+
};
|
|
1726
|
+
__isTeleport: true;
|
|
1727
|
+
};
|
|
1728
|
+
|
|
1729
|
+
declare const TeleportImpl: {
|
|
1730
|
+
__isTeleport: boolean;
|
|
1731
|
+
process(n1: TeleportVNode | null, n2: TeleportVNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null, optimized: boolean, internals: RendererInternals): void;
|
|
1732
|
+
remove(vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, optimized: boolean, { um: unmount, o: { remove: hostRemove } }: RendererInternals, doRemove: Boolean): void;
|
|
1733
|
+
move: typeof moveTeleport;
|
|
1734
|
+
hydrate: typeof hydrateTeleport;
|
|
1735
|
+
};
|
|
1736
|
+
|
|
1737
|
+
declare const enum TeleportMoveTypes {
|
|
1738
|
+
TARGET_CHANGE = 0,
|
|
1739
|
+
TOGGLE = 1,
|
|
1740
|
+
REORDER = 2
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
export declare interface TeleportProps {
|
|
1744
|
+
to: string | RendererElement | null | undefined;
|
|
1745
|
+
disabled?: boolean;
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1748
|
+
declare type TeleportVNode = VNode<RendererNode, RendererElement, TeleportProps>;
|
|
1749
|
+
|
|
1750
|
+
declare const Text_2: unique symbol;
|
|
1751
|
+
export { Text_2 as Text }
|
|
1752
|
+
|
|
1753
|
+
export { toDisplayString }
|
|
1754
|
+
|
|
1755
|
+
export { toHandlerKey }
|
|
1756
|
+
|
|
1757
|
+
/**
|
|
1758
|
+
* For prefixing keys in v-on="obj" with "on"
|
|
1759
|
+
* @private
|
|
1760
|
+
*/
|
|
1761
|
+
export declare function toHandlers(obj: Record<string, any>): Record<string, any>;
|
|
1762
|
+
|
|
1763
|
+
export { toRaw }
|
|
1764
|
+
|
|
1765
|
+
export { ToRef }
|
|
1766
|
+
|
|
1767
|
+
export { toRef }
|
|
1768
|
+
|
|
1769
|
+
export { ToRefs }
|
|
1770
|
+
|
|
1771
|
+
export { toRefs }
|
|
1772
|
+
|
|
1773
|
+
export { TrackOpTypes }
|
|
1774
|
+
|
|
1775
|
+
/**
|
|
1776
|
+
* Internal API for registering an arguments transform for createVNode
|
|
1777
|
+
* used for creating stubs in the test-utils
|
|
1778
|
+
* It is *internal* but needs to be exposed for test-utils to pick up proper
|
|
1779
|
+
* typings
|
|
1780
|
+
*/
|
|
1781
|
+
export declare function transformVNodeArgs(transformer?: typeof vnodeArgsTransformer): void;
|
|
1782
|
+
|
|
1783
|
+
export declare interface TransitionHooks<HostElement extends RendererElement = RendererElement> {
|
|
1784
|
+
mode: BaseTransitionProps['mode'];
|
|
1785
|
+
persisted: boolean;
|
|
1786
|
+
beforeEnter(el: HostElement): void;
|
|
1787
|
+
enter(el: HostElement): void;
|
|
1788
|
+
leave(el: HostElement, remove: () => void): void;
|
|
1789
|
+
clone(vnode: VNode): TransitionHooks<HostElement>;
|
|
1790
|
+
afterLeave?(): void;
|
|
1791
|
+
delayLeave?(el: HostElement, earlyRemove: () => void, delayedLeave: () => void): void;
|
|
1792
|
+
delayedLeave?(): void;
|
|
1793
|
+
}
|
|
1794
|
+
|
|
1795
|
+
export declare interface TransitionState {
|
|
1796
|
+
isMounted: boolean;
|
|
1797
|
+
isLeaving: boolean;
|
|
1798
|
+
isUnmounting: boolean;
|
|
1799
|
+
leavingVNodes: Map<any, Record<string, VNode>>;
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
export { TriggerOpTypes }
|
|
1803
|
+
|
|
1804
|
+
export { triggerRef }
|
|
1805
|
+
|
|
1806
|
+
declare type UnmountChildrenFn = (children: VNode[], parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, doRemove?: boolean, optimized?: boolean, start?: number) => void;
|
|
1807
|
+
|
|
1808
|
+
declare type UnmountFn = (vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, doRemove?: boolean, optimized?: boolean) => void;
|
|
1809
|
+
|
|
1810
|
+
export { unref }
|
|
1811
|
+
|
|
1812
|
+
declare type UnwrapMixinsType<T, Type extends OptionTypesKeys> = T extends OptionTypesType ? T[Type] : never;
|
|
1813
|
+
|
|
1814
|
+
export { UnwrapNestedRefs }
|
|
1815
|
+
|
|
1816
|
+
export { UnwrapRef }
|
|
1817
|
+
|
|
1818
|
+
export declare function useAttrs(): SetupContext['attrs'];
|
|
1819
|
+
|
|
1820
|
+
export declare function useSlots(): SetupContext['slots'];
|
|
1821
|
+
|
|
1822
|
+
export declare const useSSRContext: <T = Record<string, any>>() => T | undefined;
|
|
1823
|
+
|
|
1824
|
+
export declare function useTransitionState(): TransitionState;
|
|
1825
|
+
|
|
1826
|
+
export declare const version: string;
|
|
1827
|
+
|
|
1828
|
+
export declare interface VNode<HostNode = RendererNode, HostElement = RendererElement, ExtraProps = {
|
|
1829
|
+
[key: string]: any;
|
|
1830
|
+
}> {
|
|
1831
|
+
/* Excluded from this release type: __v_isVNode */
|
|
1832
|
+
/* Excluded from this release type: __v_skip */
|
|
1833
|
+
type: VNodeTypes;
|
|
1834
|
+
props: (VNodeProps & ExtraProps) | null;
|
|
1835
|
+
key: string | number | symbol | null;
|
|
1836
|
+
ref: VNodeNormalizedRef | null;
|
|
1837
|
+
/**
|
|
1838
|
+
* SFC only. This is assigned on vnode creation using currentScopeId
|
|
1839
|
+
* which is set alongside currentRenderingInstance.
|
|
1840
|
+
*/
|
|
1841
|
+
scopeId: string | null;
|
|
1842
|
+
/* Excluded from this release type: slotScopeIds */
|
|
1843
|
+
children: VNodeNormalizedChildren;
|
|
1844
|
+
component: ComponentInternalInstance | null;
|
|
1845
|
+
dirs: DirectiveBinding[] | null;
|
|
1846
|
+
transition: TransitionHooks<HostElement> | null;
|
|
1847
|
+
el: HostNode | null;
|
|
1848
|
+
anchor: HostNode | null;
|
|
1849
|
+
target: HostElement | null;
|
|
1850
|
+
targetAnchor: HostNode | null;
|
|
1851
|
+
/* Excluded from this release type: staticCount */
|
|
1852
|
+
suspense: SuspenseBoundary | null;
|
|
1853
|
+
/* Excluded from this release type: ssContent */
|
|
1854
|
+
/* Excluded from this release type: ssFallback */
|
|
1855
|
+
shapeFlag: number;
|
|
1856
|
+
patchFlag: number;
|
|
1857
|
+
/* Excluded from this release type: dynamicProps */
|
|
1858
|
+
/* Excluded from this release type: dynamicChildren */
|
|
1859
|
+
appContext: AppContext | null;
|
|
1860
|
+
/* Excluded from this release type: memo */
|
|
1861
|
+
/* Excluded from this release type: isCompatRoot */
|
|
1862
|
+
/* Excluded from this release type: ce */
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1865
|
+
declare let vnodeArgsTransformer: ((args: Parameters<typeof _createVNode>, instance: ComponentInternalInstance | null) => Parameters<typeof _createVNode>) | undefined;
|
|
1866
|
+
|
|
1867
|
+
export declare type VNodeArrayChildren = Array<VNodeArrayChildren | VNodeChildAtom>;
|
|
1868
|
+
|
|
1869
|
+
export declare type VNodeChild = VNodeChildAtom | VNodeArrayChildren;
|
|
1870
|
+
|
|
1871
|
+
declare type VNodeChildAtom = VNode | string | number | boolean | null | undefined | void;
|
|
1872
|
+
|
|
1873
|
+
declare type VNodeMountHook = (vnode: VNode) => void;
|
|
1874
|
+
|
|
1875
|
+
export declare type VNodeNormalizedChildren = string | VNodeArrayChildren | RawSlots | null;
|
|
1876
|
+
|
|
1877
|
+
declare type VNodeNormalizedRef = VNodeNormalizedRefAtom | VNodeNormalizedRefAtom[];
|
|
1878
|
+
|
|
1879
|
+
declare type VNodeNormalizedRefAtom = {
|
|
1880
|
+
i: ComponentInternalInstance;
|
|
1881
|
+
r: VNodeRef;
|
|
1882
|
+
k?: string;
|
|
1883
|
+
f?: boolean;
|
|
1884
|
+
};
|
|
1885
|
+
|
|
1886
|
+
export declare type VNodeProps = {
|
|
1887
|
+
key?: string | number | symbol;
|
|
1888
|
+
ref?: VNodeRef;
|
|
1889
|
+
ref_for?: boolean;
|
|
1890
|
+
ref_key?: string;
|
|
1891
|
+
onVnodeBeforeMount?: VNodeMountHook | VNodeMountHook[];
|
|
1892
|
+
onVnodeMounted?: VNodeMountHook | VNodeMountHook[];
|
|
1893
|
+
onVnodeBeforeUpdate?: VNodeUpdateHook | VNodeUpdateHook[];
|
|
1894
|
+
onVnodeUpdated?: VNodeUpdateHook | VNodeUpdateHook[];
|
|
1895
|
+
onVnodeBeforeUnmount?: VNodeMountHook | VNodeMountHook[];
|
|
1896
|
+
onVnodeUnmounted?: VNodeMountHook | VNodeMountHook[];
|
|
1897
|
+
};
|
|
1898
|
+
|
|
1899
|
+
export declare type VNodeRef = string | Ref | ((ref: Element | ComponentPublicInstance | null, refs: Record<string, any>) => void);
|
|
1900
|
+
|
|
1901
|
+
export declare type VNodeTypes = string | VNode | Component | typeof Text_2 | typeof Static | typeof Comment_2 | typeof Fragment | typeof TeleportImpl | typeof SuspenseImpl;
|
|
1902
|
+
|
|
1903
|
+
declare type VNodeUpdateHook = (vnode: VNode, oldVNode: VNode) => void;
|
|
1904
|
+
|
|
1905
|
+
export declare function warn(msg: string, ...args: any[]): void;
|
|
1906
|
+
|
|
1907
|
+
declare function warnDeprecation(key: DeprecationTypes, instance: ComponentInternalInstance | null, ...args: any[]): void;
|
|
1908
|
+
|
|
1909
|
+
export declare function watch<T extends MultiWatchSources, Immediate extends Readonly<boolean> = false>(sources: [...T], cb: WatchCallback<MapSources<T, false>, MapSources<T, Immediate>>, options?: WatchOptions<Immediate>): WatchStopHandle;
|
|
1910
|
+
|
|
1911
|
+
export declare function watch<T extends Readonly<MultiWatchSources>, Immediate extends Readonly<boolean> = false>(source: T, cb: WatchCallback<MapSources<T, false>, MapSources<T, Immediate>>, options?: WatchOptions<Immediate>): WatchStopHandle;
|
|
1912
|
+
|
|
1913
|
+
export declare function watch<T, Immediate extends Readonly<boolean> = false>(source: WatchSource<T>, cb: WatchCallback<T, Immediate extends true ? T | undefined : T>, options?: WatchOptions<Immediate>): WatchStopHandle;
|
|
1914
|
+
|
|
1915
|
+
export declare function watch<T extends object, Immediate extends Readonly<boolean> = false>(source: T, cb: WatchCallback<T, Immediate extends true ? T | undefined : T>, options?: WatchOptions<Immediate>): WatchStopHandle;
|
|
1916
|
+
|
|
1917
|
+
export declare type WatchCallback<V = any, OV = any> = (value: V, oldValue: OV, onCleanup: OnCleanup) => any;
|
|
1918
|
+
|
|
1919
|
+
export declare type WatchEffect = (onCleanup: OnCleanup) => void;
|
|
1920
|
+
|
|
1921
|
+
export declare function watchEffect(effect: WatchEffect, options?: WatchOptionsBase): WatchStopHandle;
|
|
1922
|
+
|
|
1923
|
+
declare type WatchOptionItem = string | WatchCallback | ObjectWatchOptionItem;
|
|
1924
|
+
|
|
1925
|
+
export declare interface WatchOptions<Immediate = boolean> extends WatchOptionsBase {
|
|
1926
|
+
immediate?: Immediate;
|
|
1927
|
+
deep?: boolean;
|
|
1928
|
+
}
|
|
1929
|
+
|
|
1930
|
+
export declare interface WatchOptionsBase extends DebuggerOptions {
|
|
1931
|
+
flush?: 'pre' | 'post' | 'sync';
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
export declare function watchPostEffect(effect: WatchEffect, options?: DebuggerOptions): WatchStopHandle;
|
|
1935
|
+
|
|
1936
|
+
export declare type WatchSource<T = any> = Ref<T> | ComputedRef<T> | (() => T);
|
|
1937
|
+
|
|
1938
|
+
export declare type WatchStopHandle = () => void;
|
|
1939
|
+
|
|
1940
|
+
export declare function watchSyncEffect(effect: WatchEffect, options?: DebuggerOptions): WatchStopHandle;
|
|
1941
|
+
|
|
1942
|
+
/* Excluded from this release type: withAsyncContext */
|
|
1943
|
+
|
|
1944
|
+
/**
|
|
1945
|
+
* Wrap a slot function to memoize current rendering instance
|
|
1946
|
+
* @private compiler helper
|
|
1947
|
+
*/
|
|
1948
|
+
export declare function withCtx(fn: Function, ctx?: ComponentInternalInstance | null, isNonScopedSlot?: boolean): Function;
|
|
1949
|
+
|
|
1950
|
+
/**
|
|
1951
|
+
* Vue `<script setup>` compiler macro for providing props default values when
|
|
1952
|
+
* using type-based `defineProps` declaration.
|
|
1953
|
+
*
|
|
1954
|
+
* Example usage:
|
|
1955
|
+
* ```ts
|
|
1956
|
+
* withDefaults(defineProps<{
|
|
1957
|
+
* size?: number
|
|
1958
|
+
* labels?: string[]
|
|
1959
|
+
* }>(), {
|
|
1960
|
+
* size: 3,
|
|
1961
|
+
* labels: () => ['default label']
|
|
1962
|
+
* })
|
|
1963
|
+
* ```
|
|
1964
|
+
*
|
|
1965
|
+
* This is only usable inside `<script setup>`, is compiled away in the output
|
|
1966
|
+
* and should **not** be actually called at runtime.
|
|
1967
|
+
*/
|
|
1968
|
+
export declare function withDefaults<Props, Defaults extends InferDefaults<Props>>(props: Props, defaults: Defaults): PropsWithDefaults<Props, Defaults>;
|
|
1969
|
+
|
|
1970
|
+
/**
|
|
1971
|
+
* Adds directives to a VNode.
|
|
1972
|
+
*/
|
|
1973
|
+
export declare function withDirectives<T extends VNode>(vnode: T, directives: DirectiveArguments): T;
|
|
1974
|
+
|
|
1975
|
+
export declare function withMemo(memo: any[], render: () => VNode<any, any>, cache: any[], index: number): VNode<any, any, {
|
|
1976
|
+
[key: string]: any;
|
|
1977
|
+
}>;
|
|
1978
|
+
|
|
1979
|
+
/**
|
|
1980
|
+
* Only for backwards compat
|
|
1981
|
+
* @private
|
|
1982
|
+
*/
|
|
1983
|
+
export declare const withScopeId: (_id: string) => typeof withCtx;
|
|
1984
|
+
|
|
1985
|
+
export { WritableComputedOptions }
|
|
1986
|
+
|
|
1987
|
+
export { WritableComputedRef }
|
|
1988
|
+
|
|
1989
|
+
export { }
|
|
1990
|
+
|
|
1991
|
+
// Note: this file is auto concatenated to the end of the bundled d.ts during
|
|
1992
|
+
// build.
|
|
1993
|
+
|
|
1994
|
+
declare module '@vue/reactivity' {
|
|
1995
|
+
export interface RefUnwrapBailTypes {
|
|
1996
|
+
runtimeCoreBailTypes:
|
|
1997
|
+
| VNode
|
|
1998
|
+
| {
|
|
1999
|
+
// directly bailing on ComponentPublicInstance results in recursion
|
|
2000
|
+
// so we use this as a bail hint
|
|
2001
|
+
$: ComponentInternalInstance
|
|
2002
|
+
}
|
|
2003
|
+
}
|
|
2004
|
+
}
|
|
2005
|
+
|
|
2006
|
+
// Note: this file is auto concatenated to the end of the bundled d.ts during
|
|
2007
|
+
// build.
|
|
2008
|
+
type _defineProps = typeof defineProps
|
|
2009
|
+
type _defineEmits = typeof defineEmits
|
|
2010
|
+
type _defineExpose = typeof defineExpose
|
|
2011
|
+
type _withDefaults = typeof withDefaults
|
|
2012
|
+
|
|
2013
|
+
declare global {
|
|
2014
|
+
const defineProps: _defineProps
|
|
2015
|
+
const defineEmits: _defineEmits
|
|
2016
|
+
const defineExpose: _defineExpose
|
|
2017
|
+
const withDefaults: _withDefaults
|
|
2018
|
+
}
|