refactor: move prop decorator into core, expose initial props to initialziers

This commit is contained in:
Evan You
2019-02-26 21:33:50 -05:00
parent 2f165c1e87
commit ff9cddd46f
12 changed files with 53 additions and 62 deletions

View File

@@ -5,7 +5,6 @@ export const NOOP = () => {}
export const reservedPropRE = /^(?:key|ref|slots)$|^vnode/
export const isOn = (key: string) => key[0] === 'o' && key[1] === 'n'
export const isReservedKey = (key: string) => key[0] === '_' || key[0] === '$'
export const isArray = Array.isArray
export const isFunction = (val: any): val is Function =>