UNPKG
tc39-weakrefs-shim
Version:
latest (0.1.0)
0.1.0
0.0.2
0.0.1
0.0.1-security
Shim for TC39 Weakrefs proposal
github.com/mhofman/tc39-weakrefs-shim
mhofman/tc39-weakrefs-shim
tc39-weakrefs-shim
/
lib
/
wrapper.d.ts
4 lines
(3 loc)
•
250 B
TypeScript
View Raw
1
2
3
4
import
{
FinalizationGroup
,
WeakRef
}
from
"./weakrefs.js"
;
import
{
Exports
}
from
"./index.js"
;
export
declare
function
wrap
(
WeakRef: WeakRef.Constructor, FinalizationGroup: FinalizationGroup.Constructor, gc?: () =>
Promise
<
void
> |
void
):
Exports
;