UNPKG

@prefecthq/prefect-ui-library

Version:

This library is the Vue and Typescript component library for [Prefect 2](https://github.com/PrefectHQ/prefect) and [Prefect Cloud 2](https://www.prefect.io/cloud/). _The components and utilities in this project are not meant to be used independently_.

13 lines (12 loc) 572 B
export type TupleType<T extends unknown[]> = { values: Readonly<T>; isValue: (value: unknown) => value is T[number]; }; /** * Creates a tuple with the provided values. * * @template T - The type of the elements in the tuple. * @param {T} values - The values to be included in the tuple. * @returns {TupleType<T>} An object representing the tuple, with a `values` property containing the tuple values and an `isValue` method to check if a value is part of the tuple. */ export declare function createTuple<const T extends unknown[]>(values: T): TupleType<T>;