Testing actions

This commit is contained in:
Janos 2021-07-28 08:24:31 +02:00
commit 8a260b16ec
No known key found for this signature in database
GPG key ID: 465EF45E51CBA2BA
340 changed files with 72676 additions and 0 deletions

View file

@ -0,0 +1,13 @@
import { endpointWithDefaults } from "./endpoint-with-defaults";
import { merge } from "./merge";
import { parse } from "./parse";
export function withDefaults(oldDefaults, newDefaults) {
const DEFAULTS = merge(oldDefaults, newDefaults);
const endpoint = endpointWithDefaults.bind(null, DEFAULTS);
return Object.assign(endpoint, {
DEFAULTS,
defaults: withDefaults.bind(null, DEFAULTS),
merge: merge.bind(null, DEFAULTS),
parse,
});
}