Skip to content

API Reference / @gtkx/runtime / installInterfaces

Function: installInterfaces() ​

installInterfaces(cls, interfaces, inheritedOverrides?): void

Defined in: packages/runtime/src/registry.ts:422

Copies registered interface mixins onto a wrapper class, in the supplied order. Interfaces must already be registered through registerInterface; generated code declares them before their implementing classes.

Parameters ​

cls ​

AnyClass

Wrapper class adopting the interfaces.

interfaces ​

AnyClass[]

Registered interface classes to adopt.

inheritedOverrides? ​

string[] = []

Returns ​

void

Throws ​

If an entry is not a registered interface.