typed-dom
Advanced tools
Comparing version 0.0.347 to 0.0.348
@@ -1,13 +0,19 @@ | ||
import { Dict } from './dict'; | ||
export declare function memoize<f extends (...as: [unknown, ...unknown[]]) => unknown, b = Parameters<f>[0]>(f: f, memory?: Dict<b, ReturnType<f>>): f; | ||
import type { NonNull } from './type'; | ||
interface Cache<K, V> { | ||
add?(key: K, value: V): NonNull; | ||
set(key: K, value: V): this; | ||
get(key: K): V | undefined; | ||
has(key: K): boolean; | ||
} | ||
export declare function memoize<f extends (...as: [unknown, ...unknown[]]) => unknown, b = Parameters<f>[0]>(f: f, memory?: Cache<b, ReturnType<f>>): f; | ||
export declare function memoize<f extends (...as: [number, ...unknown[]]) => unknown, b extends number = Parameters<f>[0]>(f: f, memory: Record<b, ReturnType<f>>): f; | ||
export declare function memoize<f extends (...as: [unknown, ...unknown[]]) => unknown, b = Parameters<f>[0]>(f: f, identify: (...as: Parameters<f>) => b, memory?: Dict<b, ReturnType<f>>): f; | ||
export declare function memoize<f extends (...as: [unknown, ...unknown[]]) => unknown, b = Parameters<f>[0]>(f: f, identify: (...as: Parameters<f>) => b, memory?: Cache<b, ReturnType<f>>): f; | ||
export declare function memoize<f extends (...as: [unknown, ...unknown[]]) => unknown, b extends number = number>(f: f, identify: (...as: Parameters<f>) => b, memory: Record<b, ReturnType<f>>): f; | ||
export declare function memoize<a, z, b = a>(f: (a: a) => z, memory?: Dict<b, z>): typeof f; | ||
export declare function memoize<a, z, b = a>(f: (a: a) => z, memory?: Cache<b, z>): typeof f; | ||
export declare function memoize<a extends number, z, b extends number = a>(f: (a: a) => z, memory: Record<b, z>): typeof f; | ||
export declare function memoize<a, z, b = a>(f: (a: a) => z, identify: (a: a) => b, memory?: Dict<b, z>): typeof f; | ||
export declare function memoize<a, z, b = a>(f: (a: a) => z, identify: (a: a) => b, memory?: Cache<b, z>): typeof f; | ||
export declare function memoize<a, z, b extends number = number>(f: (a: a) => z, identify: (a: a) => b, memory: Record<b, z>): typeof f; | ||
export declare function memoize<as extends [unknown, ...unknown[]], z, b = as[0]>(f: (...as: as) => z, memory?: Dict<b, z>): typeof f; | ||
export declare function memoize<as extends [unknown, ...unknown[]], z, b = as[0]>(f: (...as: as) => z, memory?: Cache<b, z>): typeof f; | ||
export declare function memoize<as extends [number, ...unknown[]], z, b extends number = as[0]>(f: (...as: as) => z, memory: Record<b, z>): typeof f; | ||
export declare function memoize<as extends [unknown, ...unknown[]], z, b = as[0]>(f: (...as: as) => z, identify: (...as: as) => b, memory?: Dict<b, z>): typeof f; | ||
export declare function memoize<as extends [unknown, ...unknown[]], z, b = as[0]>(f: (...as: as) => z, identify: (...as: as) => b, memory?: Cache<b, z>): typeof f; | ||
export declare function memoize<as extends [unknown, ...unknown[]], z, b extends number = number>(f: (...as: as) => z, identify: (...as: as) => b, memory: Record<b, z>): typeof f; | ||
@@ -20,1 +26,2 @@ export declare function reduce<f extends (...as: [unknown, ...unknown[]]) => unknown, b = Parameters<f>[0]>(f: f): f; | ||
export declare function reduce<as extends [unknown, ...unknown[]], z, b = as[0]>(f: (...as: as) => z, identify?: (...as: as) => b): typeof f; | ||
export {}; |
@@ -1,2 +0,2 @@ | ||
/*! typed-dom v0.0.347 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
/*! typed-dom v0.0.348 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
@@ -3,0 +3,0 @@ if(typeof exports === 'object' && typeof module === 'object') |
@@ -1,2 +0,2 @@ | ||
/*! typed-dom v0.0.347 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
/*! typed-dom v0.0.348 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
@@ -3,0 +3,0 @@ if(typeof exports === 'object' && typeof module === 'object') |
@@ -1,2 +0,2 @@ | ||
/*! typed-dom v0.0.347 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
/*! typed-dom v0.0.348 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
@@ -3,0 +3,0 @@ if(typeof exports === 'object' && typeof module === 'object') |
@@ -1,2 +0,2 @@ | ||
/*! typed-dom v0.0.347 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
/*! typed-dom v0.0.348 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
@@ -3,0 +3,0 @@ if(typeof exports === 'object' && typeof module === 'object') |
@@ -1,2 +0,2 @@ | ||
/*! typed-dom v0.0.347 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
/*! typed-dom v0.0.348 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
@@ -3,0 +3,0 @@ if(typeof exports === 'object' && typeof module === 'object') |
{ | ||
"name": "typed-dom", | ||
"version": "0.0.347", | ||
"version": "0.0.348", | ||
"description": "A value-level and type-level DOM builder.", | ||
@@ -36,16 +36,17 @@ "private": false, | ||
"dependencies": { | ||
"spica": "0.0.761", | ||
"typed-query-selector": "^2.11.0" | ||
}, | ||
"devDependencies": { | ||
"@types/benchmark": "2.1.2", | ||
"@types/mocha": "10.0.1", | ||
"@types/power-assert": "1.5.8", | ||
"@typescript-eslint/parser": "^6.5.0", | ||
"@types/benchmark": "2.1.4", | ||
"@types/mocha": "10.0.3", | ||
"@types/power-assert": "1.5.10", | ||
"@typescript-eslint/parser": "^6.10.0", | ||
"babel-loader": "^9.1.3", | ||
"babel-plugin-unassert": "^3.2.0", | ||
"concurrently": "^8.2.1", | ||
"eslint": "^8.48.0", | ||
"concurrently": "^8.2.2", | ||
"eslint": "^8.53.0", | ||
"eslint-plugin-redos": "^4.4.5", | ||
"eslint-webpack-plugin": "^4.0.1", | ||
"glob": "^10.3.4", | ||
"glob": "^10.3.10", | ||
"i18next": "22.4.4", | ||
@@ -59,9 +60,8 @@ "karma": "^6.4.2", | ||
"mocha": "^10.2.0", | ||
"npm-check-updates": "^16.13.2", | ||
"spica": "0.0.757", | ||
"ts-loader": "^9.4.4", | ||
"npm-check-updates": "^16.14.6", | ||
"ts-loader": "^9.5.0", | ||
"typescript": "5.2.2", | ||
"webpack": "^5.88.2", | ||
"webpack": "^5.89.0", | ||
"webpack-cli": "^5.1.4", | ||
"webpack-merge": "^5.9.0" | ||
"webpack-merge": "^5.10.0" | ||
}, | ||
@@ -68,0 +68,0 @@ "scripts": { |
@@ -1,2 +0,2 @@ | ||
/*! typed-dom v0.0.347 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
/*! typed-dom v0.0.348 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
@@ -3,0 +3,0 @@ if(typeof exports === 'object' && typeof module === 'object') |
@@ -1,2 +0,2 @@ | ||
/*! typed-dom v0.0.347 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
/*! typed-dom v0.0.348 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
@@ -3,0 +3,0 @@ if(typeof exports === 'object' && typeof module === 'object') |
Sorry, the diff of this file is too big to display
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
25
424914
2
109
9518
+ Addedspica@0.0.761
+ Addedspica@0.0.761(transitive)