A thing that can be closed.

interface ICloseable {
    close?: () => void | Promise<void>;
}

Properties

Properties

close?: () => void | Promise<void>

Close the closeable.