Skip to main content
Version: latest

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