persona-community-5/.pnpm-store/v3/files/10/f484ea8e52edabfe3371bc4ca7f35e1ef7b8e7aea6b0738ab49391eda5e23a5e36d9da1c14408201a45b5e46ded3a79945563fcf664940a33051651670592a
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

26 lines
472 B
Plaintext

/**
Represents an array with `unknown` value.
Use case: You want a type that all arrays can be assigned to, but you don't care about the value.
@example
```
import type {UnknownArray} from 'type-fest';
type IsArray<T> = T extends UnknownArray ? true : false;
type A = IsArray<['foo']>;
//=> true
type B = IsArray<readonly number[]>;
//=> true
type C = IsArray<string>;
//=> false
```
@category Type
@category Array
*/
export type UnknownArray = readonly unknown[];