@thi.ng/defmulti
Advanced tools
Comparing version 2.1.23 to 2.1.24
70
api.d.ts
import type { Fn, Fn2, Fn3, Fn4, Fn5, Fn6, Fn7, Fn8, FnAny, IObjectOf, Pair } from "@thi.ng/api"; | ||
export declare type DispatchFn = FnAny<PropertyKey>; | ||
export declare type DispatchFn1<A> = Fn<A, PropertyKey>; | ||
export declare type DispatchFn1O<A, B> = (a: A, b?: B) => PropertyKey; | ||
export declare type DispatchFn2<A, B> = Fn2<A, B, PropertyKey>; | ||
export declare type DispatchFn2O<A, B, C> = (a: A, b: B, c?: C) => PropertyKey; | ||
export declare type DispatchFn3<A, B, C> = Fn3<A, B, C, PropertyKey>; | ||
export declare type DispatchFn3O<A, B, C, D> = (a: A, b: B, c: C, d?: D) => PropertyKey; | ||
export declare type DispatchFn4<A, B, C, D> = Fn4<A, B, C, D, PropertyKey>; | ||
export declare type DispatchFn4O<A, B, C, D, E> = (a: A, b: B, c: C, d: D, e?: E) => PropertyKey; | ||
export declare type DispatchFn5<A, B, C, D, E> = Fn5<A, B, C, D, E, PropertyKey>; | ||
export declare type DispatchFn5O<A, B, C, D, E, F> = (a: A, b: B, c: C, d: D, e: E, f?: F) => PropertyKey; | ||
export declare type DispatchFn6<A, B, C, D, E, F> = Fn6<A, B, C, D, E, F, PropertyKey>; | ||
export declare type DispatchFn6O<A, B, C, D, E, F, G> = (a: A, b: B, c: C, d: D, e: E, f: F, g?: G) => PropertyKey; | ||
export declare type DispatchFn7<A, B, C, D, E, F, G> = Fn7<A, B, C, D, E, F, G, PropertyKey>; | ||
export declare type DispatchFn7O<A, B, C, D, E, F, G, H> = (a: A, b: B, c: C, d: D, e: E, f: F, g: G, h?: H) => PropertyKey; | ||
export declare type DispatchFn8<A, B, C, D, E, F, G, H> = Fn8<A, B, C, D, E, F, G, H, PropertyKey>; | ||
export declare type DispatchFn8O<A, B, C, D, E, F, G, H, I> = (a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i?: I) => PropertyKey; | ||
export declare type Implementation<T> = FnAny<T>; | ||
export declare type Implementation1<A, T> = Fn<A, T>; | ||
export declare type Implementation1O<A, B, T> = (a: A, b?: B) => T; | ||
export declare type Implementation2<A, B, T> = Fn2<A, B, T>; | ||
export declare type Implementation2O<A, B, C, T> = (a: A, b: B, c?: C) => T; | ||
export declare type Implementation3<A, B, C, T> = Fn3<A, B, C, T>; | ||
export declare type Implementation3O<A, B, C, D, T> = (a: A, b: B, c: C, d?: D) => T; | ||
export declare type Implementation4<A, B, C, D, T> = Fn4<A, B, C, D, T>; | ||
export declare type Implementation4O<A, B, C, D, E, T> = (a: A, b: B, c: C, d: D, e?: E) => T; | ||
export declare type Implementation5<A, B, C, D, E, T> = Fn5<A, B, C, D, E, T>; | ||
export declare type Implementation5O<A, B, C, D, E, F, T> = (a: A, b: B, c: C, d: D, e: E, f?: F) => T; | ||
export declare type Implementation6<A, B, C, D, E, F, T> = Fn6<A, B, C, D, E, F, T>; | ||
export declare type Implementation6O<A, B, C, D, E, F, G, T> = (a: A, b: B, c: C, d: D, e: E, f: F, g?: G) => T; | ||
export declare type Implementation7<A, B, C, D, E, F, G, T> = Fn7<A, B, C, D, E, F, G, T>; | ||
export declare type Implementation7O<A, B, C, D, E, F, G, H, T> = (a: A, b: B, c: C, d: D, e: E, f: F, g: G, h?: H) => T; | ||
export declare type Implementation8<A, B, C, D, E, F, G, H, T> = Fn8<A, B, C, D, E, F, G, H, T>; | ||
export declare type Implementation8O<A, B, C, D, E, F, G, H, I, T> = (a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i?: I) => T; | ||
export type DispatchFn = FnAny<PropertyKey>; | ||
export type DispatchFn1<A> = Fn<A, PropertyKey>; | ||
export type DispatchFn1O<A, B> = (a: A, b?: B) => PropertyKey; | ||
export type DispatchFn2<A, B> = Fn2<A, B, PropertyKey>; | ||
export type DispatchFn2O<A, B, C> = (a: A, b: B, c?: C) => PropertyKey; | ||
export type DispatchFn3<A, B, C> = Fn3<A, B, C, PropertyKey>; | ||
export type DispatchFn3O<A, B, C, D> = (a: A, b: B, c: C, d?: D) => PropertyKey; | ||
export type DispatchFn4<A, B, C, D> = Fn4<A, B, C, D, PropertyKey>; | ||
export type DispatchFn4O<A, B, C, D, E> = (a: A, b: B, c: C, d: D, e?: E) => PropertyKey; | ||
export type DispatchFn5<A, B, C, D, E> = Fn5<A, B, C, D, E, PropertyKey>; | ||
export type DispatchFn5O<A, B, C, D, E, F> = (a: A, b: B, c: C, d: D, e: E, f?: F) => PropertyKey; | ||
export type DispatchFn6<A, B, C, D, E, F> = Fn6<A, B, C, D, E, F, PropertyKey>; | ||
export type DispatchFn6O<A, B, C, D, E, F, G> = (a: A, b: B, c: C, d: D, e: E, f: F, g?: G) => PropertyKey; | ||
export type DispatchFn7<A, B, C, D, E, F, G> = Fn7<A, B, C, D, E, F, G, PropertyKey>; | ||
export type DispatchFn7O<A, B, C, D, E, F, G, H> = (a: A, b: B, c: C, d: D, e: E, f: F, g: G, h?: H) => PropertyKey; | ||
export type DispatchFn8<A, B, C, D, E, F, G, H> = Fn8<A, B, C, D, E, F, G, H, PropertyKey>; | ||
export type DispatchFn8O<A, B, C, D, E, F, G, H, I> = (a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i?: I) => PropertyKey; | ||
export type Implementation<T> = FnAny<T>; | ||
export type Implementation1<A, T> = Fn<A, T>; | ||
export type Implementation1O<A, B, T> = (a: A, b?: B) => T; | ||
export type Implementation2<A, B, T> = Fn2<A, B, T>; | ||
export type Implementation2O<A, B, C, T> = (a: A, b: B, c?: C) => T; | ||
export type Implementation3<A, B, C, T> = Fn3<A, B, C, T>; | ||
export type Implementation3O<A, B, C, D, T> = (a: A, b: B, c: C, d?: D) => T; | ||
export type Implementation4<A, B, C, D, T> = Fn4<A, B, C, D, T>; | ||
export type Implementation4O<A, B, C, D, E, T> = (a: A, b: B, c: C, d: D, e?: E) => T; | ||
export type Implementation5<A, B, C, D, E, T> = Fn5<A, B, C, D, E, T>; | ||
export type Implementation5O<A, B, C, D, E, F, T> = (a: A, b: B, c: C, d: D, e: E, f?: F) => T; | ||
export type Implementation6<A, B, C, D, E, F, T> = Fn6<A, B, C, D, E, F, T>; | ||
export type Implementation6O<A, B, C, D, E, F, G, T> = (a: A, b: B, c: C, d: D, e: E, f: F, g?: G) => T; | ||
export type Implementation7<A, B, C, D, E, F, G, T> = Fn7<A, B, C, D, E, F, G, T>; | ||
export type Implementation7O<A, B, C, D, E, F, G, H, T> = (a: A, b: B, c: C, d: D, e: E, f: F, g: G, h?: H) => T; | ||
export type Implementation8<A, B, C, D, E, F, G, H, T> = Fn8<A, B, C, D, E, F, G, H, T>; | ||
export type Implementation8O<A, B, C, D, E, F, G, H, I, T> = (a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i?: I) => T; | ||
export interface MultiFnBase<I> { | ||
@@ -152,3 +152,3 @@ /** | ||
} | ||
export declare type AncestorDefs = IObjectOf<PropertyKey | PropertyKey[] | Set<PropertyKey>>; | ||
export type AncestorDefs = IObjectOf<PropertyKey | PropertyKey[] | Set<PropertyKey>>; | ||
//# sourceMappingURL=api.d.ts.map |
# Change Log | ||
- **Last updated**: 2022-11-30T22:27:37Z | ||
- **Last updated**: 2022-12-16T12:52:25Z | ||
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub) | ||
@@ -5,0 +5,0 @@ |
{ | ||
"name": "@thi.ng/defmulti", | ||
"version": "2.1.23", | ||
"version": "2.1.24", | ||
"description": "Dynamic, extensible multiple dispatch via user supplied dispatch function.", | ||
@@ -24,3 +24,3 @@ "type": "module", | ||
], | ||
"author": "Karsten Schmidt <k+npm@thi.ng>", | ||
"author": "Karsten Schmidt (https://thi.ng)", | ||
"license": "Apache-2.0", | ||
@@ -38,13 +38,13 @@ "scripts": { | ||
"dependencies": { | ||
"@thi.ng/api": "^8.5.1", | ||
"@thi.ng/errors": "^2.2.5", | ||
"@thi.ng/logger": "^1.4.4" | ||
"@thi.ng/api": "^8.6.0", | ||
"@thi.ng/errors": "^2.2.6", | ||
"@thi.ng/logger": "^1.4.5" | ||
}, | ||
"devDependencies": { | ||
"@microsoft/api-extractor": "^7.33.5", | ||
"@thi.ng/testament": "^0.3.6", | ||
"@microsoft/api-extractor": "^7.33.7", | ||
"@thi.ng/testament": "^0.3.7", | ||
"rimraf": "^3.0.2", | ||
"tools": "^0.0.1", | ||
"typedoc": "^0.23.20", | ||
"typescript": "^4.8.4" | ||
"typedoc": "^0.23.22", | ||
"typescript": "^4.9.4" | ||
}, | ||
@@ -95,3 +95,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "1fe40da507070653f420156d91e6b27cf682004f\n" | ||
"gitHead": "f445a9cc8022bcdebbf6ff91fd66ced016d72f01\n" | ||
} |
<!-- This file is generated - DO NOT EDIT! --> | ||
# ![defmulti](https://media.thi.ng/umbrella/banners-20220914/thing-defmulti.svg?a884adc9) | ||
# ![@thi.ng/defmulti](https://media.thi.ng/umbrella/banners-20220914/thing-defmulti.svg?a884adc9) | ||
[![npm version](https://img.shields.io/npm/v/@thi.ng/defmulti.svg)](https://www.npmjs.com/package/@thi.ng/defmulti) | ||
![npm downloads](https://img.shields.io/npm/dm/@thi.ng/defmulti.svg) | ||
[![Twitter Follow](https://img.shields.io/twitter/follow/thing_umbrella.svg?style=flat-square&label=twitter)](https://twitter.com/thing_umbrella) | ||
[![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi) | ||
@@ -59,7 +59,4 @@ This project is part of the | ||
```text | ||
# with flag only for < v16 | ||
node --experimental-repl-await | ||
> const defmulti = await import("@thi.ng/defmulti"); | ||
```js | ||
const defmulti = await import("@thi.ng/defmulti"); | ||
``` | ||
@@ -387,3 +384,3 @@ | ||
Karsten Schmidt | ||
- [Karsten Schmidt](https://thi.ng) | ||
@@ -403,2 +400,2 @@ If this project contributes to an academic publication, please cite it as: | ||
© 2018 - 2022 Karsten Schmidt // Apache Software License 2.0 | ||
© 2018 - 2022 Karsten Schmidt // Apache License 2.0 |
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
58537
399
Updated@thi.ng/api@^8.6.0
Updated@thi.ng/errors@^2.2.6
Updated@thi.ng/logger@^1.4.5