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
/
apis
/
computed.d.ts
9 lines
(8 loc)
•
263 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
import
{
Ref
}
from
'../reactivity'
;
interface
Option
<T> {
get
:
() =>
T;
set
:
(
value
: T
) =>
void
; }
export
declare
function
computed<T>(
getter
:
Option
<T>[
'get'
]):
Ref
<T>;
export
declare
function
computed<T>(
options
:
Option
<T>):
Ref
<T>;
export
{};