Type alias StoresInputValues<S>

StoresInputValues<S>: S extends StoreInput<infer T>
    ? T
    : {
        [K in keyof S]: S[K] extends StoreInput<infer T>
            ? T
            : never
    }

Extracts the types of the values of the stores from a type extending StoresInput.

Type Parameters

  • S

Remarks

If the type given as a parameter is a single StoreInput, the type of the value of that StoreInput is returned.

If the type given as a parameter is one of an array of StoreInput, the returned type is the type of an array containing the value of each store in the same order.

Generated using TypeDoc