Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

x-value

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

x-value - npm Package Compare versions

Comparing version 0.0.1-15 to 0.0.1-16

bld/library/@internal.d.ts

2

bld/library/medium.d.ts

@@ -1,2 +0,2 @@

import type { __MediumTypeOf, __MediumTypesPackedType } from './@utils';
import type { __MediumTypeOf, __MediumTypesPackedType } from './@internal';
export declare const atomicTypeSymbol: unique symbol;

@@ -3,0 +3,0 @@ export declare type GeneralMediumTypes = {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EXTENDED_CODECS = void 0;
const _utils_1 = require("../@utils");
const _internal_1 = require("../@internal");
const types_1 = require("../types");

@@ -14,3 +14,3 @@ const REGEXP_LITERAL_REGEX = /^\/(.*)\/([^/]*)$/;

if (typeof value !== 'string') {
throw new TypeError(`Expected bigint string, getting ${_utils_1.toString.call(value)}`);
throw new TypeError(`Expected bigint string, getting ${_internal_1.toString.call(value)}`);
}

@@ -26,3 +26,3 @@ return BigInt(value);

if (typeof value !== 'string') {
throw new TypeError(`Expected ISO date string, getting ${_utils_1.toString.call(value)}`);
throw new TypeError(`Expected ISO date string, getting ${_internal_1.toString.call(value)}`);
}

@@ -42,3 +42,3 @@ let date = new Date(value);

if (typeof value !== 'string') {
throw new TypeError(`Expected regular expression literal, getting ${_utils_1.toString.call(value)}`);
throw new TypeError(`Expected regular expression literal, getting ${_internal_1.toString.call(value)}`);
}

@@ -45,0 +45,0 @@ let groups = REGEXP_LITERAL_REGEX.exec(value);

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.extendedQueryString = exports.queryString = void 0;
const _utils_1 = require("../@utils");
const _internal_1 = require("../@internal");
const medium_1 = require("../medium");

@@ -54,3 +54,3 @@ const types_1 = require("../types");

if (typeof dict !== 'object' || dict === null) {
throw new TypeError(`Expected non-null object, getting ${_utils_1.toString.call(dict)}`);
throw new TypeError(`Expected non-null object, getting ${_internal_1.toString.call(dict)}`);
}

@@ -57,0 +57,0 @@ return Object.entries(dict)

@@ -1,2 +0,2 @@

import type { __ElementOrArray, __MediumTypeOf, __MediumTypesPackedType, __RefinedType } from '../@utils';
import type { __ElementOrArray, __MediumTypeOf, __MediumTypesPackedType, __RefinedType } from '../@internal';
import type { Medium } from '../medium';

@@ -3,0 +3,0 @@ import type { TypeConstraint, TypeOf } from './type';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.array = exports.ArrayType = void 0;
const _utils_1 = require("../@utils");
const _internal_1 = require("../@internal");
const type_1 = require("./type");

@@ -25,3 +25,3 @@ class ArrayType extends type_1.Type {

path,
message: `Expecting unpacked value to be an array, getting ${_utils_1.toString.call(unpacked)}.`,
message: `Expecting unpacked value to be an array, getting ${_internal_1.toString.call(unpacked)}.`,
},

@@ -52,3 +52,3 @@ ],

path,
message: `Expecting value to be an array, getting ${_utils_1.toString.call(value)}.`,
message: `Expecting value to be an array, getting ${_internal_1.toString.call(value)}.`,
},

@@ -77,3 +77,3 @@ ],

path,
message: `Expecting unpacked value to be an array, getting ${_utils_1.toString.call(unpacked)}.`,
message: `Expecting unpacked value to be an array, getting ${_internal_1.toString.call(unpacked)}.`,
},

@@ -99,3 +99,3 @@ ],

path,
message: `Expecting an array, getting ${_utils_1.toString.call(value)}.`,
message: `Expecting an array, getting ${_internal_1.toString.call(value)}.`,
},

@@ -102,0 +102,0 @@ ];

