@koine/utils 2.0.0-beta.7 → 2.0.0-beta.71
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/Defer.d.ts +0 -15
- package/Emitter.d.ts +2 -21
- package/README.md +4 -2
- package/accentSets.d.ts +1 -15
- package/addOrReplaceAtIdx.d.ts +1 -5
- package/areEqual.d.ts +2 -17
- package/arrayFilterFalsy.d.ts +1 -0
- package/arrayFindLastIndex.d.ts +1 -0
- package/arrayOfAll.d.ts +2 -28
- package/arraySum.d.ts +1 -7
- package/arrayToLookup.d.ts +1 -7
- package/arrayUniqueByProperties.d.ts +1 -0
- package/buildUrlQueryString.d.ts +2 -12
- package/capitalize.d.ts +1 -8
- package/changeCaseCamel.d.ts +2 -0
- package/changeCaseCapital.d.ts +2 -0
- package/changeCaseConstant.d.ts +2 -0
- package/changeCaseDot.d.ts +2 -0
- package/changeCaseHelpers.d.ts +19 -0
- package/changeCaseKebab.d.ts +2 -0
- package/changeCaseNone.d.ts +2 -0
- package/changeCasePascal.d.ts +2 -0
- package/changeCasePascalSnake.d.ts +2 -0
- package/changeCasePath.d.ts +2 -0
- package/changeCaseSentence.d.ts +2 -0
- package/changeCaseSnake.d.ts +2 -0
- package/changeCaseTrain.d.ts +2 -0
- package/chunkByChunks.d.ts +1 -7
- package/chunkBySize.d.ts +1 -6
- package/clamp.d.ts +1 -8
- package/clsx.d.ts +6 -9
- package/convertRange.d.ts +1 -14
- package/cookie.d.ts +1 -37
- package/createPalette.d.ts +2 -12
- package/debounce.d.ts +1 -8
- package/debouncePromise.d.ts +10 -11
- package/debounceRaf.d.ts +0 -8
- package/decode.d.ts +1 -6
- package/encode.d.ts +1 -6
- package/ensureInt.d.ts +1 -7
- package/env.d.ts +0 -0
- package/errorToString.d.ts +1 -7
- package/escapeRegExp.d.ts +1 -0
- package/findDuplicatedIndexes.d.ts +1 -5
- package/forin.d.ts +1 -7
- package/gbToBytes.d.ts +1 -7
- package/getEmptyArray.d.ts +1 -9
- package/getKeys.d.ts +1 -9
- package/getMediaQueryWidthResolvers.d.ts +1 -2
- package/getMediaQueryWidthTailwindScreens.d.ts +1 -2
- package/getNonce.d.ts +1 -6
- package/getParamAmong.d.ts +1 -12
- package/getParamAsInt.d.ts +1 -12
- package/getParamAsString.d.ts +1 -11
- package/getType.d.ts +4 -17
- package/getUrlHashParams.d.ts +1 -9
- package/getUrlHashPathname.d.ts +1 -9
- package/getUrlPathnameParts.d.ts +1 -12
- package/getUrlQueryParams.d.ts +1 -14
- package/imgEmptyPixel.d.ts +1 -7
- package/index.cjs.d.ts +1 -0
- package/index.cjs.default.js +1 -0
- package/index.cjs.js +497 -0
- package/index.cjs.mjs +2 -0
- package/index.d.ts +30 -6
- package/index.esm.js +340 -0
- package/invariant.d.ts +1 -19
- package/isAbsoluteUrl.d.ts +1 -0
- package/isAnyObject.d.ts +2 -8
- package/isArray.d.ts +1 -7
- package/isBlob.d.ts +1 -7
- package/isBoolean.d.ts +1 -7
- package/isBrowser.d.ts +1 -6
- package/isBrowserNow.d.ts +1 -6
- package/isDate.d.ts +1 -7
- package/isEmptyArray.d.ts +1 -7
- package/isEmptyObject.d.ts +4 -8
- package/isEmptyString.d.ts +1 -7
- package/isError.d.ts +1 -7
- package/isExternalUrl.d.ts +1 -9
- package/isFile.d.ts +1 -7
- package/isFloat.d.ts +1 -7
- package/isFormData.d.ts +1 -7
- package/isFullArray.d.ts +1 -7
- package/isFullObject.d.ts +2 -8
- package/isFullString.d.ts +1 -7
- package/isFunction.d.ts +2 -8
- package/isInt.d.ts +1 -7
- package/isMap.d.ts +1 -7
- package/isNaNValue.d.ts +1 -7
- package/isNegativeNumber.d.ts +1 -7
- package/isNull.d.ts +1 -7
- package/isNullOrUndefined.d.ts +1 -7
- package/isNumber.d.ts +1 -9
- package/isNumericLiteral.d.ts +1 -0
- package/isObject.d.ts +2 -8
- package/isObjectLike.d.ts +2 -10
- package/isObjectStringKeyed.d.ts +2 -0
- package/isOneOf.d.ts +1 -5
- package/isPlainObject.d.ts +2 -8
- package/isPositiveNumber.d.ts +1 -7
- package/isPrimitive.d.ts +1 -7
- package/isPromise.d.ts +1 -7
- package/isRegExp.d.ts +1 -7
- package/isServer.d.ts +1 -6
- package/isServerNow.d.ts +1 -6
- package/isSet.d.ts +1 -7
- package/isString.d.ts +1 -7
- package/isSymbol.d.ts +1 -7
- package/isType.d.ts +2 -11
- package/isUndefined.d.ts +1 -7
- package/isWeakMap.d.ts +1 -7
- package/isWeakSet.d.ts +1 -7
- package/kbToBytes.d.ts +1 -7
- package/location.d.ts +0 -3
- package/lowercase.d.ts +1 -7
- package/mapListBy.d.ts +1 -7
- package/matchSorter.d.ts +2 -10
- package/mbToBytes.d.ts +1 -7
- package/mergeObjects.d.ts +1 -7
- package/mergeUrlQueryParams.d.ts +2 -9
- package/moveSortableArrayItemByKey.d.ts +1 -9
- package/noop.d.ts +1 -7
- package/normaliseUrl.d.ts +1 -11
- package/normaliseUrlPathname.d.ts +1 -10
- package/objectFlat.d.ts +3 -0
- package/objectFlip.d.ts +1 -0
- package/objectMergeWithDefaults.d.ts +5 -0
- package/objectOmit.d.ts +1 -11
- package/objectPick.d.ts +1 -8
- package/objectSort.d.ts +3 -0
- package/objectSortByKeysMatching.d.ts +3 -0
- package/objectToArray.d.ts +1 -0
- package/package.json +15 -7
- package/parseCookie.d.ts +2 -11
- package/parseURL.d.ts +1 -8
- package/quaranteneProps.d.ts +2 -17
- package/randomInt.d.ts +1 -7
- package/randomKey.d.ts +1 -8
- package/readCookie.d.ts +0 -1
- package/removeAccents.d.ts +2 -6
- package/removeCookie.d.ts +1 -9
- package/removeDuplicates.d.ts +0 -0
- package/removeDuplicatesByKey.d.ts +1 -8
- package/removeDuplicatesComparing.d.ts +1 -5
- package/removeIndexesFromArray.d.ts +1 -5
- package/removeTrailingSlash.d.ts +1 -7
- package/removeUrlQueryParams.d.ts +1 -8
- package/render.d.ts +2 -41
- package/round.d.ts +2 -0
- package/roundTo.d.ts +1 -8
- package/serializeCookie.d.ts +2 -27
- package/setCookie.d.ts +1 -9
- package/shuffle.d.ts +1 -16
- package/slugify.d.ts +1 -11
- package/split.d.ts +1 -2
- package/splitReverse.d.ts +4 -0
- package/swapMap.d.ts +1 -7
- package/throttle.d.ts +1 -8
- package/titleCase.d.ts +1 -7
- package/toNumber.d.ts +1 -5
- package/toRgba.d.ts +1 -5
- package/transformToUrlPathname.d.ts +1 -11
- package/truncate.d.ts +1 -7
- package/tryUntil.d.ts +1 -8
- package/types.d.ts +1 -18
- package/typings.d.ts +33 -5
- package/uid.d.ts +1 -7
- package/updateLinkParams.d.ts +2 -10
- package/updateUrlQueryParams.d.ts +2 -9
- package/uppercase.d.ts +1 -7
- package/uuid.d.ts +1 -8
- package/uuidNumeric.d.ts +1 -6
- package/wait.d.ts +1 -7
- package/without.d.ts +0 -0
- package/Defer.js +0 -35
- package/Defer.mjs +0 -27
- package/Emitter.js +0 -53
- package/Emitter.mjs +0 -35
- package/accentSets.js +0 -133
- package/accentSets.mjs +0 -122
- package/addOrReplaceAtIdx.js +0 -40
- package/addOrReplaceAtIdx.mjs +0 -22
- package/areEqual.js +0 -75
- package/areEqual.mjs +0 -71
- package/arrayOfAll.js +0 -45
- package/arrayOfAll.mjs +0 -27
- package/arraySum.js +0 -24
- package/arraySum.mjs +0 -6
- package/arrayToLookup.js +0 -29
- package/arrayToLookup.mjs +0 -11
- package/buildUrlQueryString.js +0 -39
- package/buildUrlQueryString.mjs +0 -28
- package/capitalize.js +0 -28
- package/capitalize.mjs +0 -10
- package/changeUrlPath.d.ts +0 -10
- package/changeUrlPath.js +0 -29
- package/changeUrlPath.mjs +0 -17
- package/chunkByChunks.js +0 -52
- package/chunkByChunks.mjs +0 -34
- package/chunkBySize.js +0 -29
- package/chunkBySize.mjs +0 -11
- package/clamp.js +0 -27
- package/clamp.mjs +0 -9
- package/clsx.js +0 -59
- package/clsx.mjs +0 -46
- package/convertRange.js +0 -33
- package/convertRange.mjs +0 -15
- package/cookie.js +0 -21
- package/cookie.mjs +0 -11
- package/createPalette.js +0 -34
- package/createPalette.mjs +0 -25
- package/debounce.js +0 -39
- package/debounce.mjs +0 -21
- package/debouncePromise.js +0 -21
- package/debouncePromise.mjs +0 -8
- package/debounceRaf.js +0 -40
- package/debounceRaf.mjs +0 -22
- package/decode.js +0 -27
- package/decode.mjs +0 -9
- package/encode.js +0 -27
- package/encode.mjs +0 -9
- package/ensureInt.js +0 -24
- package/ensureInt.mjs +0 -6
- package/env.js +0 -3
- package/env.mjs +0 -2
- package/errorToString.js +0 -22
- package/errorToString.mjs +0 -7
- package/findDuplicatedIndexes.js +0 -31
- package/findDuplicatedIndexes.mjs +0 -13
- package/forin.js +0 -28
- package/forin.mjs +0 -10
- package/gbToBytes.js +0 -24
- package/gbToBytes.mjs +0 -6
- package/getEmptyArray.js +0 -29
- package/getEmptyArray.mjs +0 -16
- package/getKeys.js +0 -26
- package/getKeys.mjs +0 -8
- package/getMediaQueryWidthResolvers.js +0 -81
- package/getMediaQueryWidthResolvers.mjs +0 -63
- package/getMediaQueryWidthTailwindScreens.js +0 -51
- package/getMediaQueryWidthTailwindScreens.mjs +0 -33
- package/getNonce.js +0 -23
- package/getNonce.mjs +0 -8
- package/getParamAmong.js +0 -25
- package/getParamAmong.mjs +0 -15
- package/getParamAsInt.js +0 -28
- package/getParamAsInt.mjs +0 -18
- package/getParamAsString.js +0 -24
- package/getParamAsString.mjs +0 -13
- package/getType.js +0 -30
- package/getType.mjs +0 -17
- package/getUrlHashParams.js +0 -27
- package/getUrlHashParams.mjs +0 -14
- package/getUrlHashPathname.js +0 -29
- package/getUrlHashPathname.mjs +0 -11
- package/getUrlPathnameParts.js +0 -25
- package/getUrlPathnameParts.mjs +0 -15
- package/getUrlQueryParams.js +0 -36
- package/getUrlQueryParams.mjs +0 -27
- package/imgEmptyPixel.js +0 -24
- package/imgEmptyPixel.mjs +0 -6
- package/index.js +0 -532
- package/index.mjs +0 -132
- package/invariant.js +0 -50
- package/invariant.mjs +0 -32
- package/isAnyObject.js +0 -24
- package/isAnyObject.mjs +0 -9
- package/isArray.js +0 -24
- package/isArray.mjs +0 -9
- package/isBlob.js +0 -24
- package/isBlob.mjs +0 -9
- package/isBoolean.js +0 -24
- package/isBoolean.mjs +0 -9
- package/isBrowser.js +0 -23
- package/isBrowser.mjs +0 -5
- package/isBrowserNow.js +0 -22
- package/isBrowserNow.mjs +0 -6
- package/isDate.js +0 -24
- package/isDate.mjs +0 -9
- package/isEmptyArray.js +0 -24
- package/isEmptyArray.mjs +0 -9
- package/isEmptyObject.js +0 -24
- package/isEmptyObject.mjs +0 -9
- package/isEmptyString.js +0 -26
- package/isEmptyString.mjs +0 -8
- package/isError.js +0 -24
- package/isError.mjs +0 -9
- package/isExternalUrl.js +0 -32
- package/isExternalUrl.mjs +0 -19
- package/isFile.js +0 -24
- package/isFile.mjs +0 -9
- package/isFloat.js +0 -24
- package/isFloat.mjs +0 -9
- package/isFormData.js +0 -24
- package/isFormData.mjs +0 -9
- package/isFullArray.js +0 -24
- package/isFullArray.mjs +0 -9
- package/isFullObject.js +0 -24
- package/isFullObject.mjs +0 -9
- package/isFullString.js +0 -24
- package/isFullString.mjs +0 -9
- package/isFunction.js +0 -22
- package/isFunction.mjs +0 -8
- package/isInt.js +0 -24
- package/isInt.mjs +0 -9
- package/isMap.js +0 -24
- package/isMap.mjs +0 -9
- package/isNaNValue.js +0 -24
- package/isNaNValue.mjs +0 -9
- package/isNegativeNumber.js +0 -24
- package/isNegativeNumber.mjs +0 -9
- package/isNull.js +0 -24
- package/isNull.mjs +0 -9
- package/isNullOrUndefined.js +0 -24
- package/isNullOrUndefined.mjs +0 -9
- package/isNumber.js +0 -24
- package/isNumber.mjs +0 -11
- package/isObject.js +0 -24
- package/isObject.mjs +0 -9
- package/isObjectLike.js +0 -24
- package/isObjectLike.mjs +0 -11
- package/isOneOf.js +0 -22
- package/isOneOf.mjs +0 -4
- package/isPlainObject.js +0 -25
- package/isPlainObject.mjs +0 -10
- package/isPositiveNumber.js +0 -24
- package/isPositiveNumber.mjs +0 -9
- package/isPrimitive.js +0 -29
- package/isPrimitive.mjs +0 -14
- package/isPromise.js +0 -24
- package/isPromise.mjs +0 -9
- package/isRegExp.js +0 -24
- package/isRegExp.mjs +0 -9
- package/isServer.js +0 -23
- package/isServer.mjs +0 -7
- package/isServerNow.js +0 -22
- package/isServerNow.mjs +0 -6
- package/isSet.js +0 -24
- package/isSet.mjs +0 -9
- package/isString.js +0 -24
- package/isString.mjs +0 -9
- package/isSymbol.js +0 -24
- package/isSymbol.mjs +0 -9
- package/isType.js +0 -32
- package/isType.mjs +0 -20
- package/isUndefined.js +0 -24
- package/isUndefined.mjs +0 -9
- package/isWeakMap.js +0 -24
- package/isWeakMap.mjs +0 -9
- package/isWeakSet.js +0 -24
- package/isWeakSet.mjs +0 -9
- package/kbToBytes.js +0 -24
- package/kbToBytes.mjs +0 -6
- package/location.js +0 -6
- package/location.mjs +0 -3
- package/lowercase.js +0 -24
- package/lowercase.mjs +0 -6
- package/mapListBy.js +0 -29
- package/mapListBy.mjs +0 -11
- package/matchSorter.js +0 -373
- package/matchSorter.mjs +0 -352
- package/mbToBytes.js +0 -24
- package/mbToBytes.mjs +0 -6
- package/mergeObjects.js +0 -39
- package/mergeObjects.mjs +0 -34
- package/mergeUrlQueryParams.js +0 -32
- package/mergeUrlQueryParams.mjs +0 -18
- package/moveSortableArrayItemByKey.js +0 -35
- package/moveSortableArrayItemByKey.mjs +0 -17
- package/noop.js +0 -24
- package/noop.mjs +0 -6
- package/normaliseUrl.js +0 -24
- package/normaliseUrl.mjs +0 -13
- package/normaliseUrlPathname.js +0 -24
- package/normaliseUrlPathname.mjs +0 -12
- package/objectOmit.js +0 -35
- package/objectOmit.mjs +0 -17
- package/objectPick.js +0 -32
- package/objectPick.mjs +0 -14
- package/parseCookie.js +0 -55
- package/parseCookie.mjs +0 -44
- package/parseURL.js +0 -37
- package/parseURL.mjs +0 -19
- package/quaranteneProps.js +0 -49
- package/quaranteneProps.mjs +0 -31
- package/randomInt.js +0 -26
- package/randomInt.mjs +0 -8
- package/randomKey.js +0 -28
- package/randomKey.mjs +0 -10
- package/readCookie.js +0 -51
- package/readCookie.mjs +0 -33
- package/removeAccents.js +0 -28
- package/removeAccents.mjs +0 -12
- package/removeCookie.js +0 -28
- package/removeCookie.mjs +0 -16
- package/removeDuplicates.js +0 -13
- package/removeDuplicates.mjs +0 -12
- package/removeDuplicatesByKey.js +0 -36
- package/removeDuplicatesByKey.mjs +0 -18
- package/removeDuplicatesComparing.js +0 -25
- package/removeDuplicatesComparing.mjs +0 -9
- package/removeIndexesFromArray.js +0 -31
- package/removeIndexesFromArray.mjs +0 -13
- package/removeTrailingSlash.js +0 -26
- package/removeTrailingSlash.mjs +0 -8
- package/removeUrlQueryParams.js +0 -33
- package/removeUrlQueryParams.mjs +0 -19
- package/render.js +0 -93
- package/render.mjs +0 -110
- package/roundTo.js +0 -50
- package/roundTo.mjs +0 -32
- package/serializeCookie.js +0 -102
- package/serializeCookie.mjs +0 -98
- package/setCookie.js +0 -68
- package/setCookie.mjs +0 -55
- package/shuffle.js +0 -50
- package/shuffle.mjs +0 -32
- package/slugify.js +0 -35
- package/slugify.mjs +0 -25
- package/split.js +0 -22
- package/split.mjs +0 -4
- package/swapMap.js +0 -30
- package/swapMap.mjs +0 -12
- package/throttle.js +0 -38
- package/throttle.mjs +0 -20
- package/titleCase.js +0 -24
- package/titleCase.mjs +0 -6
- package/toNumber.js +0 -23
- package/toNumber.mjs +0 -7
- package/toRgba.js +0 -32
- package/toRgba.mjs +0 -14
- package/transformToUrlPathname.js +0 -24
- package/transformToUrlPathname.mjs +0 -13
- package/truncate.js +0 -24
- package/truncate.mjs +0 -6
- package/tryUntil.js +0 -42
- package/tryUntil.mjs +0 -24
- package/types.js +0 -5
- package/types.mjs +0 -2
- package/uid.js +0 -24
- package/uid.mjs +0 -10
- package/updateLinkParams.js +0 -26
- package/updateLinkParams.mjs +0 -13
- package/updateUrlQueryParams.js +0 -28
- package/updateUrlQueryParams.mjs +0 -14
- package/uppercase.js +0 -24
- package/uppercase.mjs +0 -6
- package/uuid.js +0 -28
- package/uuid.mjs +0 -10
- package/uuidNumeric.js +0 -23
- package/uuidNumeric.mjs +0 -5
- package/wait.js +0 -24
- package/wait.mjs +0 -6
- package/without.js +0 -55
- package/without.mjs +0 -54
package/Defer.d.ts
CHANGED
|
@@ -1,20 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @category async
|
|
3
|
-
*/
|
|
4
1
|
export type Deferred<T> = Promise<T> & {
|
|
5
2
|
resolve: PromiseConstructor["resolve"];
|
|
6
3
|
reject: PromiseConstructor["reject"];
|
|
7
4
|
};
|
|
8
|
-
/**
|
|
9
|
-
* @category async
|
|
10
|
-
* @see https://stackoverflow.com/a/37673534/1938970
|
|
11
|
-
* @example
|
|
12
|
-
*
|
|
13
|
-
* ```ts
|
|
14
|
-
* const deferred = Defer();
|
|
15
|
-
* deferred.resolve();
|
|
16
|
-
* deferred.then(handleSuccess, handleError);
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
5
|
export declare function Defer<T>(): Deferred<T>;
|
|
20
|
-
export default Defer;
|
package/Emitter.d.ts
CHANGED
|
@@ -1,25 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
* Emitter super simple class
|
|
3
|
-
*
|
|
4
|
-
* Events will be prefixed with the given `namespace` plus a `.` so:
|
|
5
|
-
* `{namespace}.myevent`
|
|
6
|
-
*
|
|
7
|
-
* Adapted from https://github.com/developit/mitt
|
|
8
|
-
*
|
|
9
|
-
* Regarding typescript support @see:
|
|
10
|
-
* - https://stackoverflow.com/q/53299743/1938970
|
|
11
|
-
* - https://github.com/Microsoft/TypeScript/pull/26349
|
|
12
|
-
*/
|
|
13
|
-
export declare function Emitter<EventMap extends {
|
|
1
|
+
export declare let Emitter: <EventMap extends {
|
|
14
2
|
[key: string]: any;
|
|
15
|
-
}>(namespace: string)
|
|
16
|
-
/**
|
|
17
|
-
* Register an event handler for the given type.
|
|
18
|
-
*/
|
|
3
|
+
}>(namespace: string) => {
|
|
19
4
|
on<EventName extends keyof EventMap>(name: EventName, handler: (data?: EventMap[EventName] | undefined) => any): void;
|
|
20
|
-
/**
|
|
21
|
-
* Invoke all handlers for the given type.
|
|
22
|
-
*/
|
|
23
5
|
emit<EventName_1 extends keyof EventMap>(name: EventName_1, data?: EventMap[EventName_1] | undefined): void;
|
|
24
6
|
};
|
|
25
|
-
export default Emitter;
|
package/README.md
CHANGED
|
@@ -16,9 +16,11 @@ Libraries to encapsulate and re-export from here, the selection is based on:
|
|
|
16
16
|
- [mesqueeb/copy-anything](https://github.com/mesqueeb/copy-anything)
|
|
17
17
|
- [mesqueeb/flatten-anything](https://github.com/mesqueeb/flatten-anything)
|
|
18
18
|
|
|
19
|
-
To
|
|
19
|
+
To consider:
|
|
20
|
+
|
|
20
21
|
- [dlv](https://www.npmjs.com/package/dlv)
|
|
21
|
-
- [dset](https://github.com/lukeed/dset)
|
|
22
|
+
- [lukeed/dset](https://github.com/lukeed/dset)
|
|
23
|
+
- [angus-c/just](https://github.com/angus-c/just)
|
|
22
24
|
|
|
23
25
|
About ts utilities types @see:
|
|
24
26
|
|
package/accentSets.d.ts
CHANGED
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* First value is the `to`, second is `from`, from *which* chars do we translates *to*
|
|
3
|
-
*
|
|
4
|
-
* @category text
|
|
5
|
-
*/
|
|
6
1
|
export type AccentsSet = [string, string];
|
|
7
|
-
|
|
8
|
-
* Accent sets
|
|
9
|
-
*
|
|
10
|
-
* @category text
|
|
11
|
-
* @see https://gist.github.com/mathewbyrne/1280286#gistcomment-3498021
|
|
12
|
-
* @see https://gist.github.com/eek/9c4887e80b3ede05c0e39fee4dce3747 for usage
|
|
13
|
-
* of [normalize](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize)
|
|
14
|
-
*/
|
|
15
|
-
export declare const accentsSets: AccentsSet[];
|
|
16
|
-
export default accentsSets;
|
|
2
|
+
export declare let accentsSets: AccentsSet[];
|
package/addOrReplaceAtIdx.d.ts
CHANGED
package/areEqual.d.ts
CHANGED
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
type ComparablePrimitive = string | number | boolean;
|
|
2
2
|
type Comparable = ComparablePrimitive | object | Record<string, ComparablePrimitive> | Array<ComparablePrimitive>;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* solely to deduplicate requests payload and perform comparison on JSON ready
|
|
6
|
-
* objects made of primitives `string`, `number` and `boolean`s.
|
|
7
|
-
*
|
|
8
|
-
* It support nested `object`s and `array`s only.
|
|
9
|
-
*
|
|
10
|
-
* NB: `undefined` and `null` values do not count in the comparison as they are
|
|
11
|
-
* usually meant to be ignored in JSON requestBody payloads.
|
|
12
|
-
*
|
|
13
|
-
* According to very rudimentary tests this function takes on average between
|
|
14
|
-
* 0.15 ms and 2ms to compare two averaged sizes requet body payloads.
|
|
15
|
-
*
|
|
16
|
-
* @category objects
|
|
17
|
-
*/
|
|
18
|
-
export declare function areEqual(a: Comparable, b?: Comparable): boolean;
|
|
19
|
-
export default areEqual;
|
|
3
|
+
export declare let areEqual: (a: Comparable, b?: Comparable) => boolean;
|
|
4
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare let arrayFilterFalsy: <T extends unknown[]>(list?: T | null | undefined) => Exclude<NonNullable<T>[number], false | "" | 0 | undefined>[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare let arrayFindLastIndex: <T>(array: T[], predicate: (value: T, index: number, obj: T[]) => boolean) => number;
|
package/arrayOfAll.d.ts
CHANGED
|
@@ -1,28 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* @category array
|
|
5
|
-
* @borrows [SO comment by `CertainPerformance`](https://stackoverflow.com/a/60132060/1938970)
|
|
6
|
-
*
|
|
7
|
-
* @usage
|
|
8
|
-
*
|
|
9
|
-
* ```
|
|
10
|
-
* type Fruit = "pear" | "apple" | "orange";
|
|
11
|
-
*
|
|
12
|
-
* const arrayOfAllFruits = arrayOfAll<Fruit>();
|
|
13
|
-
*
|
|
14
|
-
* const allFruits = arrayOfAllFruits([
|
|
15
|
-
* "pear",
|
|
16
|
-
* "apple",
|
|
17
|
-
* "orange"
|
|
18
|
-
* ]); // ts compiler ok
|
|
19
|
-
*
|
|
20
|
-
* const allFruits = arrayOfAllFruits([
|
|
21
|
-
* "pear",
|
|
22
|
-
* "apple",
|
|
23
|
-
* ]); // ts compiler fails
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
|
-
export declare const arrayOfAll: <T>() => <U extends T[]>(array: U & ([T] extends [U[number]] ? unknown : "Invalid")) => U & ([T] extends [U[number]] ? unknown : "Invalid");
|
|
28
|
-
export default arrayOfAll;
|
|
1
|
+
export declare let arrayOfAll: <T>() => <U extends T[]>(array: U & ([T] extends [U[number]] ? unknown : "Invalid")) => U & ([T] extends [U[number]] ? unknown : "Invalid");
|
|
2
|
+
export type ArrayOfAll<List extends unknown[], Union> = List[number] extends Union ? Union extends List[number] ? true : "Incomplete" : "Incomplete";
|
package/arraySum.d.ts
CHANGED
package/arrayToLookup.d.ts
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Maps a simple flat array to a lookup dictionary object
|
|
3
|
-
*
|
|
4
|
-
* @category array
|
|
5
|
-
*/
|
|
6
|
-
export declare function arrayToLookup<T extends string | number | symbol>(array?: T[]): Record<T, 1>;
|
|
7
|
-
export default arrayToLookup;
|
|
1
|
+
export declare let arrayToLookup: <T extends string | number | symbol>(array?: T[]) => Record<T, 1>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare let arrayUniqueByProperties: <T extends any[]>(array: T, keys: (keyof T[number])[]) => T;
|
package/buildUrlQueryString.d.ts
CHANGED
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
* Get clean query string for URL
|
|
4
|
-
*
|
|
5
|
-
* It returns the query string **with** the initial `?`
|
|
6
|
-
*
|
|
7
|
-
* TODO: at some point replace with `URLSearchParams`, @see [caniuse](https://caniuse.com/?search=URLSearchParams)
|
|
8
|
-
*
|
|
9
|
-
* @category location
|
|
10
|
-
*/
|
|
11
|
-
export declare function buildUrlQueryString<T extends AnyQueryParams>(params: T): string;
|
|
12
|
-
export default buildUrlQueryString;
|
|
1
|
+
import type { AnyQueryParams } from "./location";
|
|
2
|
+
export declare let buildUrlQueryString: <T extends AnyQueryParams>(params: T) => string;
|
package/capitalize.d.ts
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Capitalize first letter of the given string.
|
|
3
|
-
*
|
|
4
|
-
* @category text
|
|
5
|
-
* @see https://stackoverflow.com/a/11409944/1938970
|
|
6
|
-
*/
|
|
7
|
-
export declare function capitalize<T extends string>(string?: null | T): Capitalize<T>;
|
|
8
|
-
export default capitalize;
|
|
1
|
+
export declare let capitalize: <T extends string>(string?: T | null | undefined) => Capitalize<T>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type Locale = string[] | string | false | undefined;
|
|
2
|
+
export interface PascalCaseOptions extends Options {
|
|
3
|
+
mergeAmbiguousCharacters?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export interface Options {
|
|
6
|
+
locale?: Locale;
|
|
7
|
+
split?: (value: string) => string[];
|
|
8
|
+
separateNumbers?: boolean;
|
|
9
|
+
delimiter?: string;
|
|
10
|
+
prefixCharacters?: string;
|
|
11
|
+
suffixCharacters?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare let split: (value: string) => string[];
|
|
14
|
+
export declare let splitSeparateNumbers: (value: string) => string[];
|
|
15
|
+
export declare let lowerFactory: (locale: Locale) => (input: string) => string;
|
|
16
|
+
export declare let upperFactory: (locale: Locale) => (input: string) => string;
|
|
17
|
+
export declare let capitalCaseTransformFactory: (lower: (input: string) => string, upper: (input: string) => string) => (word: string) => string;
|
|
18
|
+
export declare let pascalCaseTransformFactory: (lower: (input: string) => string, upper: (input: string) => string) => (word: string, index: number) => string;
|
|
19
|
+
export declare let splitPrefixSuffix: (input: string, options?: Options) => [string, string[], string];
|
package/chunkByChunks.d.ts
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* TODO: untested
|
|
3
|
-
* @category array
|
|
4
|
-
* @see https://stackoverflow.com/a/8189268/1938970
|
|
5
|
-
*/
|
|
6
|
-
export declare function chunkByChunks<T>(arr: T[], nrOfChunks: number, balanced?: boolean): T[][];
|
|
7
|
-
export default chunkByChunks;
|
|
1
|
+
export declare let chunkByChunks: <T>(arr: T[], nrOfChunks: number, balanced?: boolean) => T[][];
|
package/chunkBySize.d.ts
CHANGED
package/clamp.d.ts
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Returns a number whose value is limited to the given range.
|
|
3
|
-
*
|
|
4
|
-
* @category math
|
|
5
|
-
* @see https://stackoverflow.com/a/11409944/1938970
|
|
6
|
-
*/
|
|
7
|
-
export declare function clamp(num: number, min: number, max: number): number;
|
|
8
|
-
export default clamp;
|
|
1
|
+
export declare let clamp: (num: number, min: number, max: number) => number;
|
package/clsx.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
*/
|
|
8
|
-
export declare const clsx: (...args: ClassValue[]) => string;
|
|
9
|
-
export default clsx;
|
|
1
|
+
type ClassValue = ClassArray | ClassDictionary | string | number | null | boolean | undefined;
|
|
2
|
+
type ClassDictionary = Record<string, any>;
|
|
3
|
+
type ClassArray = ClassValue[];
|
|
4
|
+
export type ClsxClassValue = ClassValue;
|
|
5
|
+
export declare let clsx: (...args: ClassValue[]) => string;
|
|
6
|
+
export {};
|
package/convertRange.d.ts
CHANGED
|
@@ -1,14 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Convert range of a number
|
|
3
|
-
*
|
|
4
|
-
* e.g. converting number 5 in a scale/range from 0 10 to a scale/range from 50
|
|
5
|
-
* to 100 would return 75
|
|
6
|
-
* ```
|
|
7
|
-
* convertRange(5, [0, 10], [50, 100]);
|
|
8
|
-
* ```
|
|
9
|
-
*
|
|
10
|
-
* @category math
|
|
11
|
-
* @see https://stackoverflow.com/a/14224813
|
|
12
|
-
*/
|
|
13
|
-
export declare function convertRange(num: number, r1: number[], r2: number[]): number;
|
|
14
|
-
export default convertRange;
|
|
1
|
+
export declare let convertRange: (num: number, r1: number[], r2: number[]) => number;
|
package/cookie.d.ts
CHANGED
|
@@ -1,44 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file
|
|
3
|
-
*
|
|
4
|
-
* @category cookie
|
|
5
|
-
*
|
|
6
|
-
* All cookie related code is inspired and adapted from:
|
|
7
|
-
* - [js-cookie](https://github.com/js-cookie/js-cookie)
|
|
8
|
-
* - [cookie](https://github.com/jshttp/cookie)
|
|
9
|
-
*/
|
|
10
1
|
type CookieAttributes = {
|
|
11
|
-
/**
|
|
12
|
-
* Define when the cookie will be removed. Value can be a Number
|
|
13
|
-
* which will be interpreted as days from time of creation or a
|
|
14
|
-
* Date instance. If omitted, the cookie becomes a session cookie.
|
|
15
|
-
*/
|
|
16
2
|
expires?: number | Date | undefined;
|
|
17
|
-
/**
|
|
18
|
-
* Define the path where the cookie is available. Defaults to '/'
|
|
19
|
-
*
|
|
20
|
-
* @default "/"
|
|
21
|
-
*/
|
|
22
3
|
path?: string | undefined;
|
|
23
|
-
/**
|
|
24
|
-
* Define the domain where the cookie is available. Defaults to
|
|
25
|
-
* the domain of the page where the cookie was created.
|
|
26
|
-
*/
|
|
27
4
|
domain?: string | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* A Boolean indicating if the cookie transmission requires a
|
|
30
|
-
* secure protocol (https).
|
|
31
|
-
*
|
|
32
|
-
* @default "true"
|
|
33
|
-
*/
|
|
34
5
|
secure?: boolean | undefined;
|
|
35
|
-
/**
|
|
36
|
-
* Asserts that a cookie must not be sent with cross-origin requests,
|
|
37
|
-
* providing some protection against cross-site request forgery
|
|
38
|
-
* attacks (CSRF)
|
|
39
|
-
*
|
|
40
|
-
* @default "strict"
|
|
41
|
-
*/
|
|
42
6
|
sameSite?: "strict" | "Strict" | "lax" | "Lax" | "none" | "None" | undefined;
|
|
43
7
|
};
|
|
44
8
|
export type CookieAttributesServer = CookieAttributes & {
|
|
@@ -48,7 +12,7 @@ export type CookieAttributesServer = CookieAttributes & {
|
|
|
48
12
|
decode?: (input: string) => string;
|
|
49
13
|
};
|
|
50
14
|
export type CookieAttributesClient = CookieAttributes;
|
|
51
|
-
export declare
|
|
15
|
+
export declare let defaultAttributesClient: {
|
|
52
16
|
path: string;
|
|
53
17
|
};
|
|
54
18
|
export {};
|
package/createPalette.d.ts
CHANGED
|
@@ -6,15 +6,5 @@ type PaletteMapPair<T extends PaletteShade> = {
|
|
|
6
6
|
type PaletteMap<T extends PaletteShades> = {
|
|
7
7
|
[PS in T[number] as keyof PaletteMapPair<PS>]: PaletteMapPair<PS>[keyof PaletteMapPair<PS>];
|
|
8
8
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
* definition between TailwindCSS and straight ES imports
|
|
12
|
-
*
|
|
13
|
-
* @category styling|tailwind|colours
|
|
14
|
-
*
|
|
15
|
-
* @returns An array with: 1) A flat palette map 2) A TailwindCSS ready palette
|
|
16
|
-
* object 3) A flat array of colors (no special sorting, same order as the `shades`
|
|
17
|
-
* given as argument)
|
|
18
|
-
*/
|
|
19
|
-
export declare const createPalette: <TName extends string, TShades extends PaletteShades, TColor = TShades[number][1], TMap = PaletteMap<TShades>>(name: TName, shades: TShades) => readonly [TMap, Record<`${TName}-${TShades[number][0]}`, string>, TColor[]];
|
|
20
|
-
export default createPalette;
|
|
9
|
+
export declare let createPalette: <TName extends string, TShades extends PaletteShades, TColor = TShades[number][1], TMap = PaletteMap<TShades>>(name: TName, shades: TShades) => readonly [TMap, Record<`${TName}-${TShades[number][0]}`, string>, TColor[]];
|
|
10
|
+
export {};
|
package/debounce.d.ts
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Debounce function (with `setTimeout`)
|
|
3
|
-
*
|
|
4
|
-
* @category function
|
|
5
|
-
* @borrows [davidwalsh/debounce](https://davidwalsh.name/javascript-debounce-function)
|
|
6
|
-
*/
|
|
7
|
-
export declare function debounce<T extends (...args: any[]) => any>(fn: T, wait?: number, immediate?: boolean): (this: unknown, ...args: Parameters<T>) => void;
|
|
8
|
-
export default debounce;
|
|
1
|
+
export declare let debounce: <T extends (...args: any[]) => any>(fn: T, wait?: number, immediate?: boolean) => (this: unknown, ...args: Parameters<T>) => void;
|
package/debouncePromise.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare
|
|
11
|
-
export default debouncePromise;
|
|
1
|
+
export type DebounceOptions<Result> = {
|
|
2
|
+
isImmediate?: boolean;
|
|
3
|
+
maxWait?: number;
|
|
4
|
+
callback?: (data: Result) => void;
|
|
5
|
+
};
|
|
6
|
+
export interface DebouncedFunction<Args extends any[], F extends (...args: Args) => any> {
|
|
7
|
+
(this: ThisParameterType<F>, ...args: Args & Parameters<F>): Promise<ReturnType<F>>;
|
|
8
|
+
cancel: (reason?: any) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare let debouncePromise: <Args extends any[], F extends (...args: Args) => any>(func: F, waitMilliseconds?: number, options?: DebounceOptions<ReturnType<F>>) => DebouncedFunction<Args, F>;
|
package/debounceRaf.d.ts
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Debounce function (with `requestAnimationFrame`)
|
|
3
|
-
*
|
|
4
|
-
* (c) 2021 Chris Ferdinandi, MIT License, https://gomakethings.com
|
|
5
|
-
* @category function
|
|
6
|
-
* @borrows [vanillajstoolkit/debounce](https://vanillajstoolkit.com/helpers/debounce/)
|
|
7
|
-
*/
|
|
8
1
|
export declare function debounceRaf<T extends (...args: any[]) => any>(this: unknown, fn: T): (this: unknown, ...args: Parameters<T>) => void;
|
|
9
|
-
export default debounceRaf;
|
package/decode.d.ts
CHANGED
package/encode.d.ts
CHANGED
package/ensureInt.d.ts
CHANGED
package/env.d.ts
CHANGED
|
File without changes
|
package/errorToString.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare let escapeRegExp: (text: string) => string;
|
package/forin.d.ts
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* To easily get typed native `for in`
|
|
3
|
-
*
|
|
4
|
-
* @category objects
|
|
5
|
-
*/
|
|
6
|
-
export declare function forin<T>(object: T, cb: <K extends keyof T>(key: K, value: T[K]) => void): void;
|
|
7
|
-
export default forin;
|
|
1
|
+
export declare let forin: <T>(object: T, cb: <K extends keyof T>(key: K, value: T[K]) => void) => void;
|
package/gbToBytes.d.ts
CHANGED
package/getEmptyArray.d.ts
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
* Returns an array of undefined values of the desired length, useful to build
|
|
4
|
-
* skeleton UIs.
|
|
5
|
-
*
|
|
6
|
-
* @category array
|
|
7
|
-
*/
|
|
8
|
-
export declare function getEmptyArray(length: number | string): undefined[];
|
|
9
|
-
export default getEmptyArray;
|
|
1
|
+
export declare let getEmptyArray: (length: number | string) => undefined[];
|
package/getKeys.d.ts
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Type safe replacement for `Object.keys(myObject)` to iterate over a record
|
|
3
|
-
* without loosing the key's types in simple `string`s.
|
|
4
|
-
*
|
|
5
|
-
* @category objects
|
|
6
|
-
* @see https://stackoverflow.com/a/59459000/1938970
|
|
7
|
-
*/
|
|
8
|
-
export declare const getKeys: <T extends object>(obj: T) => (keyof T)[];
|
|
9
|
-
export default getKeys;
|
|
1
|
+
export declare let getKeys: <T extends object>(obj: T) => (keyof T)[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type GetMediaQueryWidthResolversBreakpoints = Record<string, number>;
|
|
2
|
-
export declare
|
|
2
|
+
export declare let getMediaQueryWidthResolvers: <TBreakpointsConfig extends GetMediaQueryWidthResolversBreakpoints>(customBreakpoints: TBreakpointsConfig) => {
|
|
3
3
|
max: (br: Extract<keyof TBreakpointsConfig, string>) => string;
|
|
4
4
|
min: (br: Extract<keyof TBreakpointsConfig, string>) => string;
|
|
5
5
|
down: (br: Extract<keyof TBreakpointsConfig, string>) => string;
|
|
@@ -7,4 +7,3 @@ export declare function getMediaQueryWidthResolvers<TBreakpointsConfig extends G
|
|
|
7
7
|
between: (br1: Extract<keyof TBreakpointsConfig, string>, br2?: Extract<keyof TBreakpointsConfig, string> | undefined) => string;
|
|
8
8
|
only: (br: Extract<keyof TBreakpointsConfig, string>) => string;
|
|
9
9
|
};
|
|
10
|
-
export default getMediaQueryWidthResolvers;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type GetMediaQueryWidthResolversBreakpoints } from "./getMediaQueryWidthResolvers";
|
|
2
|
-
export declare
|
|
2
|
+
export declare let getMediaQueryWidthTailwindScreens: (breakpoints: GetMediaQueryWidthResolversBreakpoints) => Record<string, {
|
|
3
3
|
raw: string;
|
|
4
4
|
}>;
|
|
5
|
-
export default getMediaQueryWidthTailwindScreens;
|
package/getNonce.d.ts
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* @category security
|
|
3
|
-
* @see https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/nonce.ts
|
|
4
|
-
*/
|
|
5
|
-
export declare function getNonce(): string | null;
|
|
6
|
-
export default getNonce;
|
|
1
|
+
export declare let getNonce: () => string | null;
|
package/getParamAmong.d.ts
CHANGED
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Get query parameter as `string` treating the `ParsedUrlQuery` result of
|
|
3
|
-
* [`querystring`](https://nodejs.org/api/querystring.html) (used in next.js
|
|
4
|
-
* router and elsewhere)
|
|
5
|
-
*
|
|
6
|
-
* @category location
|
|
7
|
-
*
|
|
8
|
-
* @param {string} [raw] - The _raw_ query parameter
|
|
9
|
-
* @param {string[]} [allowedValues=[]] - The list of values (as strings) that the parameter can have, if not one of them `null` is returned
|
|
10
|
-
*/
|
|
11
|
-
export declare function getParamAmong<T extends string[]>(raw?: string | string[], allowedValues?: T): T[number] | null;
|
|
12
|
-
export default getParamAmong;
|
|
1
|
+
export declare let getParamAmong: <T extends string[]>(raw?: string | string[], allowedValues?: T) => T[number] | null;
|
package/getParamAsInt.d.ts
CHANGED
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Get query parameter as `int`eger treating the `ParsedUrlQuery` result of
|
|
3
|
-
* [`querystring`](https://nodejs.org/api/querystring.html) (used in next.js
|
|
4
|
-
* router and elsewhere)
|
|
5
|
-
*
|
|
6
|
-
* @category location
|
|
7
|
-
*
|
|
8
|
-
* @param {string} [raw] - The _raw_ query parameter
|
|
9
|
-
* @param {number} [fallback] - Fallback number, we return `null` if not provided
|
|
10
|
-
*/
|
|
11
|
-
export declare function getParamAsInt<TFallback extends number | null | undefined>(raw?: string | string[], fallback?: TFallback): number | TFallback;
|
|
12
|
-
export default getParamAsInt;
|
|
1
|
+
export declare let getParamAsInt: <TFallback extends number | null | undefined>(raw?: string | string[], fallback?: TFallback) => number | TFallback;
|
package/getParamAsString.d.ts
CHANGED
|
@@ -1,11 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Get query parameter as `string` treating the `ParsedUrlQuery` result of
|
|
3
|
-
* [`querystring`](https://nodejs.org/api/querystring.html) (used in next.js
|
|
4
|
-
* router and elsewhere)
|
|
5
|
-
*
|
|
6
|
-
* @category location
|
|
7
|
-
*
|
|
8
|
-
* @param {string} [raw] - The _raw_ query parameter
|
|
9
|
-
*/
|
|
10
|
-
export declare function getParamAsString(raw?: string | string[]): string;
|
|
11
|
-
export default getParamAsString;
|
|
1
|
+
export declare let getParamAsString: (raw?: string | string[]) => string;
|