import type { As } from '@chzky/core'; import type { RecordObject } from './interface.js'; import { Immut } from '../../../mod.js'; /** ## `Record` : `Immut`的特化,源于[proposal-record-tuple](https://github.com/tc39/proposal-record-tuple)提案 ### Feature : Record支持的类型 1. key值不可为`symbol` 2. value值只支持以下几种类型 : `string` | `number` | `boolean` | `Record` | `Tuple` | `Refer` 3. 当尝试使用其他类型作为key/value值时,会抛出`TypeError` 4. 当尝试使用空对象时,会抛出`TypeError` */ export interface Record extends Immut, As { /** ### `get` : 获取value值 */ get: (key: K) => T[K]; } export declare function Record(obj: T): Record; /** ## `is_record` : 判断是否Record类型 */ declare function is_record(val: unknown): val is Record; export { is_record, type RecordObject }; //# sourceMappingURL=record.d.ts.map