Interface ComponentOptions<T>

Component options.

interface ComponentOptions<T extends unknown[] = unknown[]> {
    inject: DropFirst<
        NoInfer<{ [K in string | number | symbol]: Qualifier<T[K<K>]> }>,
    >;
}

Type Parameters

  • T extends unknown[] = unknown[]

Properties

Properties

inject: DropFirst<
    NoInfer<{ [K in string | number | symbol]: Qualifier<T[K<K>]> }>,
>

The types of the injected component parameters (constructor parameters for class components, function parameters for function components). Must not contain the first parameter which is reserved for component input parameters.