4.0.5 • Published 4 months ago

@types/ember__destroyable v4.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Installation

npm install --save @types/ember__destroyable

Summary

This package contains type definitions for @ember/destroyable (https://api.emberjs.com/ember/3.22/modules/@ember%2Fdestroyable).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ember__destroyable/v3.

index.d.ts

// Type definitions for non-npm package @ember/destroyable 3.22
// Project: https://api.emberjs.com/ember/3.22/modules/@ember%2Fdestroyable
// Definitions by: Mike North <https://github.com/mike-north>
//                 Chris Krycho <https://github.com/chriskrycho>
//                 Dan Freeman <https://github.com/dfreeman>
//                 James C. Davis <https://github.com/jamescdavis>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.7

export function associateDestroyableChild<T extends object>(parent: object, child: T): T;

export function isDestroying(destroyable: object): boolean;

export function isDestroyed(destroyable: object): boolean;

export function destroy(destroyable: object): void;

export function assertDestroyablesDestroyed(): void;

export function enableDestroyableTracking(): void;

export function registerDestructor<T extends object>(
destroyable: T,
destructor: (destroyable: T) => void
): (destroyable: T) => void;

export function unregisterDestructor<T extends object>(
destroyable: T,
destructor: (destroyable: T) => void
): void;

Additional Details

  • Last updated: Fri, 21 Jan 2022 19:02:06 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Mike North, Chris Krycho, Dan Freeman, and James C. Davis.

4.0.5

4 months ago

3.22.5

4 months ago

4.0.4

6 months ago

4.0.3

7 months ago

3.22.4

6 months ago

3.22.3

7 months ago

3.22.2

11 months ago

4.0.2

11 months ago

4.0.1

2 years ago

4.0.0

2 years ago

3.22.1

2 years ago

3.22.0

3 years ago