UNPKG
@morlz/composition-api
Version:
latest (0.3.2-rc4)
0.3.2
0.3.2-rc4
0.3.2-rc3
0.3.2-rc2
0.3.2-rc1
Provide logic composition capabilities for Vue.
github.com/vuejs/composition-api
@morlz/composition-api
/
dist
/
reactivity
/
set.d.ts
7 lines
(6 loc)
•
246 B
TypeScript
View Raw
1
2
3
4
5
6
7
/** *
Set
a
property
on
an
object
. Adds the
new
property
, triggers change * notification
and
intercept it
's subsequent access if the property doesn't
* already exist. */ export
declare
function
set
<T>(target: any,
key
: any, val: T): T;