@@ -1,2 +0,2 @@

import type { __AtomicMediumType, __ElementOrArray, __MediumTypesPackedType, __RefinedType } from '../@utils';
import type { __AtomicMediumType, __ElementOrArray, __MediumTypesPackedType, __RefinedType } from '../@internal';
import type { Medium } from '../medium';

@@ -3,0 +3,0 @@ import type { TypeConstraint } from './type';

@@ -11,1 +11,2 @@ export * from './type';

export * from './refined-type';
export * from './recursive-type';

@@ -14,2 +14,3 @@ "use strict";

tslib_1.__exportStar(require("./refined-type"), exports);
tslib_1.__exportStar(require("./recursive-type"), exports);
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

import type { __ElementOrArray, __MediumTypeOf, __MediumTypesPackedType, __RefinedType, __UnionToIntersection } from '../@utils';
import type { __ElementOrArray, __MediumTypeOf, __MediumTypesPackedType, __RefinedType, __UnionToIntersection } from '../@internal';
import type { Medium } from '../medium';

@@ -3,0 +3,0 @@ import type { TypeConstraint, TypeOf } from './type';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.intersection = exports.IntersectionType = void 0;
const _utils_1 = require("../@utils");
const _internal_1 = require("../@internal");
const type_1 = require("./type");

@@ -28,3 +28,3 @@ class IntersectionType extends type_1.Type {

}
return [issues.length === 0 ? (0, _utils_1.merge)(partials) : undefined, issues];
return [issues.length === 0 ? (0, _internal_1.merge)(partials) : undefined, issues];
}

@@ -40,3 +40,3 @@ /** @internal */

}
return [issues.length === 0 ? (0, _utils_1.merge)(partials) : undefined, issues];
return [issues.length === 0 ? (0, _internal_1.merge)(partials) : undefined, issues];
}

@@ -52,3 +52,3 @@ /** @internal */

}
return [issues.length === 0 ? (0, _utils_1.merge)(partials) : undefined, issues];
return [issues.length === 0 ? (0, _internal_1.merge)(partials) : undefined, issues];
}

@@ -55,0 +55,0 @@ /** @internal */

@@ -1,2 +0,2 @@

import type { __ElementOrArray, __MediumTypesPackedType, __ObjectTypeDefinitionToMediumType, __RefinedType } from '../@utils';
import type { __ElementOrArray, __MediumTypesPackedType, __ObjectTypeDefinitionToMediumType, __RefinedType } from '../@internal';
import type { Medium } from '../medium';

@@ -3,0 +3,0 @@ import { OptionalType } from './optional-type';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.object = exports.ObjectType = void 0;
const _utils_1 = require("../@utils");
const _internal_1 = require("../@internal");
const optional_type_1 = require("./optional-type");

@@ -43,3 +43,3 @@ const type_1 = require("./type");

path,
message: `Expecting unpacked value to be a non-null object, getting ${_utils_1.toString.call(unpacked)}.`,
message: `Expecting unpacked value to be a non-null object, getting ${_internal_1.toString.call(unpacked)}.`,
},

@@ -72,3 +72,3 @@ ],

path,
message: `Expecting value to be a non-null object, getting ${_utils_1.toString.call(value)}.`,
message: `Expecting value to be a non-null object, getting ${_internal_1.toString.call(value)}.`,
},

@@ -98,3 +98,3 @@ ],

path,
message: `Expecting unpacked value to be a non-null object, getting ${_utils_1.toString.call(unpacked)}.`,
message: `Expecting unpacked value to be a non-null object, getting ${_internal_1.toString.call(unpacked)}.`,
},

@@ -122,3 +122,3 @@ ],

path,
message: `Expecting a non-null object, getting ${_utils_1.toString.call(value)}.`,
message: `Expecting a non-null object, getting ${_internal_1.toString.call(value)}.`,
},

@@ -125,0 +125,0 @@ ];

@@ -1,2 +0,2 @@

