Comparing version 0.5.0 to 0.6.0
@@ -19,4 +19,2 @@ import type { Primitive } from "./domain.ts"; | ||
} & u; | ||
/** Returns onTrue if the type is exactly `{}` and onFalse otherwise*/ | ||
export type ifEmptyObjectLiteral<t, onTrue = true, onFalse = false> = {} extends t ? keyof t extends never ? onTrue : onFalse : onFalse; | ||
export type leftIfEqual<l, r> = [l, r] extends [r, l] ? l : r; | ||
@@ -23,0 +21,0 @@ export type UnknownUnion = string | number | symbol | bigint | boolean | object | null | undefined; |
@@ -127,2 +127,7 @@ import type { array } from "./arrays.ts"; | ||
export declare const omit: <o extends object, keys extends keySetOf<o>>(o: o, keys: keys) => omit<o, keyof keys & keyof o>; | ||
/** Returns onTrue if the type is exactly `{}` and onFalse otherwise*/ | ||
export type ifEmptyObjectLiteral<t, onTrue = true, onFalse = false> = [ | ||
unknown, | ||
t & (null | undefined) | ||
] extends [t | null | undefined, never] ? onTrue : onFalse; | ||
export type EmptyObject = Record<PropertyKey, never>; | ||
@@ -129,0 +134,0 @@ export declare const isEmptyObject: (o: object) => o is EmptyObject; |
@@ -1,2 +0,2 @@ | ||
export declare const arkUtilVersion = "0.5.0"; | ||
export declare const arkUtilVersion = "0.6.0"; | ||
export declare const initialRegistryContents: { | ||
@@ -3,0 +3,0 @@ version: string; |
@@ -8,3 +8,3 @@ import { domainOf } from "./domain.js"; | ||
// For now, we assert this matches the package.json version via a unit test. | ||
export const arkUtilVersion = "0.5.0"; | ||
export const arkUtilVersion = "0.6.0"; | ||
export const initialRegistryContents = { | ||
@@ -11,0 +11,0 @@ version: arkUtilVersion, |
{ | ||
"name": "@ark/util", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "David Blass", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
89704
1935