persona-community-5/.pnpm-store/v3/files/1d/bb6539a7bc52c41519d393abfdeb3a83baa7a9c1c62c665c5332f7a10299b566d4b06caea1b8e51d010157c7ac32bbb87504686af5a253738f49d7f6c5b580
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
478 B
Plaintext

/**
Represents a map with `unknown` key and value.
Use case: You want a type that all maps can be assigned to, but you don't care about the value.
@example
```
import type {UnknownMap} from 'type-fest';
type IsMap<T> = T extends UnknownMap ? true : false;
type A = IsMap<Map<string, number>>;
//=> true
type B = IsMap<ReadonlyMap<number, string>>;
//=> true
type C = IsMap<string>;
//=> false
```
@category Type
*/
export type UnknownMap = ReadonlyMap<unknown, unknown>;