Skip to main content
Version: v26

IDestroyable

Interface

IDESTRØYÅBLE

┌────────────────┐
│ ┏━━━━━┓ │
│ ┃ ○ ○ ┃ │ ┏━━━━━┓ ┌╲╌╌╱╌┐
│ ┃ ○ ○ ┃ x 1 │ ┃ ○ ○ ┃ destroy() ┊ ╲╱ ╵
│ ┠─────┨ │ ┃ ○ ○ ┃ ╭───╯╲ ╷ ╱╲ ┊
│ ┗━━━━━┛ │ ┠─────┨ ╰───╮╱ ├╱ ╌╲ ┤
│ destroy() x 1 │ ┗━━━━━┛ └ ╌╌ ╌┘
└────────────────┘

Methods

destroy

Clean up (destroy) any subscriptions, intervals, or other resources that this IDestroyable instance has.

Signature

destroy() => void

Returns

void