Commit Graph

51 Commits

Author SHA1 Message Date
Evan You
04b4703de7 fix(sfc): fix sfc name inference type check
fix #12637
2022-07-12 17:39:49 +08:00
Evan You
1d5a411c1e fix(types): fix type inference when using components option 2022-07-08 15:15:22 +08:00
Evan You
fb93c1be77
feat(types): define component improvements (#12612) 2022-07-04 22:12:21 -04:00
Evan You
ffaf81ba5f chore: fix type tests 2022-06-01 22:12:02 +08:00
Evan You
206f8a7f09 wip: defineComponent 2022-06-01 21:55:33 +08:00
Evan You
dae380dc24 wip: renderTriggered/renderTracked 2022-05-29 16:01:38 +08:00
Evan You
93214586aa types: types for setup() + format types 2022-05-27 17:26:55 +08:00
Sebastian Krüger
c52427b0d2
fix(types): async Component types (#11906)
* Update options.d.ts

* Create async-component-test.ts

* add generics to Component ad EsModuleComponent

* remove not needed , and ;

* revert unrelated changes

* revert unrelated changes

* revert unrelated changes

* revert unrelated changes

* optimize EsModuleImports

* Update async-component-test.ts
2021-06-03 15:13:33 +02:00
Orkhan Alikhanov
668e1e6374
fix(types): allow string for watch handlers in options (#10396)
* Allow watch handler to be string as it is supported

* Move string type to WatchHandler itself

* Removed string type as it moved to WatchHandler
2020-09-21 16:13:21 +02:00
katashin
4821149b8b fix(types): fix prop constructor type inference (#10779) 2019-10-30 10:45:29 -04:00
Carlos Rodrigues
df4af4bd19 fix(types): allow using functions on the PropTypes (#9733)
close #9692
2019-03-19 12:54:27 +08:00
DSha
731e4d0ebc types: use normalized type for RenderContext.scopedSlots (#9624)
fix #9616
2019-03-05 16:46:56 -05:00
Evan You
42fdf3f837 refactor: ssrPrefetch -> serverPrefetch for more consistent naming 2019-01-18 16:43:17 -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
Timur Kiyui
dfaf9e2436 fix(types): type support for advanced async components (#8438) 2018-12-05 18:00:56 -05:00
Julian Rüth
f43ae6d151 chore(typo): fix typo (#9085) 2018-11-30 23:58:58 -05:00
st-sloth
ac217d2472 fix(types): fix renderErrorarguments type (#8636)
fix #8635
2018-11-30 23:28:29 -05: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
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
Herrington Darkholme
6ee684983b fix(types): contravariant generic default in ComponentOption (#7369) 2018-01-03 01:33:48 -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
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
katashin
1baa0a7884 fix(types): add inject option in functional component options type (#6530) 2017-09-13 02:25:50 -04:00
JounQin
0b2929a3d6 types: add EsModuleComponent definition (#6477) 2017-09-05 15:25:16 -04:00
Evan You
1f9e924971 feat(types): add declaration for inheritAttrs 2017-07-11 22:43:31 +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
Evan You
deae1ff851 fix type tests 2017-06-13 17:49:52 +08:00
kingwl
2701fa1a64 add provide/inject on functional context (#5204) 2017-04-05 14:36:15 +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
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
(´・ω・`)
4dccbbc997 Add missing lifecycle definition (#4251)
* add missing lifecycle definition

* add activated lifecycle tests
2016-11-19 07:27:36 -05:00
Kaorun343
887ec90d14 fix RenderContext (#4099) 2016-11-03 13:07:07 -04:00
katashin
6643cb8c23 Update typings (#3876)
* ensure `this` in methods is vue component

* update createElement type and expose it
2016-10-08 14:15:36 -04:00
Kaorun343
ef6945932f Fix $createElement and Vue.extend (#3818)
* Fix $createElement and extend

* Add AsyncComponent
2016-09-30 13:57:38 -04:00
katashin
72a1527148 add inserted hook type to directive option (#3682) 2016-09-16 10:40:12 -06:00
Kaorun343
2b588b754e Update ComponentOptions (#3651)
* Update ComponentOptions

* Make ComponentOptions as a Generic Interface
* Update some interfaces and types related to ComponentOptions
* Update tests

* Fix
2016-09-14 01:59:14 +02:00
Kaorun343
d2337dfc3f remove ".d" from paths (#3607) 2016-09-06 21:28:17 +08:00
Kaorun343
8f4aab201b Fix definitons (#3591)
* Fix types

* add “FunctionalComponentOptions” and “ContextObject”
* fix and update types

* Rename

* Update vue.d.ts

* Update options-test.ts
2016-09-05 18:53:34 +08:00