Skip to content

API Reference / @gtkx/runtime / ErrorDomain

Type Alias: ErrorDomain<T>

ErrorDomain<T> = T & object

Defined in: runtime/dist/error.d.ts:11

An error enum object carrying its member codes plus an instanceof check that matches wrapped GLib errors belonging to a specific error domain.

Type Declaration

[hasInstance]

[hasInstance]: (value) => value is ErrorLike

Parameters

value

unknown

Returns

value is ErrorLike

Type Parameters

T

T extends Record<string, number>

Released under the MPL-2.0 License.