Comparing version 0.1.6 to 0.1.7
@@ -6,3 +6,3 @@ /// <reference types="node" resolution-mode="require"/> | ||
export declare function omit<T extends object, K extends keyof T>(object: T, ...keys: readonly K[] | readonly (readonly K[])[]): Omit<T, K>; | ||
export declare function assignWithDefaults<To extends object, From extends Partial<To>>(to: To, from: From, defaults?: Partial<To>): void; | ||
export declare function assignWithDefaults<To extends object, From extends object>(to: To, from: From, defaults?: Partial<To>): void; | ||
export declare function isJSON(str: string): boolean; | ||
@@ -9,0 +9,0 @@ export declare abstract class FileMap<V> implements Map<string, V> { |
{ | ||
"name": "utilium", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "Typescript utilies", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -16,3 +16,3 @@ import type * as FS from 'fs'; | ||
export function assignWithDefaults<To extends object, From extends Partial<To>>(to: To, from: From, defaults: Partial<To> = to): void { | ||
export function assignWithDefaults<To extends object, From extends object>(to: To, from: From, defaults: Partial<To> = to): void { | ||
const keys = new Set([...Object.keys(to), ...Object.keys(from)]); | ||
@@ -19,0 +19,0 @@ for (const key of keys) { |
25080