import type { __ElementOrArray, __MediumTypeOf, __MediumTypesPackedType, __RefinedType } from '../@utils';
import type { __ElementOrArray, __MediumTypeOf, __MediumTypesPackedType, __RefinedType } from '../@internal';
import type { Medium } from '../medium';

@@ -3,0 +3,0 @@ import type { TypeConstraint, TypeOf } from './type';

@@ -1,17 +0,17 @@

import type { __ElementOrArray, __MediumTypeOf, __MediumTypeOfRecordKeyType, __MediumTypesPackedType, __RefinedType, __TypeOfRecordKeyType } from '../@utils';
import type { __ElementOrArray, __MediumTypeOf, __MediumTypeOfRecordKeyType, __MediumTypesPackedType, __RefinedType, __TypeOfRecordKeyType } from '../@internal';
import type { Medium } from '../medium';
import type { TypeConstraint, TypeOf } from './type';
import { Type } from './type';
export interface RecordType<TKey, TValue> {
refine<TNominalOrRefinement, TNominal = unknown>(constraints: __ElementOrArray<TypeConstraint<Record<__TypeOfRecordKeyType<TKey>, TypeOf<TValue>>>>): __RefinedType<this, TNominalOrRefinement, TNominal>;
decode<TMediumTypes extends object>(medium: Medium<TMediumTypes>, packed: __MediumTypesPackedType<TMediumTypes, Record<__MediumTypeOfRecordKeyType<TKey, TMediumTypes>, __MediumTypeOf<TValue, TMediumTypes>>>): Record<__TypeOfRecordKeyType<TKey>, TypeOf<TValue>>;
encode<TMediumTypes extends object>(medium: Medium<TMediumTypes>, value: Record<__TypeOfRecordKeyType<TKey>, TypeOf<TValue>>): __MediumTypesPackedType<TMediumTypes, Record<__MediumTypeOfRecordKeyType<TKey, TMediumTypes>, __MediumTypeOf<TValue, TMediumTypes>>>;
transform<TFromMediumTypes extends object, TToMediumTypes extends object>(from: Medium<TFromMediumTypes>, to: Medium<TToMediumTypes>, packed: __MediumTypesPackedType<TFromMediumTypes, Record<__MediumTypeOfRecordKeyType<TKey, TFromMediumTypes>, __MediumTypeOf<TValue, TFromMediumTypes>>>): __MediumTypesPackedType<TToMediumTypes, Record<__MediumTypeOfRecordKeyType<TKey, TToMediumTypes>, __MediumTypeOf<TValue, TToMediumTypes>>>;
is(value: unknown): value is Record<__TypeOfRecordKeyType<TKey>, TypeOf<TValue>>;
export interface RecordType<TKeyType, TValueType> {
refine<TNominalOrRefinement, TNominal = unknown>(constraints: __ElementOrArray<TypeConstraint<Record<__TypeOfRecordKeyType<TKeyType>, TypeOf<TValueType>>>>): __RefinedType<this, TNominalOrRefinement, TNominal>;
decode<TMediumTypes extends object>(medium: Medium<TMediumTypes>, packed: __MediumTypesPackedType<TMediumTypes, Record<__MediumTypeOfRecordKeyType<TKeyType, TMediumTypes>, __MediumTypeOf<TValueType, TMediumTypes>>>): Record<__TypeOfRecordKeyType<TKeyType>, TypeOf<TValueType>>;
encode<TMediumTypes extends object>(medium: Medium<TMediumTypes>, value: Record<__TypeOfRecordKeyType<TKeyType>, TypeOf<TValueType>>): __MediumTypesPackedType<TMediumTypes, Record<__MediumTypeOfRecordKeyType<TKeyType, TMediumTypes>, __MediumTypeOf<TValueType, TMediumTypes>>>;
transform<TFromMediumTypes extends object, TToMediumTypes extends object>(from: Medium<TFromMediumTypes>, to: Medium<TToMediumTypes>, packed: __MediumTypesPackedType<TFromMediumTypes, Record<__MediumTypeOfRecordKeyType<TKeyType, TFromMediumTypes>, __MediumTypeOf<TValueType, TFromMediumTypes>>>): __MediumTypesPackedType<TToMediumTypes, Record<__MediumTypeOfRecordKeyType<TKeyType, TToMediumTypes>, __MediumTypeOf<TValueType, TToMediumTypes>>>;
is(value: unknown): value is Record<__TypeOfRecordKeyType<TKeyType>, TypeOf<TValueType>>;
}
export declare class RecordType<TKey extends Type, TValue extends Type> extends Type<'record'> {
readonly Key: TKey;
readonly Value: TValue;
constructor(Key: TKey, Value: TValue);
export declare class RecordType<TKeyType extends Type, TValueType extends Type> extends Type<'record'> {
readonly Key: TKeyType;
readonly Value: TValueType;
constructor(Key: TKeyType, Value: TValueType);
}
export declare function record<TKey extends Type, TValue extends Type>(Key: TKey, Value: TValue): RecordType<TKey, TValue>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.record = exports.RecordType = void 0;
const _utils_1 = require("../@utils");
const _internal_1 = require("../@internal");
const type_1 = require("./type");

@@ -31,3 +31,3 @@ class RecordType extends type_1.Type {

path,
message: `Expecting unpacked value to be a non-null object, getting ${_utils_1.toString.call(unpacked)}.`,
message: `Expecting unpacked value to be a non-null object, getting ${_internal_1.toString.call(unpacked)}.`,
},

@@ -62,3 +62,3 @@ ],

path,
message: `Expecting value to be a non-null object, getting ${_utils_1.toString.call(value)}.`,
message: `Expecting value to be a non-null object, getting ${_internal_1.toString.call(value)}.`,
},

