@bodar/totallylazy
Advanced tools
Comparing version 0.420.263 to 0.421.264
@@ -69,5 +69,5 @@ "use strict"; | ||
"symbols": [ | ||
"AUD", | ||
"AU$", | ||
"A$", | ||
"AU$", | ||
"AUD", | ||
"$" | ||
@@ -74,0 +74,0 @@ ] |
{ | ||
"name": "@bodar/totallylazy", | ||
"version": "0.420.263", | ||
"version": "0.421.264", | ||
"description": "Totallylazy", | ||
@@ -5,0 +5,0 @@ "repository": "git@github.com:bodar/totallylazy.js.git", |
@@ -49,2 +49,3 @@ import { NamedMatch, NamedRegExp } from "./characters"; | ||
export declare function uniqueMatch<V>(prefixTree: PrefixTree<Datum<V>[]>, value: string): V | undefined; | ||
export declare function prefer<V>(value: undefined): undefined; | ||
export declare function prefer<V>(...values: V[]): MatchStrategy<V>; | ||
@@ -51,0 +52,0 @@ export declare function infer(locale: string): MatchStrategy<string>; |
@@ -112,2 +112,4 @@ "use strict"; | ||
function prefer(...values) { | ||
if (values.filter(Boolean).length === 0) | ||
return undefined; | ||
return (prefixTree, value) => { | ||
@@ -114,0 +116,0 @@ const matches = prefixTree.lookup(value) || []; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
427730
6239