persona-community-5/.pnpm-store/v3/files/99/71d2c39a732a6782e138f94dc9cd12e0805b38b94cf3cff9331746769620512f1f009874fb7ed4d5b5e7ce50a75aabc3fda213273e25bc46dd207ca8eaf09a
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

25 lines
445 B
Plaintext

/**
Represents a set with `unknown` value.
Use case: You want a type that all sets can be assigned to, but you don't care about the value.
@example
```
import type {UnknownSet} from 'type-fest';
type IsSet<T> = T extends UnknownSet ? true : false;
type A = IsSet<Set<string>>;
//=> true
type B = IsSet<ReadonlySet<number>>;
//=> true
type C = IsSet<string>;
//=> false
```
@category Type
*/
export type UnknownSet = ReadonlySet<unknown>;