@@ -90,3 +90,3 @@ ],

path,
message: `Expecting unpacked value to be a non-null object, getting ${_utils_1.toString.call(unpacked)}.`,
message: `Expecting unpacked value to be a non-null object, getting ${_internal_1.toString.call(unpacked)}.`,
},

@@ -116,3 +116,3 @@ ],

path,
message: `Expecting a non-null object, getting ${_utils_1.toString.call(value)}.`,
message: `Expecting a non-null object, getting ${_internal_1.toString.call(value)}.`,
},

@@ -119,0 +119,0 @@ ];

@@ -1,2 +0,2 @@

import type { __ElementOrArray, __MediumTypesPackedType, __RefinedMediumType, __RefinedType } from '../@utils';
import type { __ElementOrArray, __MediumTypesPackedType, __RefinedMediumType, __RefinedType } from '../@internal';
import type { Medium } from '../medium';

@@ -3,0 +3,0 @@ import type { TypeConstraint } from './type';

@@ -1,2 +0,2 @@

import type { __ElementOrArray, __MediumTypesPackedType, __RefinedType, __TupleMediumType } from '../@utils';
import type { __ElementOrArray, __MediumTypesPackedType, __RefinedType, __TupleMediumType } from '../@internal';
import type { Medium } from '../medium';

@@ -3,0 +3,0 @@ import type { TypeConstraint } from './type';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.tuple = exports.TupleType = void 0;
const _utils_1 = require("../@utils");
const _internal_1 = require("../@internal");
const type_1 = require("./type");

@@ -25,3 +25,3 @@ class TupleType extends type_1.Type {

path,
message: `Expecting unpacked value to be an array, getting ${_utils_1.toString.call(unpacked)}.`,
message: `Expecting unpacked value to be an array, getting ${_internal_1.toString.call(unpacked)}.`,
},

@@ -52,3 +52,3 @@ ],

path,
message: `Expecting value to be an array, getting ${_utils_1.toString.call(value)}.`,
message: `Expecting value to be an array, getting ${_internal_1.toString.call(value)}.`,
},

@@ -77,3 +77,3 @@ ],

path,
message: `Expecting unpacked value to be an array, getting ${_utils_1.toString.call(unpacked)}.`,
message: `Expecting unpacked value to be an array, getting ${_internal_1.toString.call(unpacked)}.`,
},

