ZHAO Jinxiang
27eed829cc
fix(types): vue 3 directive type compatibility ( #12792 )
2022-10-10 23:51:05 -04:00
gu
89a6b5e865
feat(types): support mixins inference for new Vue() ( #12737 )
...
close #12730
2022-08-18 03:56:37 -04:00
jf-paradis
00458cd38d
fix(types): Make SetupBindings optional on ExtendedVue and CombinedVueInstance ( #12727 )
...
fix #12726
fix #12717
2022-08-08 20:50:53 -04:00
Evan You
fabc1cf89f
fix(types): avoid circular type inference between v2 and v3 instance types
...
fix #12683
2022-07-22 10:06:43 +08:00
Nathan Shively-Sanders
46ec648694
fix(types): vue.d.ts should use relative import to v3-component-public-instance ( #12668 )
...
fix #12666
2022-07-16 08:21:07 -04:00
Nikhil Verma
fffbb9e856
fix(types): $refs can also contain ComponentPublicInstance ( #12659 )
2022-07-15 05:05:04 -04:00
Evan You
52a59790a5
fix(types): fix $children and $root instance types
...
fix #12655
2022-07-15 16:52:27 +08:00
Evan You
005e52d0b6
fix(types): support Vue interface augmentations in defineComponent
...
fix #12642
2022-07-13 10:44:57 +08:00
Evan You
f8de4ca9d4
fix(types): fix missing instance properties on defineComponent this
...
ref https://github.com/vuejs/vue/issues/12628#issuecomment-1177258223
2022-07-08 15:39:16 +08:00
Evan You
26ff4bc0ed
fix(types): global component registration type compat w/ defineComponent
...
fix #12622
2022-07-08 10:39:36 +08:00
Evan You
65531f5803
fix(types): fix instance type inference for setup() with no return value
...
fix #12568
2022-06-22 09:44:41 +08:00
Evan You
93214586aa
types: types for setup() + format types
2022-05-27 17:26:55 +08:00
WORMSS
2b93e86aa1
fix(types): make $refs undefined possible ( #11112 )
...
Added undefined as a return type of $refs as it was quite hard to convince typescript that something COULD be undefined if you type in a ref that doesn't exist,
I also changed the two array statements from `Element[] | Vue[]` to `(Element | Vue)[]` because it's not guaranteed that they are ALL Elements or they are ALL Vue components. (Very likely, yes, but not always)
For example
```html
<template v-for="(a, index) of b">
<div v-if="index % 2 === 0" ref="test"></div>
<my-component v-else ref="test"></my-component>
</template>
```
2021-04-16 17:59:37 +02:00
Flo Edelmann
e0274e4320
fix(types): add types for Vue.util.warn function ( #11964 )
...
See https://github.com/vuejs/vue/blob/v2.6.12/src/core/util/debug.js#L18-L26
2021-03-30 11:46:53 +02:00
DSha
731e4d0ebc
types: use normalized type for RenderContext.scopedSlots
( #9624 )
...
fix #9616
2019-03-05 16:46:56 -05:00
Kael
241eea19a6
fix(types): allow scoped slots to return a single VNode ( #9563 )
2019-02-28 17:03:28 -05:00
Gcaufy
f33301619d
fix(types): update this for nextTick api ( #9541 )
2019-02-28 16:54:07 -05:00
Sebastian Krüger
54e6a121e9
fix(types): add Vue.version to types ( #9431 )
2019-02-05 22:20:03 -05:00
Evan You
fe2b27ffb9
types: typing for Vue.observable
2019-01-10 22:44:55 -05:00
Evan You
3504d7f6d6
refactor: better solution for async edge case.
...
Revert event delegation related changes.
2019-01-10 14:21:31 -05:00
Evan You
3be1c5d67e
feat(config): expose config.useEventDelegation and default to false
2019-01-09 20:09:50 -05:00
Herrington Darkholme
e06d2af276
fix(types): avoid this
in VueConstructor signature ( #9173 )
...
https://github.com/vuejs/vue-class-component/issues/294#issuecomment-445526936
2018-12-10 11:53:56 -05:00
James George
b0ccb86183
chore: rephrase comment ( #9100 )
2018-12-01 00:23:58 -05:00
hugoazevedosoares
97086f3658
fix(types): fix vm.$once argument type ( #8995 )
...
vm.$once should accept an event or array of events as first parameter.
fix #8983
2018-11-30 23:41:27 -05:00
thenickname
76443803e8
Typings: Improve $slots and $scopedSlots type to prevent unchecked access to undefined ( #8946 )
...
* fix(types): Declare $scopedSlots as potentially undefined to enable stricter TS checks
* fix(types): Fix tests
* fix(types): declare $slots option as potentially undefined
declare $slots option as potentially undefined to enable stricter TS checks
2018-11-30 23:31:45 -05:00
Kaoru Hagihara
3cd4af4af0
fix(types): support typing $el as SVGElement ( #8809 )
2018-11-30 23:30:31 -05:00
nel215
0ba79e2588
fix(types): accept number
type as key on Vue.set/delete ( #8707 ) ( #8709 )
2018-11-30 23:28:52 -05:00
狼族小狈
c711ec189a
fix(types): support chain call for Vue.use and Vue.mixin ( #8595 )
2018-11-30 23:27:24 -05:00
Edd Yerburgh
c94482743c
feat: add async option ( #8240 )
...
This is an option intended only for testing purposes, and should not be used in
application code.
2018-08-16 16:26:02 -04:00
Herrington Darkholme
144bf5a99e
fix(types): prefer normal component over functional one ( #7687 )
2018-03-08 13:55:52 -05:00
Wenlu Wang
c0d516c283
feat(types): extract VueConfiguration type for easy expansion ( #7273 ) ( #7274 )
...
fix #7273
2017-12-19 09:34:35 -05:00
Zen
d2e1d49c41
fix(types): use object and string instead of Object and String ( #7126 )
2017-11-27 09:30:58 -05:00
Herrington Darkholme
a71e653108
fix(types): bump ts version and fix typing bugs ( #7135 )
2017-11-27 09:28:38 -05:00
Herrington Darkholme
98ea0a3b48
fix(types): improve typing for better completion ( #6886 )
2017-10-25 06:45:15 +02:00
Herrington Darkholme
9caed00d20
fix(typing): relax $options type for TS2.6+ ( #6819 )
2017-10-15 14:26:08 -04:00
Evan You
1be48d0a13
types: update types for config.ignoredElements
2017-10-12 23:43:57 -04:00
Herrington Darkholme
db138e2254
feat(types): further improve Vue type declarations for canonical usage ( #6391 )
2017-10-06 14:45:14 -04:00
Alexander Eden
64e3943842
types: extend keyCodes type declaration to allow array of numbers ( #6745 )
2017-10-06 10:32:16 -04:00
Herrington Darkholme
38d52182bf
fix(types): allow variadic plugin use ( #6363 )
...
fix #6357
2017-09-05 16:02:38 -04:00
赵鑫晖
59dbd4a414
fix: ensure $attrs and $listeners are always objects ( #6441 )
...
fix #6263
2017-08-29 22:59:39 +02:00
Evan You
61187596b9
feat(core): $attrs, $listeners & inheritAttrs option
...
New features intended for easier creation of higher-order components.
- New instance properties: $attrs & $listeners. these are essentially aliases
of $vnode.data.attrs and $vnode.data.on, but are reactive.
- New component option: inheritAttrs. Turns off the default behavior where
parent scope non-prop bindings are automatically inherited on component root
as attributes.
close #5983 .
2017-07-11 22:38:09 +08:00
Evan You
1b7ddd7a35
feat(types): expose $vnode
2017-07-11 16:46:54 +08:00
Luke Bennett
9831b403cf
Add warnHandler to allow users to set a custom warn callback, similar to errorHandler ( #5883 )
2017-06-14 21:37:26 +08:00
Melvin Lee
92d61922e9
Add TypeScript definition for ssrContext ( #5654 )
2017-05-12 10:21:25 +08:00
Async0x42
1288386722
Support Vue.delete(arr, index) in TypeScript definitions ( #5508 )
...
* add a variation of 'delete' to typesript typings, added in 2.2+
* add typescript typings test for Vue.delete(arr, index)
2017-04-25 12:18:26 +08:00
Bojan
1b38a261c5
support multi event ( #5056 )
2017-03-03 11:51:57 +08:00
Evan You
73c5614740
update types for new features
2017-02-21 22:35:50 -05:00
kingwl
8bb6c2bdaa
support $on multi event ( #4860 )
2017-02-15 18:39:53 -05:00
Alexander Sheboltaev
ebe27295df
typings: type-checking WatchHandler -- refining
2017-02-14 13:24:21 -05:00
Alexander Sheboltaev
c662fe09c7
typings: type-checking WatchHandler
...
Makes watch handler argument to be typechecked when the expression is set
as a function.
2017-02-14 13:24:21 -05:00