UNPKG
mana-common
Version:
latest (0.3.2)
next (0.2.2-next.0)
0.3.2
0.3.1
0.3.0
0.2.2
0.2.2-next.0
0.2.0
0.1.0
0.0.1
Common utils for mana
mana-common
/
es
/
disposable.d.ts
12 lines
(11 loc)
•
272 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
export
declare
type
Disposable
= {
/** * Dispose this object. */
dispose
:
() =>
void
; };
export
declare
namespace
Disposable
{
function
is
(
arg
:
any
): arg is
Disposable
;
function
create
(
func
: () =>
void
):
Disposable
;
const
NONE
:
Disposable
; }