@@ -99,3 +99,3 @@ ],

path,
message: `Expecting an array, getting ${_utils_1.toString.call(value)}.`,
message: `Expecting an array, getting ${_internal_1.toString.call(value)}.`,
},

@@ -102,0 +102,0 @@ ];

@@ -1,2 +0,2 @@

import type { __MediumTypeOf } from '../@utils';
import type { __MediumTypeOf } from '../@internal';
import type { Medium } from '../medium';

@@ -3,0 +3,0 @@ export declare abstract class Type<TCategory extends string = string> {

@@ -1,2 +0,2 @@

import type { __ElementOrArray, __MediumTypeOf, __MediumTypesPackedType, __RefinedType } from '../@utils';
import type { __ElementOrArray, __MediumTypeOf, __MediumTypesPackedType, __RefinedType } from '../@internal';
import type { Medium } from '../medium';

@@ -3,0 +3,0 @@ import type { TypeConstraint, TypeOf } from './type';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RegExp = exports.regexpTypeSymbol = exports.Date = exports.dateTypeSymbol = exports.boolean = exports.booleanTypeSymbol = exports.bigint = exports.bigintTypeSymbol = exports.number = exports.numberTypeSymbol = exports.string = exports.stringTypeSymbol = exports.nullType = exports.nullTypeSymbol = exports.voidType = exports.voidTypeSymbol = exports.undefined = exports.undefinedTypeSymbol = exports.unknown = exports.unknownTypeSymbol = void 0;
const _utils_1 = require("./@utils");
const _internal_1 = require("./@internal");
const type_1 = require("./type");

@@ -11,33 +11,33 @@ exports.unknownTypeSymbol = Symbol();

? true
: `Expected undefined, getting ${_utils_1.toString.call(value)}.`);
: `Expected undefined, getting ${_internal_1.toString.call(value)}.`);
exports.voidTypeSymbol = Symbol();
exports.voidType = (0, type_1.atomic)(exports.voidTypeSymbol, value => value === void 0
? true
: `Expected undefined, getting ${_utils_1.toString.call(value)}.`);
: `Expected undefined, getting ${_internal_1.toString.call(value)}.`);
exports.nullTypeSymbol = Symbol();
exports.nullType = (0, type_1.atomic)(exports.nullTypeSymbol, value => value === null ? true : `Expected null, getting ${_utils_1.toString.call(value)}.`);
exports.nullType = (0, type_1.atomic)(exports.nullTypeSymbol, value => value === null ? true : `Expected null, getting ${_internal_1.toString.call(value)}.`);
exports.stringTypeSymbol = Symbol();
exports.string = (0, type_1.atomic)(exports.stringTypeSymbol, value => typeof value === 'string'
? true
: `Expected string, getting ${_utils_1.toString.call(value)}.`);
: `Expected string, getting ${_internal_1.toString.call(value)}.`);
exports.numberTypeSymbol = Symbol();
exports.number = (0, type_1.atomic)(exports.numberTypeSymbol, value => typeof value === 'number'
? true
: `Expected number, getting ${_utils_1.toString.call(value)}.`);
: `Expected number, getting ${_internal_1.toString.call(value)}.`);
exports.bigintTypeSymbol = Symbol();
exports.bigint = (0, type_1.atomic)(exports.bigintTypeSymbol, value => typeof value === 'bigint'
? true
: `Expected bigint, getting ${_utils_1.toString.call(value)}.`);
: `Expected bigint, getting ${_internal_1.toString.call(value)}.`);
exports.booleanTypeSymbol = Symbol();
exports.boolean = (0, type_1.atomic)(exports.booleanTypeSymbol, value => typeof value === 'boolean'
? true
: `Expected boolean, getting ${_utils_1.toString.call(value)}.`);
: `Expected boolean, getting ${_internal_1.toString.call(value)}.`);
exports.dateTypeSymbol = Symbol();
exports.Date = (0, type_1.atomic)(exports.dateTypeSymbol, value => value instanceof globalThis.Date
? true
: `Expected instance of Date, getting ${_utils_1.toString.call(value)}.`);
: `Expected instance of Date, getting ${_internal_1.toString.call(value)}.`);
exports.regexpTypeSymbol = Symbol();
exports.RegExp = (0, type_1.atomic)(exports.regexpTypeSymbol, value => value instanceof globalThis.RegExp
? true
: `Expected instance of RegExp, getting ${_utils_1.toString.call(value)}.`);
: `Expected instance of RegExp, getting ${_internal_1.toString.call(value)}.`);
//# sourceMappingURL=types.js.map

