Commit Graph

89 Commits

Author SHA1 Message Date
Evan You
dbc0582587 feat: dynamic directive arguments for v-on, v-bind and custom directives (#9373) 2019-01-25 23:22:44 -05:00
Evan You
42fdf3f837 refactor: ssrPrefetch -> serverPrefetch for more consistent naming 2019-01-18 16:43:17 -05:00
Evan You
0cf6aaddb5 types: type sync for 2.6 features 2019-01-15 12:38:58 -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
Eduardo San Martin Morote
fb6aa06090 feat(functional): add scopedSlots to context in functional components (#7941) 2019-01-09 16:18:14 -05:00
Guillaume Chau
d7a533d6f8 feat(ssr): ssrPrefetch option + context.rendered hook (#9017) 2018-12-20 15:26:12 -05:00
Ferdy Budhidharma
57910723c6 feat(types): add Prop to main type declaration file (#6856)
close #6850
2018-12-12 12:24:41 -05:00
Kael
d780dd2e2a fix(types): accept primatives and falsy values in createElement children (#9154)
fixes #8498
2018-12-10 18:36:41 -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
Timur Kiyui
dfaf9e2436 fix(types): type support for advanced async components (#8438) 2018-12-05 18:00:56 -05:00
Kael
448ba65d2b fix(types): correct scopedSlot types (#9131)
see #8946
2018-12-03 20:31:39 -05:00
James George
b0ccb86183 chore: rephrase comment (#9100) 2018-12-01 00:23:58 -05:00
Julian Rüth
f43ae6d151 chore(typo): fix typo (#9085) 2018-11-30 23:58: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
st-sloth
ac217d2472 fix(types): fix renderErrorarguments type (#8636)
fix #8635
2018-11-30 23:28:29 -05:00
狼族小狈
c711ec189a fix(types): support chain call for Vue.use and Vue.mixin (#8595) 2018-11-30 23:27:24 -05:00
Kael
bfd722bb5d types: add refInFor to VNodeData (#8229) 2018-10-24 13:05:15 -04:00
Eduardo San Martin Morote
496635e7c9 types: add model option to functional components (#8212)
Closes #8210
2018-10-24 13:03:48 -04:00
Zev Goldstein
bf2e2ed159 types: allow functional components to return multiple VNodes (#8192)
close #8191
2018-10-24 13:03:29 -04:00
Kael
99a51b452f fix(types): make VNodeDirective properties optional, fix #8013 (#8003) 2018-10-22 16:09:23 -04:00
katashin
a9eb198413 fix(types): relax the return type of props default option (#8537) 2018-09-17 22:33:58 -04: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
Ryan Cavanaugh
49385e1efa types: add UMD global declaration to index.d.ts (#7868)
Users using Vue from e.g. the CDN might be using the global `.Vue` without importing the module.

See https://www.typescriptlang.org/docs/handbook/modules.html for details on the syntax
2018-03-22 09:58:04 -04:00
Herrington Darkholme
144bf5a99e fix(types): prefer normal component over functional one (#7687) 2018-03-08 13:55:52 -05:00
katashin
6b8516b2dd fix(types): fix wrong errorCaptured type (#7712) 2018-03-08 12:05:03 -05:00
katashin
b2092dbff9 fix(types): make render option in functional components to optional (#7663) 2018-03-08 11:55:27 -05:00
katashin
db1b18ceec fix(types): add missing listeners type on RenderContext (#7584) 2018-03-08 11:52:01 -05:00
Pig Fang
2d168f1ba1 test(types): update TS version and fix types test (#7597) 2018-02-03 14:02:25 -05:00
Herrington Darkholme
6ee684983b fix(types): contravariant generic default in ComponentOption (#7369) 2018-01-03 01:33:48 -05:00
katashin
49aae6bb15 fix(types): make VNodeChildrenArrayContents type more accurate (#7287) 2017-12-20 09:09:23 -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
Evan You
14e99086c0 fix(types): add missing ssr renderToString signature 2017-11-24 09:23:59 -05:00
Evan You
fcc122931b fix(types): improve and test bundleRenderer.renderToString Promise types 2017-11-21 10:28:30 -05:00
katashin
267ada04e8 fix(types): expose VueConstructor (#7002) 2017-11-06 16:34:22 -05:00
Herrington Darkholme
98ea0a3b48 fix(types): improve typing for better completion (#6886) 2017-10-25 06:45:15 +02:00
Herrington Darkholme
048e940779 build: map vue to local types, simplify build setup (#6860)
* build: map vue to local types, simplify build setup

* build: remove unnecessary install steps
2017-10-21 08:32:02 -04: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
Evan You
96472be6f6 types: add types for new features and adjust tests 2017-10-06 17:41:54 -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
katashin
1baa0a7884 fix(types): add inject option in functional component options type (#6530) 2017-09-13 02:25:50 -04:00
Herrington Darkholme
38d52182bf fix(types): allow variadic plugin use (#6363)
fix #6357
2017-09-05 16:02:38 -04:00