Herrington Darkholme
144bf5a99e
fix(types): prefer normal component over functional one ( #7687 )
7 years ago
katashin
6b8516b2dd
fix(types): fix wrong errorCaptured type ( #7712 )
7 years ago
katashin
b2092dbff9
fix(types): make render option in functional components to optional ( #7663 )
7 years ago
katashin
db1b18ceec
fix(types): add missing `listeners` type on RenderContext ( #7584 )
7 years ago
Pig Fang
2d168f1ba1
test(types): update TS version and fix types test ( #7597 )
7 years ago
Herrington Darkholme
6ee684983b
fix(types): contravariant generic default in ComponentOption ( #7369 )
7 years ago
katashin
49aae6bb15
fix(types): make VNodeChildrenArrayContents type more accurate ( #7287 )
7 years ago
Wenlu Wang
c0d516c283
feat(types): extract VueConfiguration type for easy expansion ( #7273 ) ( #7274 )
fix #7273
7 years ago
Zen
d2e1d49c41
fix(types): use object and string instead of Object and String ( #7126 )
7 years ago
Herrington Darkholme
a71e653108
fix(types): bump ts version and fix typing bugs ( #7135 )
7 years ago
Evan You
14e99086c0
fix(types): add missing ssr renderToString signature
7 years ago
Evan You
fcc122931b
fix(types): improve and test bundleRenderer.renderToString Promise types
7 years ago
katashin
267ada04e8
fix(types): expose VueConstructor ( #7002 )
7 years ago
Herrington Darkholme
98ea0a3b48
fix(types): improve typing for better completion ( #6886 )
7 years ago
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
7 years ago
Herrington Darkholme
9caed00d20
fix(typing): relax $options type for TS2.6+ ( #6819 )
7 years ago
Evan You
1be48d0a13
types: update types for config.ignoredElements
7 years ago
Evan You
96472be6f6
types: add types for new features and adjust tests
7 years ago
Herrington Darkholme
db138e2254
feat(types): further improve Vue type declarations for canonical usage ( #6391 )
7 years ago
Alexander Eden
64e3943842
types: extend keyCodes type declaration to allow array of numbers ( #6745 )
7 years ago
katashin
1baa0a7884
fix(types): add `inject` option in functional component options type ( #6530 )
7 years ago
Herrington Darkholme
38d52182bf
fix(types): allow variadic plugin use ( #6363 )
fix #6357
7 years ago
JounQin
0b2929a3d6
types: add EsModuleComponent definition ( #6477 )
7 years ago
赵鑫晖
59dbd4a414
fix: ensure $attrs and $listeners are always objects ( #6441 )
fix #6263
7 years ago
Evan You
1f9e924971
feat(types): add declaration for inheritAttrs
7 years ago
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 .
7 years ago
Evan You
1b7ddd7a35
feat(types): expose $vnode
7 years ago
wenlu.wang
e4da249ab8
feat: add `comments` option to allow preserving comments in template ( #5951 )
close #5392
8 years ago
Luke Bennett
9831b403cf
Add warnHandler to allow users to set a custom warn callback, similar to errorHandler ( #5883 )
8 years ago
Evan You
deae1ff851
fix type tests
8 years ago
Melvin Lee
92d61922e9
Add TypeScript definition for ssrContext ( #5654 )
8 years ago
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)
8 years ago
kingwl
2701fa1a64
add provide/inject on functional context ( #5204 )
8 years ago
Bojan
1b38a261c5
support multi event ( #5056 )
8 years ago
Evan You
3b7b597044
cover Symbol for provide/inject typing
8 years ago
Evan You
01b09e6bcd
type for renderError option
8 years ago
Evan You
73c5614740
update types for new features
8 years ago
kingwl
8bb6c2bdaa
support $on multi event ( #4860 )
8 years ago
Alexander Sheboltaev
ebe27295df
typings: type-checking WatchHandler -- refining
8 years ago
Alexander Sheboltaev
c662fe09c7
typings: type-checking WatchHandler
Makes watch handler argument to be typechecked when the expression is set
as a function.
8 years ago
Evan You
5fea184d50
$props type improvements
8 years ago
yantene
ef40d1b7cf
add the type of props in typescript definitions
8 years ago
Evan You
ced2dfc8f7
expose vnode.child for backwards compat, update .flowconfig & ts types
8 years ago
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
8 years ago
katashin
9e6255e457
fix the type of VNodeComponentOptions.Ctor ( #4257 )
8 years ago
(´・ω・`)
4dccbbc997
Add missing lifecycle definition ( #4251 )
* add missing lifecycle definition
* add activated lifecycle tests
8 years ago
Evan You
b69b4a4eef
tweak style merge for performance
8 years ago
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
8 years ago
odangosan
35f145cfc1
Update vue.d.ts ( #4105 )
fix typo.
8 years ago
Kaorun343
887ec90d14
fix RenderContext ( #4099 )
8 years ago