@@ -1,2 +0,2 @@

import type { __NominalPartial } from './@utils';
import type { __NominalPartial } from './@internal';
import type { Type, TypeOf, __nominal, __type } from './type';

@@ -3,0 +3,0 @@ import { RefinedType } from './type';

{
"name": "x-value",
"version": "0.0.1-15",
"version": "0.0.1-16",
"repository": "https://github.com/vilic/x-value.git",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -1,2 +0,2 @@

import type {__MediumTypeOf, __MediumTypesPackedType} from './@utils';
import type {__MediumTypeOf, __MediumTypesPackedType} from './@internal';

@@ -3,0 +3,0 @@ export const atomicTypeSymbol = Symbol();

@@ -1,2 +0,2 @@

import {toString} from '../@utils';
import {toString} from '../@internal';
import type {MediumAtomicCodecs} from '../medium';

@@ -3,0 +3,0 @@ import {bigintTypeSymbol, dateTypeSymbol, regexpTypeSymbol} from '../types';

@@ -1,2 +0,2 @@

import {toString} from '../@utils';
import {toString} from '../@internal';
import {atomicTypeSymbol, medium} from '../medium';

@@ -3,0 +3,0 @@ import {booleanTypeSymbol, numberTypeSymbol} from '../types';

@@ -6,4 +6,4 @@ import type {

__RefinedType,
} from '../@utils';
import {toString} from '../@utils';
} from '../@internal';
import {toString} from '../@internal';
import type {Medium} from '../medium';

@@ -10,0 +10,0 @@

@@ -6,3 +6,3 @@ import type {

__RefinedType,
} from '../@utils';
} from '../@internal';
import type {Medium} from '../medium';

@@ -9,0 +9,0 @@

@@ -11,1 +11,2 @@ export * from './type';

export * from './refined-type';
export * from './recursive-type';

@@ -7,4 +7,4 @@ import type {

__UnionToIntersection,
} from '../@utils';
import {merge} from '../@utils';
} from '../@internal';
import {merge} from '../@internal';
import type {Medium} from '../medium';

@@ -11,0 +11,0 @@

@@ -6,4 +6,4 @@ import type {

__RefinedType,
} from '../@utils';
import {toString} from '../@utils';
} from '../@internal';
import {toString} from '../@internal';
import type {Medium} from '../medium';

@@ -10,0 +10,0 @@

@@ -6,3 +6,3 @@ import type {

__RefinedType,
} from '../@utils';
} from '../@internal';
import type {Medium} from '../medium';

@@ -9,0 +9,0 @@

@@ -8,4 +8,4 @@ import type {

__TypeOfRecordKeyType,
} from '../@utils';
import {__ObjectTypeDefinitionToMediumType, toString} from '../@utils';
} from '../@internal';
import {__ObjectTypeDefinitionToMediumType, toString} from '../@internal';
import type {Medium} from '../medium';

@@ -16,6 +16,8 @@

