inferred-types 0.53.2 → 0.53.4

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.
@@ -92,12 +92,21 @@ var ALPHA_CHARS = [
92
92
  ...LOWER_ALPHA_CHARS,
93
93
  ...UPPER_ALPHA_CHARS
94
94
  ];
95
+ var string = `{{ string }}`;
96
+ var AMAZON_BOOKS = [
97
+ `https://www.amazon.com/${string}storeType=ebooks${string}`,
98
+ `https://www.amazon.com/${string}ref=tmm_hrd_swatch${string}`,
99
+ `https://www.amazon.com/${string}ref=tmm_pap_swatch${string}`,
100
+ `https://www.amazon.com/${string}ref=tmm_aud_swatch${string}`,
101
+ `https://www.amazon.com/books-used-books-textbooks/${string}`
102
+ ];
95
103
  var WHITESPACE_CHARS = [
96
104
  " ",
97
105
  "\n",
98
106
  " ",
99
107
  "\b"
100
108
  ];
109
+ var COMMA = createConstant("comma");
101
110
  function createConstant(kind) {
102
111
  return {
103
112
  _type: "Constant",
@@ -180,6 +189,97 @@ var US_STATE_LOOKUP = [
180
189
  ...US_STATE_LOOKUP_STRICT,
181
190
  ...US_STATE_LOOKUP_PROVINCES
182
191
  ];
192
+ var HASH_TABLE_ALPHA_LOWER = {
193
+ a: "8",
194
+ b: "~",
195
+ c: "^",
196
+ d: ".",
197
+ e: "82",
198
+ f: "89",
199
+ g: ",",
200
+ h: "!",
201
+ i: "-7",
202
+ j: "-8",
203
+ k: "88",
204
+ l: "8f",
205
+ m: "8e",
206
+ n: "6e",
207
+ o: "44",
208
+ p: "60",
209
+ q: "61",
210
+ r: "71",
211
+ s: ":",
212
+ t: "-45",
213
+ u: "-5",
214
+ v: "-9",
215
+ w: "-f",
216
+ x: "+1",
217
+ y: ";",
218
+ z: "*1"
219
+ };
220
+ var HASH_TABLE_SPECIAL = {
221
+ "!": "1",
222
+ "@": "8",
223
+ "#": "5",
224
+ "$": "4",
225
+ "%": "3",
226
+ "^": "2",
227
+ "&": "9",
228
+ "*": "7",
229
+ "(": "6",
230
+ ")": "12",
231
+ "{": "33",
232
+ "}": "54",
233
+ "[": "x8",
234
+ "]": "y4",
235
+ ":": "z2",
236
+ ";": "e88",
237
+ '"': "c11",
238
+ "'": "c12",
239
+ "<": "p3",
240
+ ",": "45",
241
+ ">": "e9",
242
+ ".": "f2",
243
+ "?": "ee",
244
+ "/": "u9",
245
+ "\\": "f9",
246
+ "|": "q1",
247
+ "~": "fe",
248
+ "`": "8e"
249
+ };
250
+ var HASH_TABLE_ALPHA_UPPER = {
251
+ A: "b8",
252
+ B: "~9",
253
+ C: "6^",
254
+ D: ".8",
255
+ E: "5<",
256
+ F: ">7",
257
+ G: "1,",
258
+ H: "!7",
259
+ I: "8#",
260
+ J: "@9",
261
+ K: "1*",
262
+ L: "4&",
263
+ M: "+5",
264
+ N: "j|",
265
+ O: "-l",
266
+ P: "q{",
267
+ Q: "]9",
268
+ R: "f%",
269
+ S: ":3",
270
+ T: "?+",
271
+ U: "}5",
272
+ V: "'4",
273
+ W: "1@g",
274
+ X: "0+1",
275
+ Y: "4;",
276
+ Z: "a*1"
277
+ };
278
+ var HASH_TABLE_CHAR = {
279
+ ...HASH_TABLE_ALPHA_LOWER,
280
+ ...HASH_TABLE_ALPHA_UPPER,
281
+ ...HASH_TABLE_SPECIAL
282
+ };
183
283
  var ISO3166_1 = [
184
284
  { name: "Afghanistan", alpha2: "AF", countryCode: "004", alpha3: "AFG" },
185
285
  { name: "Albania", alpha2: "AL", countryCode: "008", alpha3: "ALB" },
@@ -324,6 +424,7 @@ var ISO3166_1 = [
324
424
  { name: "Zambia", alpha2: "ZM", countryCode: "894", alpha3: "ZMB" },
325
425
  { name: "Zimbabwe", alpha2: "ZW", countryCode: "716", alpha3: "ZWE" }
326
426
  ];
427
+ var MARKED = createConstant("Marked");
327
428
  var DISTANCE_METRICS_LOOKUP = [
328
429
  { abbrev: "km", name: "kilometer" },
329
430
  { abbrev: "mi", name: "mile" },
@@ -903,6 +1004,7 @@ var NORWEGIAN_NEWS = [
903
1004
  { company: "Hamar Arbeiderblad", baseUrls: ["www.h-a.no"], type: ["newspaper", "digital"] }
904
1005
  ];
905
1006
  var NO_DEFAULT_VALUE = createConstant("no-default-value");
1007
+ var NOT_APPLICABLE = Symbol("not applicable");
906
1008
  var NOT_DEFINED = createConstant("not-defined");
907
1009
  var NUMERIC_CHAR = [
908
1010
  "0",
@@ -1291,17 +1393,17 @@ var TW_LUMINOSITY = {
1291
1393
  900: 32,
1292
1394
  950: 23.78
1293
1395
  };
1294
- TW_LUMINOSITY["50"];
1295
- TW_LUMINOSITY["100"];
1296
- TW_LUMINOSITY["200"];
1297
- TW_LUMINOSITY["300"];
1298
- TW_LUMINOSITY["400"];
1299
- TW_LUMINOSITY["500"];
1300
- TW_LUMINOSITY["600"];
1301
- TW_LUMINOSITY["700"];
1302
- TW_LUMINOSITY["800"];
1303
- TW_LUMINOSITY["900"];
1304
- TW_LUMINOSITY["950"];
1396
+ var TW_LUMIN_50 = TW_LUMINOSITY["50"];
1397
+ var TW_LUMIN_100 = TW_LUMINOSITY["100"];
1398
+ var TW_LUMIN_200 = TW_LUMINOSITY["200"];
1399
+ var TW_LUMIN_300 = TW_LUMINOSITY["300"];
1400
+ var TW_LUMIN_400 = TW_LUMINOSITY["400"];
1401
+ var TW_LUMIN_500 = TW_LUMINOSITY["500"];
1402
+ var TW_LUMIN_600 = TW_LUMINOSITY["600"];
1403
+ var TW_LUMIN_700 = TW_LUMINOSITY["700"];
1404
+ var TW_LUMIN_800 = TW_LUMINOSITY["800"];
1405
+ var TW_LUMIN_900 = TW_LUMINOSITY["900"];
1406
+ var TW_LUMIN_950 = TW_LUMINOSITY["950"];
1305
1407
  var TW_CHROMA = {
1306
1408
  50: 0.0108,
1307
1409
  100: 0.0321,
@@ -1315,17 +1417,17 @@ var TW_CHROMA = {
1315
1417
  900: 0.0726,
1316
1418
  950: 0.054
1317
1419
  };
1318
- TW_CHROMA["50"];
1319
- TW_CHROMA["100"];
1320
- TW_CHROMA["200"];
1321
- TW_CHROMA["300"];
1322
- TW_CHROMA["400"];
1323
- TW_CHROMA["500"];
1324
- TW_CHROMA["600"];
1325
- TW_CHROMA["700"];
1326
- TW_CHROMA["800"];
1327
- TW_CHROMA["900"];
1328
- TW_CHROMA["950"];
1420
+ var TW_CHROMA_50 = TW_CHROMA["50"];
1421
+ var TW_CHROMA_100 = TW_CHROMA["100"];
1422
+ var TW_CHROMA_200 = TW_CHROMA["200"];
1423
+ var TW_CHROMA_300 = TW_CHROMA["300"];
1424
+ var TW_CHROMA_400 = TW_CHROMA["400"];
1425
+ var TW_CHROMA_500 = TW_CHROMA["500"];
1426
+ var TW_CHROMA_600 = TW_CHROMA["600"];
1427
+ var TW_CHROMA_700 = TW_CHROMA["700"];
1428
+ var TW_CHROMA_800 = TW_CHROMA["800"];
1429
+ var TW_CHROMA_900 = TW_CHROMA["900"];
1430
+ var TW_CHROMA_950 = TW_CHROMA["950"];
1329
1431
  var TW_COLOR_TARGETS = [
1330
1432
  "bg",
1331
1433
  "text",
@@ -1397,7 +1499,7 @@ function entry(refType, desc, ...params) {
1397
1499
  )
1398
1500
  ];
1399
1501
  }
1400
- ({
1502
+ var TYPE_COMPARISONS = {
1401
1503
  Extends: entry((t) => t.unknown(), "extends the type", (t) => t.unknown()),
1402
1504
  NotExtends: entry((t) => t.unknown(), "does not extent the type", (t) => t.unknown()),
1403
1505
  Equals: entry((t) => t.unknown(), "equals the type", (t) => t.unknown()),
@@ -1428,7 +1530,46 @@ function entry(refType, desc, ...params) {
1428
1530
  Contains: entry((t) => t.tuple(), "must be a tuple and have elements that extends the value [[0]]", (t) => t.unknown()),
1429
1531
  // TODO: get the below working`
1430
1532
  ContainsSome: entry((t) => t.tuple(), "must be a tuple and have elements that extends the value [[0]]", (t) => t.singularTuple())
1431
- });
1533
+ };
1534
+ var FALSY_TYPE_KINDS = [
1535
+ "undefined",
1536
+ "null"
1537
+ ];
1538
+ var LITERAL_TYPE_KINDS = [
1539
+ "true",
1540
+ "false",
1541
+ "stringLiteral",
1542
+ "numericLiteral"
1543
+ ];
1544
+ var WIDE_TYPE_KINDS = [
1545
+ "string",
1546
+ "number",
1547
+ "boolean"
1548
+ ];
1549
+ var NARROW_CONTAINER_TYPE_KINDS = [
1550
+ "object",
1551
+ "explicitFunctions",
1552
+ "fnType",
1553
+ "fnWithDict",
1554
+ "tuple",
1555
+ "union",
1556
+ "intersection",
1557
+ "arrayOf"
1558
+ ];
1559
+ var WIDE_CONTAINER_TYPE_KINDS = [
1560
+ "anyArray",
1561
+ "anyObject",
1562
+ "unknownObject",
1563
+ "anyFunction",
1564
+ "emptyObject"
1565
+ ];
1566
+ var TYPE_KINDS = [
1567
+ ...FALSY_TYPE_KINDS,
1568
+ ...WIDE_TYPE_KINDS,
1569
+ ...LITERAL_TYPE_KINDS,
1570
+ ...NARROW_CONTAINER_TYPE_KINDS,
1571
+ ...WIDE_CONTAINER_TYPE_KINDS
1572
+ ];
1432
1573
  var SIMPLE_SCALAR_TOKENS = [
1433
1574
  "string",
1434
1575
  "number",
@@ -1460,6 +1601,30 @@ var SIMPLE_OPT_SCALAR_TOKENS = [
1460
1601
  var SIMPLE_UNION_TOKENS = [
1461
1602
  `Union(TOKEN)`
1462
1603
  ];
1604
+ var SIMPLE_MAP_KEYS = [
1605
+ "string",
1606
+ "number",
1607
+ "Dict",
1608
+ "Dict<string, string>",
1609
+ "Dict<string, number>",
1610
+ "Dict<string, boolean>",
1611
+ "Dict<string, unknown>",
1612
+ "Dict<string, Opt<string>>",
1613
+ "Dict<string, Opt<number>>",
1614
+ "Dict<string, Opt<boolean>>"
1615
+ ];
1616
+ var SIMPLE_MAP_VALUES = [
1617
+ ...SIMPLE_MAP_KEYS,
1618
+ "boolean",
1619
+ "unknown",
1620
+ "undefined",
1621
+ "Dict",
1622
+ "Array",
1623
+ "Dict<string, Opt<string>>",
1624
+ "Dict<string, Opt<number>>",
1625
+ "Dict<string, Opt<boolean>>",
1626
+ "Dict<string, Opt<unknown>>"
1627
+ ];
1463
1628
  var SIMPLE_DICT_TOKENS = [
1464
1629
  "Dict",
1465
1630
  "Dict<string, string>",
@@ -1535,6 +1700,68 @@ var TT_Containers = [
1535
1700
  "obj",
1536
1701
  "tuple"
1537
1702
  ];
1703
+ var TYPE_TOKEN_IDENTITIES = [
1704
+ "string",
1705
+ "number",
1706
+ "numericString",
1707
+ "booleanString",
1708
+ "null",
1709
+ "undefined",
1710
+ "boolean",
1711
+ "true",
1712
+ "false",
1713
+ "space",
1714
+ "whitespace",
1715
+ "object",
1716
+ "emptyObject",
1717
+ "function",
1718
+ "array"
1719
+ ];
1720
+ var TYPE_TOKEN_PARAM_STR = [
1721
+ "explicitClass",
1722
+ "startsWith",
1723
+ "endsWith",
1724
+ "ensureLeading",
1725
+ "stripLeading",
1726
+ "ensureTrailing",
1727
+ "stripTrailing",
1728
+ "camelCase",
1729
+ "pascalCase",
1730
+ "snakeCase",
1731
+ "kebabCase",
1732
+ "explicitType"
1733
+ ];
1734
+ var TYPE_TOKEN_PARAM_CSV = [
1735
+ "stringLiteral",
1736
+ "numericLiteral",
1737
+ "objectLiteral",
1738
+ "tuple",
1739
+ "union"
1740
+ ];
1741
+ var TYPE_TOKEN_PARAM_DATETIME = [
1742
+ "datetime"
1743
+ ];
1744
+ var TYPE_TOKEN_PARAM_DATE = [
1745
+ "ymd",
1746
+ "monthThenDate",
1747
+ "dateThenMonth"
1748
+ ];
1749
+ var TYPE_TOKEN_PARAM_TIME = [
1750
+ "timeInMinutes",
1751
+ "timeInSeconds",
1752
+ "militaryTimeInMinutes",
1753
+ "militaryTimeInSeconds",
1754
+ "militaryTimeInMilliseconds",
1755
+ "civilianTimeInMinutes"
1756
+ ];
1757
+ var TYPE_TOKEN_ALL = [
1758
+ ...TYPE_TOKEN_IDENTITIES,
1759
+ ...TYPE_TOKEN_PARAM_CSV,
1760
+ ...TYPE_TOKEN_PARAM_DATE,
1761
+ ...TYPE_TOKEN_PARAM_DATETIME,
1762
+ ...TYPE_TOKEN_PARAM_STR,
1763
+ ...TYPE_TOKEN_PARAM_TIME
1764
+ ];
1538
1765
 
1539
1766
  // src/boolean-logic/ifChar.ts
1540
1767
  var def_if = (v) => v;
@@ -1704,6 +1931,23 @@ ${frameToCss(frames)}
1704
1931
  };
1705
1932
  }
1706
1933
 
1934
+ // src/css/defineCss.ts
1935
+ function createCss(defn, indent = "") {
1936
+ return Object.keys(defn).map((key) => `${indent}${key}: ${ensureTrailing(defn[key], ";")}
1937
+ `).join("");
1938
+ }
1939
+ function defineCss(defn) {
1940
+ const fn2 = (selector) => {
1941
+ return selector ? `${selector} {
1942
+ ${createCss(defn, " ")}}
1943
+ ` : createCss(defn);
1944
+ };
1945
+ return createFnWithProps(
1946
+ fn2,
1947
+ { defn }
1948
+ );
1949
+ }
1950
+
1707
1951
  // src/datetime/asDate.ts
1708
1952
  function asDate(input) {
1709
1953
  if (isDate(input)) {
@@ -2439,10 +2683,12 @@ function isIsoDateTime(val) {
2439
2683
  if (month < 1 || month > 12) {
2440
2684
  return false;
2441
2685
  }
2686
+ ;
2442
2687
  const daysInMonth = new Date(year, month, 0).getDate();
2443
2688
  if (day < 1 || day > daysInMonth) {
2444
2689
  return false;
2445
2690
  }
2691
+ ;
2446
2692
  const tzMatch = val.match(/([+-])(\d{2}):(\d{2})$/);
2447
2693
  if (tzMatch) {
2448
2694
  const [_2, _sign, tzHours, tzMinutes] = tzMatch;
@@ -2861,8 +3107,8 @@ function isFalsy(val) {
2861
3107
  }
2862
3108
 
2863
3109
  // src/type-guards/isFnWithParams.ts
2864
- function isFnWithParams(input) {
2865
- return typeof input === "function" && Object.keys(input)?.length > 0;
3110
+ function isFnWithParams(input, ...params) {
3111
+ return params.length === 0 ? typeof input === "function" && input?.length > 0 : typeof input === "function" && input?.length === params.length;
2866
3112
  }
2867
3113
 
2868
3114
  // src/type-guards/isHexadecimal.ts
@@ -4164,7 +4410,7 @@ function simpleScalarTokenToTypeToken(val) {
4164
4410
  return val in scalarToToken ? scalarToToken[val] : val.startsWith("string(") ? stringLiteral(val).includes(",") ? `<<union::[ ${stringLiteral(val).split(/,\s?/).map((i) => `"${i}"`).join(", ")} ]>>` : `<<string::${stringLiteral(val)}>>` : val.startsWith("number(") ? numericLiteral(val).includes(",") ? `<<union::[ ${numericLiteral(val).split(/,\s?/).join(", ")} ]>>` : `<<number::${numericLiteral(val)}>>` : val.startsWith("Opt<") ? handleOptional(val) : `<<never>>`;
4165
4411
  }
4166
4412
  function unionNode(node) {
4167
- return isNumberLike(node) ? `<<number::${node}>>` : isBooleanLike(node) ? `<<${node}>>` : isSimpleContainerToken(node) ? simpleContainerTokenToTypeToken() : isSimpleScalarToken(node) ? simpleScalarToken(node) : `<<string::${node}>>`;
4413
+ return isNumberLike(node) ? `<<number::${node}>>` : isBooleanLike(node) ? `<<${node}>>` : isSimpleContainerToken(node) ? simpleContainerTokenToTypeToken(node) : isSimpleScalarToken(node) ? simpleScalarToken(node) : `<<string::${node}>>`;
4168
4414
  }
4169
4415
  function union2(nodes) {
4170
4416
  return Array.isArray(nodes) ? nodes.map((n) => unionNode(n)) : nodes.includes(",") ? nodes.split(/,\s?/).map((n) => unionNode(n)).join(", ") : unionNode(nodes);
@@ -4455,7 +4701,432 @@ function asVueRef(value) {
4455
4701
  _value: null
4456
4702
  };
4457
4703
  }
4458
-
4459
- export { ShapeApiImplementation, addFnToProps, addPropsToFn, and, asApi, asArray, asChars, asDate, asEscapeFunction, asIsoDate, asOptionalParamFunction, asPhoneFormat, asRecord, asString, asStringLiteral, asType, asTypeToken, asVueRef, box, boxDictionaryValues, capitalize, choices, createConverter, createCssKeyframe, createCssSelector, createErrorCondition, createFifoQueue, createFnWithProps, createLifoQueue, createTypeToken, cssColor, csv, defineObj, defineTuple, endsWith, ensureLeading, ensureSurround, ensureTrailing, entries, errCondition, filter, find, fnMeta, get, getDaysBetween, getEach, getPhoneCountryCode, getTailwindModifiers, getToday, getTomorrow, getUrlPath, getUrlPort, getUrlProtocol, getUrlQueryParams, getUrlSource, getWeekNumber, getYesterday, getYouTubePageType, handleDoneFn, hasDefaultValue, hasIndexOf, hasKeys, hasUrlPort, hasUrlQueryParameter, hasWhiteSpace, idLiteral, idTypeGuard, identity, ifArray, ifArrayPartial, ifBoolean, ifChar, ifContainer, ifDefined, ifFalse, ifFunction, ifHasKey, ifLength, ifLowercaseChar, ifNotNull, ifNull, ifNumber, ifObject, ifSameType, ifScalar, ifString, ifTrue, ifUndefined, ifUppercaseChar, indexOf, intersect, intersection, ip6GroupExpansion, ip6Prefix, isAccelerationMetric, isAccelerationUom, isAlpha, isAmazonUrl, isApi, isApiSurface, isAppleUrl, isAreaMetric, isAreaUom, isArray, isArrayToken, isAtomicToken, isAustralianNewsUrl, isBelgiumNewsUrl, isBestBuyUrl, isBitbucketUrl, isBoolean, isBooleanLike, isBox, isCanadianNewsUrl, isChineseNewsUrl, isCodeCommitUrl, isConstant, isContainer, isContainerToken, isCostCoUrl, isCountryAbbrev, isCountryCode2, isCountryCode3, isCountryName, isCssAspectRatio, isCurrentMetric, isCurrentUom, isCvsUrl, isDanishNewsUrl, isDate, isDefineObject, isDefined, isDellUrl, isDistanceMetric, isDistanceUom, isDomainName, isDoneFn, isDutchNewsUrl, isEbayUrl, isEmail, isEnergyMetric, isEnergyUom, isEqual, isErrorCondition, isEscapeFunction, isEtsyUrl, isFalse, isFalsy, isFnToken, isFnWithParams, isFrenchNewsUrl, isFrequencyMetric, isFrequencyUom, isFunction, isGeneratorToken, isGermanNewsUrl, isGithubIssueUrl, isGithubIssuesListUrl, isGithubOrgUrl, isGithubProjectUrl, isGithubProjectsListUrl, isGithubReleaseTagUrl, isGithubReleasesListUrl, isGithubRepoReleaseTagUrl, isGithubRepoReleasesUrl, isGithubRepoUrl, isGithubUrl, isHexadecimal, isHmUrl, isHomeDepotUrl, isHtmlElement, isIkeaUrl, isIndexable, isIndianNewsUrl, isInlineSvg, isIp4Address, isIp6Address, isIpAddress, isIso3166Alpha2, isIso3166Alpha3, isIso3166CountryCode, isIso3166CountryName, isIsoDate, isIsoDateTime, isIsoExplicitDate, isIsoExplicitTime, isIsoImplicitDate, isIsoImplicitTime, isIsoTime, isIsoYear, isItalianNewsUrl, isJapaneseNewsUrl, isKrogersUrl, isLeapYear, isLength, isLikeRegExp, isLowesUrl, isLuminosityMetric, isLuminosityUom, isLuxonDateTime, isMacysUrl, isMapToken, isMassMetric, isMassUom, isMetric, isMexicanNewsUrl, isMoment, isNever, isNewsUrl, isNikeUrl, isNorwegianNewsUrl, isNotNull, isNothing, isNull, isNumber, isNumberLike, isNumericArray, isNumericString, isObject, isObjectToken, isOptionalParamFunction, isPhoneNumber, isPowerMetric, isPowerUom, isPressureMetric, isPressureUom, isReadonlyArray, isRecordToken, isRef, isRegExp, isRepoSource, isRepoUrl, isResistance, isResistanceUom, isRetailUrl, isSameTypeOf, isScalar, isSemanticVersion, isSet, isSetToken, isShape, isShapeCallback, isSimpleContainerToken, isSimpleContainerTokenTuple, isSimpleScalarToken, isSimpleScalarTokenTuple, isSimpleToken, isSimpleTokenTuple, isSingletonToken, isSocialMediaProfileUrl, isSocialMediaUrl, isSouthKoreanNewsUrl, isSpanishNewsUrl, isSpecificConstant, isSpeedMetric, isSpeedUom, isString, isStringArray, isSwissNewsUrl, isSymbol, isTailwindColor, isTailwindColorClass, isTailwindColorName, isTailwindColorTarget, isTailwindColorWithLuminosity, isTailwindColorWithLuminosityAndOpacity, isTailwindModifier, isTargetUrl, isTemperatureMetric, isTemperatureUom, isThenable, isThisMonth, isThisWeek, isThisYear, isTimeMetric, isTimeUom, isToday, isTomorrow, isTrimable, isTrue, isTruthy, isTuple, isTupleToken, isTurkishNewsUrl, isTypeOf, isTypeToken, isTypeTuple, isUkNewsUrl, isUndefined, isUnionSetToken, isUnionToken, isUnset, isUom, isUri, isUrl, isUrlPath, isUrlSource, isUsNewsUrl, isUsStateAbbreviation, isUsStateName, isVoltageMetric, isVoltageUom, isVolumeMetric, isVolumeUom, isWalgreensUrl, isWalmartUrl, isWayfairUrl, isWeakMapToken, isWholeFoodsUrl, isYesterday, isYouTubeCreatorUrl, isYouTubeFeedHistoryUrl, isYouTubeFeedUrl, isYouTubePlaylistUrl, isYouTubePlaylistsUrl, isYouTubeShareUrl, isYouTubeSubscriptionsUrl, isYouTubeTrendingUrl, isYouTubeUrl, isYouTubeVideoUrl, isYouTubeVideosInPlaylist, isZaraUrl, isZipCode, isZipCode5, isZipPlus4, joinWith, jsonValue, jsonValues, keysOf, kindLiteral, last, list, literal, logicalReturns, lookupCountryAlpha2, lookupCountryAlpha3, lookupCountryCode, lookupCountryName, lowercase, mergeObjects, mergeScalars, mergeTuples, nameLiteral, narrow, never, omit, optional, optionalOrNull, or, orNull, pathJoin, pluralize, removePhoneCountryCode, removeTailwindModifiers, removeUrlProtocol, result, retain, retainAfter, retainAfterInclusive, retainChars, retainUntil, retainUntilInclusive, retainWhile, reverse, rightWhitespace, shape, sharedKeys, shift, simpleContainerToken, simpleContainerTokenToTypeToken, simpleContainerType, simpleScalarToken, simpleScalarTokenToTypeToken, simpleScalarType, simpleToken, simpleType, simpleUnionTokenToTypeToken, slice, split, startsWith, stripAfter, stripBefore, stripChars, stripLeading, stripParenthesis, stripSurround, stripTrailing, stripUntil, stripWhile, surround, takeNumericCharacters, takeProp, toCamelCase, toKebabCase, toNumber, toNumericArray, toPascalCase, toSnakeCase, toString, toUppercase, trim, trimEnd, trimLeft, trimRight, trimStart, truncate, tuple, twColor, unbox, uncapitalize, union, unionize, unique, uniqueKeys, uppercase, urlMeta, valuesOf, widen, withDefaults, withKeys, withoutKeys, withoutValue, wrapFn, youtubeEmbed, youtubeMeta };
4460
- //# sourceMappingURL=index.js.map
4704
+ export {
4705
+ ShapeApiImplementation,
4706
+ addFnToProps,
4707
+ addPropsToFn,
4708
+ and,
4709
+ asApi,
4710
+ asArray,
4711
+ asChars,
4712
+ asDate,
4713
+ asEscapeFunction,
4714
+ asIsoDate,
4715
+ asOptionalParamFunction,
4716
+ asPhoneFormat,
4717
+ asRecord,
4718
+ asString,
4719
+ asStringLiteral,
4720
+ asType,
4721
+ asTypeToken,
4722
+ asVueRef,
4723
+ box,
4724
+ boxDictionaryValues,
4725
+ capitalize,
4726
+ choices,
4727
+ createConverter,
4728
+ createCssKeyframe,
4729
+ createCssSelector,
4730
+ createErrorCondition,
4731
+ createFifoQueue,
4732
+ createFnWithProps,
4733
+ createLifoQueue,
4734
+ createTypeToken,
4735
+ cssColor,
4736
+ csv,
4737
+ defineCss,
4738
+ defineObj,
4739
+ defineTuple,
4740
+ endsWith,
4741
+ ensureLeading,
4742
+ ensureSurround,
4743
+ ensureTrailing,
4744
+ entries,
4745
+ errCondition,
4746
+ filter,
4747
+ find,
4748
+ fnMeta,
4749
+ get,
4750
+ getDaysBetween,
4751
+ getEach,
4752
+ getPhoneCountryCode,
4753
+ getTailwindModifiers,
4754
+ getToday,
4755
+ getTomorrow,
4756
+ getUrlPath,
4757
+ getUrlPort,
4758
+ getUrlProtocol,
4759
+ getUrlQueryParams,
4760
+ getUrlSource,
4761
+ getWeekNumber,
4762
+ getYesterday,
4763
+ getYouTubePageType,
4764
+ handleDoneFn,
4765
+ hasDefaultValue,
4766
+ hasIndexOf,
4767
+ hasKeys,
4768
+ hasUrlPort,
4769
+ hasUrlQueryParameter,
4770
+ hasWhiteSpace,
4771
+ idLiteral,
4772
+ idTypeGuard,
4773
+ identity,
4774
+ ifArray,
4775
+ ifArrayPartial,
4776
+ ifBoolean,
4777
+ ifChar,
4778
+ ifContainer,
4779
+ ifDefined,
4780
+ ifFalse,
4781
+ ifFunction,
4782
+ ifHasKey,
4783
+ ifLength,
4784
+ ifLowercaseChar,
4785
+ ifNotNull,
4786
+ ifNull,
4787
+ ifNumber,
4788
+ ifObject,
4789
+ ifSameType,
4790
+ ifScalar,
4791
+ ifString,
4792
+ ifTrue,
4793
+ ifUndefined,
4794
+ ifUppercaseChar,
4795
+ indexOf,
4796
+ intersect,
4797
+ intersection,
4798
+ ip6GroupExpansion,
4799
+ ip6Prefix,
4800
+ isAccelerationMetric,
4801
+ isAccelerationUom,
4802
+ isAlpha,
4803
+ isAmazonUrl,
4804
+ isApi,
4805
+ isApiSurface,
4806
+ isAppleUrl,
4807
+ isAreaMetric,
4808
+ isAreaUom,
4809
+ isArray,
4810
+ isArrayToken,
4811
+ isAtomicToken,
4812
+ isAustralianNewsUrl,
4813
+ isBelgiumNewsUrl,
4814
+ isBestBuyUrl,
4815
+ isBitbucketUrl,
4816
+ isBoolean,
4817
+ isBooleanLike,
4818
+ isBox,
4819
+ isCanadianNewsUrl,
4820
+ isChineseNewsUrl,
4821
+ isCodeCommitUrl,
4822
+ isConstant,
4823
+ isContainer,
4824
+ isContainerToken,
4825
+ isCostCoUrl,
4826
+ isCountryAbbrev,
4827
+ isCountryCode2,
4828
+ isCountryCode3,
4829
+ isCountryName,
4830
+ isCssAspectRatio,
4831
+ isCurrentMetric,
4832
+ isCurrentUom,
4833
+ isCvsUrl,
4834
+ isDanishNewsUrl,
4835
+ isDate,
4836
+ isDefineObject,
4837
+ isDefined,
4838
+ isDellUrl,
4839
+ isDistanceMetric,
4840
+ isDistanceUom,
4841
+ isDomainName,
4842
+ isDoneFn,
4843
+ isDutchNewsUrl,
4844
+ isEbayUrl,
4845
+ isEmail,
4846
+ isEnergyMetric,
4847
+ isEnergyUom,
4848
+ isEqual,
4849
+ isErrorCondition,
4850
+ isEscapeFunction,
4851
+ isEtsyUrl,
4852
+ isFalse,
4853
+ isFalsy,
4854
+ isFnToken,
4855
+ isFnWithParams,
4856
+ isFrenchNewsUrl,
4857
+ isFrequencyMetric,
4858
+ isFrequencyUom,
4859
+ isFunction,
4860
+ isGeneratorToken,
4861
+ isGermanNewsUrl,
4862
+ isGithubIssueUrl,
4863
+ isGithubIssuesListUrl,
4864
+ isGithubOrgUrl,
4865
+ isGithubProjectUrl,
4866
+ isGithubProjectsListUrl,
4867
+ isGithubReleaseTagUrl,
4868
+ isGithubReleasesListUrl,
4869
+ isGithubRepoReleaseTagUrl,
4870
+ isGithubRepoReleasesUrl,
4871
+ isGithubRepoUrl,
4872
+ isGithubUrl,
4873
+ isHexadecimal,
4874
+ isHmUrl,
4875
+ isHomeDepotUrl,
4876
+ isHtmlElement,
4877
+ isIkeaUrl,
4878
+ isIndexable,
4879
+ isIndianNewsUrl,
4880
+ isInlineSvg,
4881
+ isIp4Address,
4882
+ isIp6Address,
4883
+ isIpAddress,
4884
+ isIso3166Alpha2,
4885
+ isIso3166Alpha3,
4886
+ isIso3166CountryCode,
4887
+ isIso3166CountryName,
4888
+ isIsoDate,
4889
+ isIsoDateTime,
4890
+ isIsoExplicitDate,
4891
+ isIsoExplicitTime,
4892
+ isIsoImplicitDate,
4893
+ isIsoImplicitTime,
4894
+ isIsoTime,
4895
+ isIsoYear,
4896
+ isItalianNewsUrl,
4897
+ isJapaneseNewsUrl,
4898
+ isKrogersUrl,
4899
+ isLeapYear,
4900
+ isLength,
4901
+ isLikeRegExp,
4902
+ isLowesUrl,
4903
+ isLuminosityMetric,
4904
+ isLuminosityUom,
4905
+ isLuxonDateTime,
4906
+ isMacysUrl,
4907
+ isMapToken,
4908
+ isMassMetric,
4909
+ isMassUom,
4910
+ isMetric,
4911
+ isMexicanNewsUrl,
4912
+ isMoment,
4913
+ isNever,
4914
+ isNewsUrl,
4915
+ isNikeUrl,
4916
+ isNorwegianNewsUrl,
4917
+ isNotNull,
4918
+ isNothing,
4919
+ isNull,
4920
+ isNumber,
4921
+ isNumberLike,
4922
+ isNumericArray,
4923
+ isNumericString,
4924
+ isObject,
4925
+ isObjectToken,
4926
+ isOptionalParamFunction,
4927
+ isPhoneNumber,
4928
+ isPowerMetric,
4929
+ isPowerUom,
4930
+ isPressureMetric,
4931
+ isPressureUom,
4932
+ isReadonlyArray,
4933
+ isRecordToken,
4934
+ isRef,
4935
+ isRegExp,
4936
+ isRepoSource,
4937
+ isRepoUrl,
4938
+ isResistance,
4939
+ isResistanceUom,
4940
+ isRetailUrl,
4941
+ isSameTypeOf,
4942
+ isScalar,
4943
+ isSemanticVersion,
4944
+ isSet,
4945
+ isSetToken,
4946
+ isShape,
4947
+ isShapeCallback,
4948
+ isSimpleContainerToken,
4949
+ isSimpleContainerTokenTuple,
4950
+ isSimpleScalarToken,
4951
+ isSimpleScalarTokenTuple,
4952
+ isSimpleToken,
4953
+ isSimpleTokenTuple,
4954
+ isSingletonToken,
4955
+ isSocialMediaProfileUrl,
4956
+ isSocialMediaUrl,
4957
+ isSouthKoreanNewsUrl,
4958
+ isSpanishNewsUrl,
4959
+ isSpecificConstant,
4960
+ isSpeedMetric,
4961
+ isSpeedUom,
4962
+ isString,
4963
+ isStringArray,
4964
+ isSwissNewsUrl,
4965
+ isSymbol,
4966
+ isTailwindColor,
4967
+ isTailwindColorClass,
4968
+ isTailwindColorName,
4969
+ isTailwindColorTarget,
4970
+ isTailwindColorWithLuminosity,
4971
+ isTailwindColorWithLuminosityAndOpacity,
4972
+ isTailwindModifier,
4973
+ isTargetUrl,
4974
+ isTemperatureMetric,
4975
+ isTemperatureUom,
4976
+ isThenable,
4977
+ isThisMonth,
4978
+ isThisWeek,
4979
+ isThisYear,
4980
+ isTimeMetric,
4981
+ isTimeUom,
4982
+ isToday,
4983
+ isTomorrow,
4984
+ isTrimable,
4985
+ isTrue,
4986
+ isTruthy,
4987
+ isTuple,
4988
+ isTupleToken,
4989
+ isTurkishNewsUrl,
4990
+ isTypeOf,
4991
+ isTypeToken,
4992
+ isTypeTuple,
4993
+ isUkNewsUrl,
4994
+ isUndefined,
4995
+ isUnionSetToken,
4996
+ isUnionToken,
4997
+ isUnset,
4998
+ isUom,
4999
+ isUri,
5000
+ isUrl,
5001
+ isUrlPath,
5002
+ isUrlSource,
5003
+ isUsNewsUrl,
5004
+ isUsStateAbbreviation,
5005
+ isUsStateName,
5006
+ isVoltageMetric,
5007
+ isVoltageUom,
5008
+ isVolumeMetric,
5009
+ isVolumeUom,
5010
+ isWalgreensUrl,
5011
+ isWalmartUrl,
5012
+ isWayfairUrl,
5013
+ isWeakMapToken,
5014
+ isWholeFoodsUrl,
5015
+ isYesterday,
5016
+ isYouTubeCreatorUrl,
5017
+ isYouTubeFeedHistoryUrl,
5018
+ isYouTubeFeedUrl,
5019
+ isYouTubePlaylistUrl,
5020
+ isYouTubePlaylistsUrl,
5021
+ isYouTubeShareUrl,
5022
+ isYouTubeSubscriptionsUrl,
5023
+ isYouTubeTrendingUrl,
5024
+ isYouTubeUrl,
5025
+ isYouTubeVideoUrl,
5026
+ isYouTubeVideosInPlaylist,
5027
+ isZaraUrl,
5028
+ isZipCode,
5029
+ isZipCode5,
5030
+ isZipPlus4,
5031
+ joinWith,
5032
+ jsonValue,
5033
+ jsonValues,
5034
+ keysOf,
5035
+ kindLiteral,
5036
+ last,
5037
+ list,
5038
+ literal,
5039
+ logicalReturns,
5040
+ lookupCountryAlpha2,
5041
+ lookupCountryAlpha3,
5042
+ lookupCountryCode,
5043
+ lookupCountryName,
5044
+ lowercase,
5045
+ mergeObjects,
5046
+ mergeScalars,
5047
+ mergeTuples,
5048
+ nameLiteral,
5049
+ narrow,
5050
+ never,
5051
+ omit,
5052
+ optional,
5053
+ optionalOrNull,
5054
+ or,
5055
+ orNull,
5056
+ pathJoin,
5057
+ pluralize,
5058
+ removePhoneCountryCode,
5059
+ removeTailwindModifiers,
5060
+ removeUrlProtocol,
5061
+ result,
5062
+ retain,
5063
+ retainAfter,
5064
+ retainAfterInclusive,
5065
+ retainChars,
5066
+ retainUntil,
5067
+ retainUntilInclusive,
5068
+ retainWhile,
5069
+ reverse,
5070
+ rightWhitespace,
5071
+ shape,
5072
+ sharedKeys,
5073
+ shift,
5074
+ simpleContainerToken,
5075
+ simpleContainerTokenToTypeToken,
5076
+ simpleContainerType,
5077
+ simpleScalarToken,
5078
+ simpleScalarTokenToTypeToken,
5079
+ simpleScalarType,
5080
+ simpleToken,
5081
+ simpleType,
5082
+ simpleUnionTokenToTypeToken,
5083
+ slice,
5084
+ split,
5085
+ startsWith,
5086
+ stripAfter,
5087
+ stripBefore,
5088
+ stripChars,
5089
+ stripLeading,
5090
+ stripParenthesis,
5091
+ stripSurround,
5092
+ stripTrailing,
5093
+ stripUntil,
5094
+ stripWhile,
5095
+ surround,
5096
+ takeNumericCharacters,
5097
+ takeProp,
5098
+ toCamelCase,
5099
+ toKebabCase,
5100
+ toNumber,
5101
+ toNumericArray,
5102
+ toPascalCase,
5103
+ toSnakeCase,
5104
+ toString,
5105
+ toUppercase,
5106
+ trim,
5107
+ trimEnd,
5108
+ trimLeft,
5109
+ trimRight,
5110
+ trimStart,
5111
+ truncate,
5112
+ tuple,
5113
+ twColor,
5114
+ unbox,
5115
+ uncapitalize,
5116
+ union,
5117
+ unionize,
5118
+ unique,
5119
+ uniqueKeys,
5120
+ uppercase,
5121
+ urlMeta,
5122
+ valuesOf,
5123
+ widen,
5124
+ withDefaults,
5125
+ withKeys,
5126
+ withoutKeys,
5127
+ withoutValue,
5128
+ wrapFn,
5129
+ youtubeEmbed,
5130
+ youtubeMeta
5131
+ };
4461
5132
  //# sourceMappingURL=index.js.map