UNPKG

@most/disposable

Version:

Reactive programming with lean, functions-only, curried, tree-shakeable API

8 lines (7 loc) 353 B
/** @license MIT License (c) copyright 2010-2017 original author or authors */ import { Disposable } from '@most/types'; /** * Wrap an existing disposable (which may not already have been once()d) * so that it will only dispose its underlying resource at most once. */ export declare const disposeOnce: (disposable: Disposable) => Disposable;