export interface RecordType<TKey, TValue> {
export interface RecordType<TKeyType, TValueType> {
refine<TNominalOrRefinement, TNominal = unknown>(
constraints: __ElementOrArray<
TypeConstraint<Record<__TypeOfRecordKeyType<TKey>, TypeOf<TValue>>>
TypeConstraint<
Record<__TypeOfRecordKeyType<TKeyType>, TypeOf<TValueType>>
>
>,

@@ -29,16 +31,16 @@ ): __RefinedType<this, TNominalOrRefinement, TNominal>;

Record<
__MediumTypeOfRecordKeyType<TKey, TMediumTypes>,
__MediumTypeOf<TValue, TMediumTypes>
__MediumTypeOfRecordKeyType<TKeyType, TMediumTypes>,
__MediumTypeOf<TValueType, TMediumTypes>
>
>,
): Record<__TypeOfRecordKeyType<TKey>, TypeOf<TValue>>;
): Record<__TypeOfRecordKeyType<TKeyType>, TypeOf<TValueType>>;
encode<TMediumTypes extends object>(
medium: Medium<TMediumTypes>,
value: Record<__TypeOfRecordKeyType<TKey>, TypeOf<TValue>>,
value: Record<__TypeOfRecordKeyType<TKeyType>, TypeOf<TValueType>>,
): __MediumTypesPackedType<
TMediumTypes,
Record<
__MediumTypeOfRecordKeyType<TKey, TMediumTypes>,
__MediumTypeOf<TValue, TMediumTypes>
__MediumTypeOfRecordKeyType<TKeyType, TMediumTypes>,
__MediumTypeOf<TValueType, TMediumTypes>
>

@@ -53,4 +55,4 @@ >;

Record<
__MediumTypeOfRecordKeyType<TKey, TFromMediumTypes>,
__MediumTypeOf<TValue, TFromMediumTypes>
__MediumTypeOfRecordKeyType<TKeyType, TFromMediumTypes>,
__MediumTypeOf<TValueType, TFromMediumTypes>
>

@@ -61,4 +63,4 @@ >,

Record<
__MediumTypeOfRecordKeyType<TKey, TToMediumTypes>,
__MediumTypeOf<TValue, TToMediumTypes>
__MediumTypeOfRecordKeyType<TKeyType, TToMediumTypes>,
__MediumTypeOf<TValueType, TToMediumTypes>
>

@@ -69,3 +71,3 @@ >;

value: unknown,
): value is Record<__TypeOfRecordKeyType<TKey>, TypeOf<TValue>>;
): value is Record<__TypeOfRecordKeyType<TKeyType>, TypeOf<TValueType>>;
}

@@ -75,6 +77,6 @@

// eslint-disable-next-line @typescript-eslint/no-unused-vars
TKey extends Type,
TValue extends Type,
TKeyType extends Type,
TValueType extends Type,
> extends Type<'record'> {
constructor(readonly Key: TKey, readonly Value: TValue) {
constructor(readonly Key: TKeyType, readonly Value: TValueType) {
super();

@@ -81,0 +83,0 @@ }

@@ -8,3 +8,3 @@ import type {

__RefinedType,
} from '../@utils';
} from '../@internal';
import type {Medium} from '../medium';

@@ -11,0 +11,0 @@

@@ -6,4 +6,4 @@ import type {

__TupleMediumType,
} from '../@utils';
import {__MediumTypeOf, toString} from '../@utils';
} from '../@internal';
import {__MediumTypeOf, toString} from '../@internal';
import type {Medium} from '../medium';

@@ -10,0 +10,0 @@

/* eslint-disable @mufan/import-groups */
import type {__MediumTypeOf, __NominalPartial} from '../@utils';
import type {__MediumTypeOf, __NominalPartial} from '../@internal';
import type {Medium} from '../medium';

@@ -5,0 +5,0 @@

@@ -6,3 +6,3 @@ import type {

__RefinedType,
} from '../@utils';
} from '../@internal';
import type {Medium} from '../medium';

@@ -9,0 +9,0 @@

@@ -1,2 +0,2 @@

import {toString} from './@utils';
import {toString} from './@internal';
import {atomic} from './type';

@@ -3,0 +3,0 @@

import isEqual from 'lodash.isequal';
import type {__NominalPartial} from './@utils';
import type {__NominalPartial} from './@internal';
import type {Type, TypeOf, __nominal, __type} from './type';

@@ -5,0 +5,0 @@ import {RefinedType, record} from './type';

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc