Commit Graph

68 Commits

Author SHA1 Message Date
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
JounQin
0b2929a3d6 types: add EsModuleComponent definition (#6477) 2017-09-05 15:25:16 -04:00
赵鑫晖
59dbd4a414 fix: ensure $attrs and $listeners are always objects (#6441)
fix #6263
2017-08-29 22:59:39 +02:00
Evan You
1f9e924971 feat(types): add declaration for inheritAttrs 2017-07-11 22:43:31 +08: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
wenlu.wang
e4da249ab8 feat: add comments option to allow preserving comments in template (#5951)
close #5392
2017-06-30 08:56:23 +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
Evan You
deae1ff851 fix type tests 2017-06-13 17:49:52 +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
kingwl
2701fa1a64 add provide/inject on functional context (#5204) 2017-04-05 14:36:15 +08:00
Bojan
1b38a261c5 support multi event (#5056) 2017-03-03 11:51:57 +08:00
Evan You
3b7b597044 cover Symbol for provide/inject typing 2017-02-25 23:19:36 -05:00
Evan You
01b09e6bcd type for renderError option 2017-02-22 13:17:18 -05: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
Evan You
5fea184d50 $props type improvements 2017-02-14 11:39:05 -05:00
yantene
ef40d1b7cf add the type of props in typescript definitions 2017-02-14 11:39:05 -05:00
Evan You
ced2dfc8f7 expose vnode.child for backwards compat, update .flowconfig & ts types 2017-01-12 18:04:36 -05:00