@node-ctypes/winrt - v0.1.0
    Preparing search index...

    Function composeWinRTClass

    • Instantiate any WinRT [Composable] class (such as Application, Page, or UserControl) with COM-aggregated overrides and/or delegated interfaces in a single call. Override implementations receive (self, ...args) where self is the typed composed instance T.

      Type Parameters

      Parameters

      • TargetClass: ComposableWinRTClass<T>
      • options: {
            className: string;
            overrides?: readonly {
                iface: InterfaceDef<any>;
                impl: Readonly<Record<string, (self: T, ...args: any[]) => number | void>>;
            }[];
            delegates?: readonly WinRTDelegateSpec[];
            onError?: (error: unknown, methodName: string) => void;
        }

      Returns ComposedWinRTInstance<T>