spooder 4.2.14 → 4.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/api.ts +1 -1
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -108,7 +108,7 @@ export async function safe(target_fn: Callable) {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
type ReplacerFn = (key: string) => string | Array<string
|
|
111
|
+
type ReplacerFn = (key: string) => string | Array<string> | undefined;
|
|
112
112
|
type Replacements = Record<string, string | Array<string>> | ReplacerFn;
|
|
113
113
|
|
|
114
114
|
export function parse_template(template: string, replacements: Replacements, drop_missing = false): string {
|