🚀. Socket Launch Week Day 3:Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions.Learn more
Sign In

@ark/util

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ark/util - npm Package Compare versions

Comparing version
0.54.0
to
0.55.0
+14
-1
out/records.d.ts

@@ -92,4 +92,16 @@ import type { array } from "./arrays.ts";

export declare const InnerDynamicBase: new <t extends object>(base: t) => t;
export declare class Covariant<t> {
/**
* Patterns of the form `interface Example<T> extends T {}` don't count as using `T`.
* From tsc's point of view when calculating variance it may as well look like `interface Example<T> {}`.
* Fundamentally this ordinarily means `Example<T>` will always be assignable to `Example<U>` and
* vice versa.
*
* Obviously this is a problem, so `Covariant` exists to add an unobtrusive covariant usage of the type
* parameter, making `Example<T>` assignable to `Example<U>` only if `T` is a subtype of `U`.
*/
private " covariant"?;
}
/** @ts-ignore (needed to extend `t`) **/
export interface DynamicBase<t extends object> extends t {
export interface DynamicBase<t extends object> extends t, Covariant<t> {
}

@@ -102,2 +114,3 @@ export declare class DynamicBase<t extends object> {

export declare class CastableBase<t extends object> extends NoopBase<t> {
private " covariant"?;
}

@@ -104,0 +117,0 @@ export declare const splitByKeys: <o extends object, leftKeys extends keySetOf<o>>(o: o, leftKeys: leftKeys) => [show<Pick<o, keyof leftKeys & keyof o>>, show<Omit<o, keyof leftKeys & keyof o>>];

+1
-1

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

export declare const arkUtilVersion = "0.54.0";
export declare const arkUtilVersion = "0.55.0";
export declare const initialRegistryContents: {

@@ -3,0 +3,0 @@ version: string;

@@ -9,3 +9,3 @@ import { domainOf } from "./domain.js";

// For now, we assert this matches the package.json version via a unit test.
export const arkUtilVersion = "0.54.0";
export const arkUtilVersion = "0.55.0";
export const initialRegistryContents = {

@@ -12,0 +12,0 @@ version: arkUtilVersion,

{
"name": "@ark/util",
"version": "0.54.0",
"version": "0.55.0",
"license": "MIT",

@@ -5,0 +5,0 @@ "author": {