Commit Graph

132 Commits

Author SHA1 Message Date
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
katashin
fba78d4598 Update types for new features of v2.1 (#4305)
* add types for scoped slots

* update nextTick types for returning promise

* improve scoped slot type
2016-11-25 12:08:42 -05:00
katashin
9e6255e457 fix the type of VNodeComponentOptions.Ctor (#4257) 2016-11-20 11:59:10 -05:00
(´・ω・`)
4dccbbc997 Add missing lifecycle definition (#4251)
* add missing lifecycle definition

* add activated lifecycle tests
2016-11-19 07:27:36 -05:00
Evan You
b69b4a4eef tweak style merge for performance 2016-11-07 16:20:10 -05:00
chengchao
e960cd104e enable style merge behavior between parent-child components (fix #3997) (#4138)
* merge style between components

* update test case

* update style compiler

* add paren to style binding code

* update background property parsing

* introduce interpolation warning and refactor var to const
2016-11-07 16:19:48 -05:00
odangosan
35f145cfc1 Update vue.d.ts (#4105)
fix typo.
2016-11-04 09:37:20 +09: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
(´・ω・`)
aefb34812e Update $refs type declaration (#3765)
* `$refs` is a dictionary of Vue instance or Element

* update $refs for array usage
2016-09-28 15:04:08 -04:00
katashin
019d90040d add module augmentation test (#3713) 2016-09-21 12:45:40 -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
katashin
f541097486 Expose all types via index.d.ts (#3608)
* expose all types via index.d.ts

* Fix typo
2016-09-08 10:26:01 +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
wumingyang
4061c42748 adapt index.d.ts for end users (#3582)
* adapt index.d.ts for end users

* fix extend return type
2016-09-04 17:33:25 +08:00
kaorun343
dfc64e8a11 Add TypeScript definitions
Add TypeScript definition

Remove unnecessary definition

Update definitions

* separate files
* remove unnecessary `{[key: string]: any}`
* from singular to plural

Update definitions

* Add more definitions
* Rename filename and interface
* Sort definitions
* Fix indent

Fix

Add test

* add test
* fix some definitions
* fix typo

Fix ComputedOptions

Update Vue.set

Update definitions

Add npm script
2016-08-31 12:21:26 -04:00