yummies 5.4.4 → 5.4.6
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/.changeset/README.md +8 -0
- package/.changeset/config.json +11 -0
- package/.github/FUNDING.yml +1 -0
- package/.github/workflows/main.yml +34 -0
- package/.github/workflows/version-or-publish.yml +45 -0
- package/.nvmrc +1 -0
- package/.vscode/settings.json +19 -0
- package/CHANGELOG.md +215 -0
- package/CONTRIBUTING.md +8 -0
- package/Makefile +7 -0
- package/assets/logo.png +0 -0
- package/assets/logo.pxz +0 -0
- package/biome.json +3 -0
- package/commitfmt.toml +18 -0
- package/lefthook.yml +14 -0
- package/package.json +3 -389
- package/scripts/post-build.ts +71 -0
- package/src/async.ts +86 -0
- package/src/common.ts +26 -0
- package/src/complex/counter.test.ts +41 -0
- package/src/complex/counter.ts +40 -0
- package/src/complex/global-config.ts +55 -0
- package/src/complex/index.ts +3 -0
- package/src/complex/modules-factory.ts +65 -0
- package/src/cookie.ts +11 -0
- package/src/css.ts +60 -0
- package/src/data.test.ts +99 -0
- package/src/data.ts +65 -0
- package/src/date-time.test.ts +119 -0
- package/src/date-time.ts +236 -0
- package/src/device.ts +42 -0
- package/src/encodings.ts +270 -0
- package/src/errors.ts +40 -0
- package/src/file.ts +25 -0
- package/src/format/_exports.ts +4 -0
- package/{dist/format/constants.js → src/format/constants.ts} +2 -0
- package/{dist/format/index.js → src/format/index.ts} +2 -1
- package/src/format/number.test.ts +16 -0
- package/src/format/number.ts +96 -0
- package/src/format/percent.ts +40 -0
- package/src/format/skip-spaces.ts +4 -0
- package/src/html.ts +238 -0
- package/{dist/id.js → src/id.ts} +16 -6
- package/src/imports.ts +52 -0
- package/src/math.ts +20 -0
- package/src/media.ts +134 -0
- package/src/mobx/apply-observable.ts +20 -0
- package/src/mobx/create-enhanced-atom.ts +28 -0
- package/src/mobx/deep-observable-struct.test.ts +69 -0
- package/src/mobx/deep-observable-struct.ts +69 -0
- package/src/mobx/get-mobx-administration.ts +10 -0
- package/src/mobx/index.ts +5 -0
- package/src/mobx/lazy-observe.ts +59 -0
- package/src/ms.ts +20 -0
- package/src/number.ts +14 -0
- package/src/parser/_exports.ts +3 -0
- package/{dist/parser/index.js → src/parser/index.ts} +2 -1
- package/src/parser/number.test.ts +38 -0
- package/src/parser/number.ts +73 -0
- package/src/parser/percent.ts +11 -0
- package/src/parser/string.ts +29 -0
- package/src/price.ts +33 -0
- package/src/random.ts +27 -0
- package/src/react/hooks/index.ts +21 -0
- package/src/react/hooks/use-abort-controller.ts +15 -0
- package/src/react/hooks/use-abort-signal.ts +5 -0
- package/src/react/hooks/use-click-outside.ts +27 -0
- package/{dist/react/hooks/use-constant.js → src/react/hooks/use-constant.ts} +9 -6
- package/{dist/react/hooks/use-define-ref.js → src/react/hooks/use-define-ref.ts} +10 -7
- package/src/react/hooks/use-element-ref.ts +11 -0
- package/src/react/hooks/use-event-listener.ts +29 -0
- package/src/react/hooks/use-event.ts +23 -0
- package/src/react/hooks/use-flag.ts +27 -0
- package/src/react/hooks/use-force-update.ts +9 -0
- package/src/react/hooks/use-initial-height.ts +16 -0
- package/{dist/react/hooks/use-instance.js → src/react/hooks/use-instance.ts} +31 -9
- package/src/react/hooks/use-intersection-observer.ts +18 -0
- package/src/react/hooks/use-last-defined-value.ts +9 -0
- package/src/react/hooks/use-last-value-ref.ts +11 -0
- package/src/react/hooks/use-life-cycle.ts +17 -0
- package/src/react/hooks/use-resize-observer.ts +14 -0
- package/src/react/hooks/use-sync-ref.ts +7 -0
- package/src/react/hooks/use-toggle.ts +9 -0
- package/src/react/hooks/use-value.ts +10 -0
- package/src/react/hooks/use-visibility-state.ts +19 -0
- package/src/react/index.ts +1 -0
- package/src/sound.ts +15 -0
- package/src/storage.ts +137 -0
- package/src/text.test.ts +91 -0
- package/src/text.ts +60 -0
- package/src/type-guard/_exports.ts +154 -0
- package/src/type-guard/index.test.ts +127 -0
- package/{dist/type-guard/index.js → src/type-guard/index.ts} +2 -1
- package/src/vibrate.ts +8 -0
- package/tsconfig.json +26 -0
- package/tsconfig.test.json +33 -0
- package/vitest.config.ts +20 -0
- package/dist/async.cjs +0 -70
- package/dist/async.d.cts +0 -28
- package/dist/async.d.cts.map +0 -1
- package/dist/async.d.ts +0 -28
- package/dist/async.d.ts.map +0 -1
- package/dist/async.js +0 -62
- package/dist/common.cjs +0 -18
- package/dist/common.d.cts +0 -15
- package/dist/common.d.cts.map +0 -1
- package/dist/common.d.ts +0 -15
- package/dist/common.d.ts.map +0 -1
- package/dist/common.js +0 -14
- package/dist/complex/counter.cjs +0 -21
- package/dist/complex/counter.d.cts +0 -15
- package/dist/complex/counter.d.cts.map +0 -1
- package/dist/complex/counter.d.ts +0 -15
- package/dist/complex/counter.d.ts.map +0 -1
- package/dist/complex/counter.js +0 -17
- package/dist/complex/global-config.cjs +0 -46
- package/dist/complex/global-config.d.cts +0 -11
- package/dist/complex/global-config.d.cts.map +0 -1
- package/dist/complex/global-config.d.ts +0 -11
- package/dist/complex/global-config.d.ts.map +0 -1
- package/dist/complex/global-config.js +0 -41
- package/dist/complex/index.cjs +0 -19
- package/dist/complex/index.d.cts +0 -4
- package/dist/complex/index.d.cts.map +0 -1
- package/dist/complex/index.d.ts +0 -4
- package/dist/complex/index.d.ts.map +0 -1
- package/dist/complex/index.js +0 -3
- package/dist/complex/modules-factory.cjs +0 -50
- package/dist/complex/modules-factory.d.cts +0 -49
- package/dist/complex/modules-factory.d.cts.map +0 -1
- package/dist/complex/modules-factory.d.ts +0 -49
- package/dist/complex/modules-factory.d.ts.map +0 -1
- package/dist/complex/modules-factory.js +0 -46
- package/dist/cookie.cjs +0 -13
- package/dist/cookie.d.cts +0 -3
- package/dist/cookie.d.cts.map +0 -1
- package/dist/cookie.d.ts +0 -3
- package/dist/cookie.d.ts.map +0 -1
- package/dist/cookie.js +0 -9
- package/dist/css.cjs +0 -28
- package/dist/css.d.cts +0 -36
- package/dist/css.d.cts.map +0 -1
- package/dist/css.d.ts +0 -36
- package/dist/css.d.ts.map +0 -1
- package/dist/css.js +0 -20
- package/dist/data.cjs +0 -58
- package/dist/data.d.cts +0 -4
- package/dist/data.d.cts.map +0 -1
- package/dist/data.d.ts +0 -4
- package/dist/data.d.ts.map +0 -1
- package/dist/data.js +0 -52
- package/dist/date-time.cjs +0 -171
- package/dist/date-time.d.cts +0 -28
- package/dist/date-time.d.cts.map +0 -1
- package/dist/date-time.d.ts +0 -28
- package/dist/date-time.d.ts.map +0 -1
- package/dist/date-time.js +0 -160
- package/dist/device.cjs +0 -28
- package/dist/device.d.cts +0 -8
- package/dist/device.d.cts.map +0 -1
- package/dist/device.d.ts +0 -8
- package/dist/device.d.ts.map +0 -1
- package/dist/device.js +0 -21
- package/dist/encodings.cjs +0 -270
- package/dist/encodings.d.cts +0 -2
- package/dist/encodings.d.cts.map +0 -1
- package/dist/encodings.d.ts +0 -2
- package/dist/encodings.d.ts.map +0 -1
- package/dist/encodings.js +0 -267
- package/dist/errors.cjs +0 -34
- package/dist/errors.d.cts +0 -19
- package/dist/errors.d.cts.map +0 -1
- package/dist/errors.d.ts +0 -19
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js +0 -30
- package/dist/file.cjs +0 -29
- package/dist/file.d.cts +0 -3
- package/dist/file.d.cts.map +0 -1
- package/dist/file.d.ts +0 -3
- package/dist/file.d.ts.map +0 -1
- package/dist/file.js +0 -24
- package/dist/format/_exports.cjs +0 -20
- package/dist/format/_exports.d.cts +0 -5
- package/dist/format/_exports.d.cts.map +0 -1
- package/dist/format/_exports.d.ts +0 -5
- package/dist/format/_exports.d.ts.map +0 -1
- package/dist/format/_exports.js +0 -4
- package/dist/format/constants.cjs +0 -6
- package/dist/format/constants.d.cts +0 -4
- package/dist/format/constants.d.cts.map +0 -1
- package/dist/format/constants.d.ts +0 -4
- package/dist/format/constants.d.ts.map +0 -1
- package/dist/format/index.cjs +0 -40
- package/dist/format/index.d.cts +0 -3
- package/dist/format/index.d.cts.map +0 -1
- package/dist/format/index.d.ts +0 -3
- package/dist/format/index.d.ts.map +0 -1
- package/dist/format/number.cjs +0 -48
- package/dist/format/number.d.cts +0 -36
- package/dist/format/number.d.cts.map +0 -1
- package/dist/format/number.d.ts +0 -36
- package/dist/format/number.d.ts.map +0 -1
- package/dist/format/number.js +0 -44
- package/dist/format/percent.cjs +0 -27
- package/dist/format/percent.d.cts +0 -15
- package/dist/format/percent.d.cts.map +0 -1
- package/dist/format/percent.d.ts +0 -15
- package/dist/format/percent.d.ts.map +0 -1
- package/dist/format/percent.js +0 -23
- package/dist/format/skip-spaces.cjs +0 -8
- package/dist/format/skip-spaces.d.cts +0 -5
- package/dist/format/skip-spaces.d.cts.map +0 -1
- package/dist/format/skip-spaces.d.ts +0 -5
- package/dist/format/skip-spaces.d.ts.map +0 -1
- package/dist/format/skip-spaces.js +0 -4
- package/dist/html.cjs +0 -202
- package/dist/html.d.cts +0 -44
- package/dist/html.d.cts.map +0 -1
- package/dist/html.d.ts +0 -44
- package/dist/html.d.ts.map +0 -1
- package/dist/html.js +0 -182
- package/dist/id.cjs +0 -76
- package/dist/id.d.cts +0 -63
- package/dist/id.d.cts.map +0 -1
- package/dist/id.d.ts +0 -63
- package/dist/id.d.ts.map +0 -1
- package/dist/imports.cjs +0 -45
- package/dist/imports.d.cts +0 -15
- package/dist/imports.d.cts.map +0 -1
- package/dist/imports.d.ts +0 -15
- package/dist/imports.d.ts.map +0 -1
- package/dist/imports.js +0 -40
- package/dist/math.cjs +0 -23
- package/dist/math.d.cts +0 -13
- package/dist/math.d.cts.map +0 -1
- package/dist/math.d.ts +0 -13
- package/dist/math.d.ts.map +0 -1
- package/dist/math.js +0 -17
- package/dist/media.cjs +0 -115
- package/dist/media.d.cts +0 -20
- package/dist/media.d.cts.map +0 -1
- package/dist/media.d.ts +0 -20
- package/dist/media.d.ts.map +0 -1
- package/dist/media.js +0 -103
- package/dist/mobx/apply-observable.cjs +0 -16
- package/dist/mobx/apply-observable.d.cts +0 -4
- package/dist/mobx/apply-observable.d.cts.map +0 -1
- package/dist/mobx/apply-observable.d.ts +0 -4
- package/dist/mobx/apply-observable.d.ts.map +0 -1
- package/dist/mobx/apply-observable.js +0 -12
- package/dist/mobx/create-enhanced-atom.cjs +0 -16
- package/dist/mobx/create-enhanced-atom.d.cts +0 -11
- package/dist/mobx/create-enhanced-atom.d.cts.map +0 -1
- package/dist/mobx/create-enhanced-atom.d.ts +0 -11
- package/dist/mobx/create-enhanced-atom.d.ts.map +0 -1
- package/dist/mobx/create-enhanced-atom.js +0 -12
- package/dist/mobx/deep-observable-struct.cjs +0 -61
- package/dist/mobx/deep-observable-struct.d.cts +0 -7
- package/dist/mobx/deep-observable-struct.d.cts.map +0 -1
- package/dist/mobx/deep-observable-struct.d.ts +0 -7
- package/dist/mobx/deep-observable-struct.d.ts.map +0 -1
- package/dist/mobx/deep-observable-struct.js +0 -57
- package/dist/mobx/get-mobx-administration.cjs +0 -6
- package/dist/mobx/get-mobx-administration.d.cts +0 -6
- package/dist/mobx/get-mobx-administration.d.cts.map +0 -1
- package/dist/mobx/get-mobx-administration.d.ts +0 -6
- package/dist/mobx/get-mobx-administration.d.ts.map +0 -1
- package/dist/mobx/get-mobx-administration.js +0 -2
- package/dist/mobx/index.cjs +0 -21
- package/dist/mobx/index.d.cts +0 -6
- package/dist/mobx/index.d.cts.map +0 -1
- package/dist/mobx/index.d.ts +0 -6
- package/dist/mobx/index.d.ts.map +0 -1
- package/dist/mobx/index.js +0 -5
- package/dist/mobx/lazy-observe.cjs +0 -47
- package/dist/mobx/lazy-observe.d.cts +0 -8
- package/dist/mobx/lazy-observe.d.cts.map +0 -1
- package/dist/mobx/lazy-observe.d.ts +0 -8
- package/dist/mobx/lazy-observe.d.ts.map +0 -1
- package/dist/mobx/lazy-observe.js +0 -43
- package/dist/ms.cjs +0 -22
- package/dist/ms.d.cts +0 -19
- package/dist/ms.d.cts.map +0 -1
- package/dist/ms.d.ts +0 -19
- package/dist/ms.d.ts.map +0 -1
- package/dist/ms.js +0 -18
- package/dist/number.cjs +0 -16
- package/dist/number.d.cts +0 -8
- package/dist/number.d.cts.map +0 -1
- package/dist/number.d.ts +0 -8
- package/dist/number.d.ts.map +0 -1
- package/dist/number.js +0 -13
- package/dist/parser/_exports.cjs +0 -19
- package/dist/parser/_exports.d.cts +0 -4
- package/dist/parser/_exports.d.cts.map +0 -1
- package/dist/parser/_exports.d.ts +0 -4
- package/dist/parser/_exports.d.ts.map +0 -1
- package/dist/parser/_exports.js +0 -3
- package/dist/parser/index.cjs +0 -40
- package/dist/parser/index.d.cts +0 -3
- package/dist/parser/index.d.cts.map +0 -1
- package/dist/parser/index.d.ts +0 -3
- package/dist/parser/index.d.ts.map +0 -1
- package/dist/parser/number.cjs +0 -48
- package/dist/parser/number.d.cts +0 -21
- package/dist/parser/number.d.cts.map +0 -1
- package/dist/parser/number.d.ts +0 -21
- package/dist/parser/number.d.ts.map +0 -1
- package/dist/parser/number.js +0 -44
- package/dist/parser/percent.cjs +0 -8
- package/dist/parser/percent.d.cts +0 -4
- package/dist/parser/percent.d.cts.map +0 -1
- package/dist/parser/percent.d.ts +0 -4
- package/dist/parser/percent.d.ts.map +0 -1
- package/dist/parser/percent.js +0 -4
- package/dist/parser/string.cjs +0 -18
- package/dist/parser/string.d.cts +0 -7
- package/dist/parser/string.d.cts.map +0 -1
- package/dist/parser/string.d.ts +0 -7
- package/dist/parser/string.d.ts.map +0 -1
- package/dist/parser/string.js +0 -14
- package/dist/price.cjs +0 -21
- package/dist/price.d.cts +0 -6
- package/dist/price.d.cts.map +0 -1
- package/dist/price.d.ts +0 -6
- package/dist/price.d.ts.map +0 -1
- package/dist/price.js +0 -17
- package/dist/random.cjs +0 -25
- package/dist/random.d.cts +0 -9
- package/dist/random.d.cts.map +0 -1
- package/dist/random.d.ts +0 -9
- package/dist/random.d.ts.map +0 -1
- package/dist/random.js +0 -14
- package/dist/react/hooks/index.cjs +0 -37
- package/dist/react/hooks/index.d.cts +0 -22
- package/dist/react/hooks/index.d.cts.map +0 -1
- package/dist/react/hooks/index.d.ts +0 -22
- package/dist/react/hooks/index.d.ts.map +0 -1
- package/dist/react/hooks/index.js +0 -21
- package/dist/react/hooks/use-abort-controller.cjs +0 -15
- package/dist/react/hooks/use-abort-controller.d.cts +0 -2
- package/dist/react/hooks/use-abort-controller.d.cts.map +0 -1
- package/dist/react/hooks/use-abort-controller.d.ts +0 -2
- package/dist/react/hooks/use-abort-controller.d.ts.map +0 -1
- package/dist/react/hooks/use-abort-controller.js +0 -11
- package/dist/react/hooks/use-abort-signal.cjs +0 -8
- package/dist/react/hooks/use-abort-signal.d.cts +0 -2
- package/dist/react/hooks/use-abort-signal.d.cts.map +0 -1
- package/dist/react/hooks/use-abort-signal.d.ts +0 -2
- package/dist/react/hooks/use-abort-signal.d.ts.map +0 -1
- package/dist/react/hooks/use-abort-signal.js +0 -4
- package/dist/react/hooks/use-click-outside.cjs +0 -17
- package/dist/react/hooks/use-click-outside.d.cts +0 -9
- package/dist/react/hooks/use-click-outside.d.cts.map +0 -1
- package/dist/react/hooks/use-click-outside.d.ts +0 -9
- package/dist/react/hooks/use-click-outside.d.ts.map +0 -1
- package/dist/react/hooks/use-click-outside.js +0 -13
- package/dist/react/hooks/use-constant.cjs +0 -19
- package/dist/react/hooks/use-constant.d.cts +0 -9
- package/dist/react/hooks/use-constant.d.cts.map +0 -1
- package/dist/react/hooks/use-constant.d.ts +0 -9
- package/dist/react/hooks/use-constant.d.ts.map +0 -1
- package/dist/react/hooks/use-define-ref.cjs +0 -19
- package/dist/react/hooks/use-define-ref.d.cts +0 -10
- package/dist/react/hooks/use-define-ref.d.cts.map +0 -1
- package/dist/react/hooks/use-define-ref.d.ts +0 -10
- package/dist/react/hooks/use-define-ref.d.ts.map +0 -1
- package/dist/react/hooks/use-element-ref.cjs +0 -12
- package/dist/react/hooks/use-element-ref.d.cts +0 -2
- package/dist/react/hooks/use-element-ref.d.cts.map +0 -1
- package/dist/react/hooks/use-element-ref.d.ts +0 -2
- package/dist/react/hooks/use-element-ref.d.ts.map +0 -1
- package/dist/react/hooks/use-element-ref.js +0 -8
- package/dist/react/hooks/use-event-listener.cjs +0 -17
- package/dist/react/hooks/use-event-listener.d.cts +0 -8
- package/dist/react/hooks/use-event-listener.d.cts.map +0 -1
- package/dist/react/hooks/use-event-listener.d.ts +0 -8
- package/dist/react/hooks/use-event-listener.d.ts.map +0 -1
- package/dist/react/hooks/use-event-listener.js +0 -13
- package/dist/react/hooks/use-event.cjs +0 -23
- package/dist/react/hooks/use-event.d.cts +0 -3
- package/dist/react/hooks/use-event.d.cts.map +0 -1
- package/dist/react/hooks/use-event.d.ts +0 -3
- package/dist/react/hooks/use-event.d.ts.map +0 -1
- package/dist/react/hooks/use-event.js +0 -19
- package/dist/react/hooks/use-flag.cjs +0 -19
- package/dist/react/hooks/use-flag.d.cts +0 -8
- package/dist/react/hooks/use-flag.d.cts.map +0 -1
- package/dist/react/hooks/use-flag.d.ts +0 -8
- package/dist/react/hooks/use-flag.d.ts.map +0 -1
- package/dist/react/hooks/use-flag.js +0 -15
- package/dist/react/hooks/use-force-update.cjs +0 -11
- package/dist/react/hooks/use-force-update.d.cts +0 -2
- package/dist/react/hooks/use-force-update.d.cts.map +0 -1
- package/dist/react/hooks/use-force-update.d.ts +0 -2
- package/dist/react/hooks/use-force-update.d.ts.map +0 -1
- package/dist/react/hooks/use-force-update.js +0 -7
- package/dist/react/hooks/use-initial-height.cjs +0 -15
- package/dist/react/hooks/use-initial-height.d.cts +0 -5
- package/dist/react/hooks/use-initial-height.d.cts.map +0 -1
- package/dist/react/hooks/use-initial-height.d.ts +0 -5
- package/dist/react/hooks/use-initial-height.d.ts.map +0 -1
- package/dist/react/hooks/use-initial-height.js +0 -11
- package/dist/react/hooks/use-instance.cjs +0 -31
- package/dist/react/hooks/use-instance.d.cts +0 -27
- package/dist/react/hooks/use-instance.d.cts.map +0 -1
- package/dist/react/hooks/use-instance.d.ts +0 -27
- package/dist/react/hooks/use-instance.d.ts.map +0 -1
- package/dist/react/hooks/use-intersection-observer.cjs +0 -14
- package/dist/react/hooks/use-intersection-observer.d.cts +0 -2
- package/dist/react/hooks/use-intersection-observer.d.cts.map +0 -1
- package/dist/react/hooks/use-intersection-observer.d.ts +0 -2
- package/dist/react/hooks/use-intersection-observer.d.ts.map +0 -1
- package/dist/react/hooks/use-intersection-observer.js +0 -10
- package/dist/react/hooks/use-last-defined-value.cjs +0 -12
- package/dist/react/hooks/use-last-defined-value.d.cts +0 -2
- package/dist/react/hooks/use-last-defined-value.d.cts.map +0 -1
- package/dist/react/hooks/use-last-defined-value.d.ts +0 -2
- package/dist/react/hooks/use-last-defined-value.d.ts.map +0 -1
- package/dist/react/hooks/use-last-defined-value.js +0 -8
- package/dist/react/hooks/use-last-value-ref.cjs +0 -12
- package/dist/react/hooks/use-last-value-ref.d.cts +0 -2
- package/dist/react/hooks/use-last-value-ref.d.cts.map +0 -1
- package/dist/react/hooks/use-last-value-ref.d.ts +0 -2
- package/dist/react/hooks/use-last-value-ref.d.ts.map +0 -1
- package/dist/react/hooks/use-last-value-ref.js +0 -8
- package/dist/react/hooks/use-life-cycle.cjs +0 -14
- package/dist/react/hooks/use-life-cycle.d.cts +0 -5
- package/dist/react/hooks/use-life-cycle.d.cts.map +0 -1
- package/dist/react/hooks/use-life-cycle.d.ts +0 -5
- package/dist/react/hooks/use-life-cycle.d.ts.map +0 -1
- package/dist/react/hooks/use-life-cycle.js +0 -10
- package/dist/react/hooks/use-resize-observer.cjs +0 -15
- package/dist/react/hooks/use-resize-observer.d.cts +0 -2
- package/dist/react/hooks/use-resize-observer.d.cts.map +0 -1
- package/dist/react/hooks/use-resize-observer.d.ts +0 -2
- package/dist/react/hooks/use-resize-observer.d.ts.map +0 -1
- package/dist/react/hooks/use-resize-observer.js +0 -11
- package/dist/react/hooks/use-sync-ref.cjs +0 -10
- package/dist/react/hooks/use-sync-ref.d.cts +0 -2
- package/dist/react/hooks/use-sync-ref.d.cts.map +0 -1
- package/dist/react/hooks/use-sync-ref.d.ts +0 -2
- package/dist/react/hooks/use-sync-ref.d.ts.map +0 -1
- package/dist/react/hooks/use-sync-ref.js +0 -6
- package/dist/react/hooks/use-toggle.cjs +0 -10
- package/dist/react/hooks/use-toggle.d.cts +0 -2
- package/dist/react/hooks/use-toggle.d.cts.map +0 -1
- package/dist/react/hooks/use-toggle.d.ts +0 -2
- package/dist/react/hooks/use-toggle.d.ts.map +0 -1
- package/dist/react/hooks/use-toggle.js +0 -6
- package/dist/react/hooks/use-value.cjs +0 -12
- package/dist/react/hooks/use-value.d.cts +0 -5
- package/dist/react/hooks/use-value.d.cts.map +0 -1
- package/dist/react/hooks/use-value.d.ts +0 -5
- package/dist/react/hooks/use-value.d.ts.map +0 -1
- package/dist/react/hooks/use-value.js +0 -8
- package/dist/react/hooks/use-visibility-state.cjs +0 -18
- package/dist/react/hooks/use-visibility-state.d.cts +0 -2
- package/dist/react/hooks/use-visibility-state.d.cts.map +0 -1
- package/dist/react/hooks/use-visibility-state.d.ts +0 -2
- package/dist/react/hooks/use-visibility-state.d.ts.map +0 -1
- package/dist/react/hooks/use-visibility-state.js +0 -14
- package/dist/react/index.cjs +0 -17
- package/dist/react/index.d.cts +0 -2
- package/dist/react/index.d.cts.map +0 -1
- package/dist/react/index.d.ts +0 -2
- package/dist/react/index.d.ts.map +0 -1
- package/dist/react/index.js +0 -1
- package/dist/sound.cjs +0 -16
- package/dist/sound.d.cts +0 -7
- package/dist/sound.d.cts.map +0 -1
- package/dist/sound.d.ts +0 -7
- package/dist/sound.d.ts.map +0 -1
- package/dist/sound.js +0 -12
- package/dist/storage.cjs +0 -48
- package/dist/storage.d.cts +0 -39
- package/dist/storage.d.cts.map +0 -1
- package/dist/storage.d.ts +0 -39
- package/dist/storage.d.ts.map +0 -1
- package/dist/storage.js +0 -43
- package/dist/text.cjs +0 -53
- package/dist/text.d.cts +0 -15
- package/dist/text.d.cts.map +0 -1
- package/dist/text.d.ts +0 -15
- package/dist/text.d.ts.map +0 -1
- package/dist/text.js +0 -48
- package/dist/type-guard/_exports.cjs +0 -129
- package/dist/type-guard/_exports.d.cts +0 -86
- package/dist/type-guard/_exports.d.cts.map +0 -1
- package/dist/type-guard/_exports.d.ts +0 -86
- package/dist/type-guard/_exports.d.ts.map +0 -1
- package/dist/type-guard/_exports.js +0 -125
- package/dist/type-guard/index.cjs +0 -40
- package/dist/type-guard/index.d.cts +0 -3
- package/dist/type-guard/index.d.cts.map +0 -1
- package/dist/type-guard/index.d.ts +0 -3
- package/dist/type-guard/index.d.ts.map +0 -1
- package/dist/utils/types.cjs +0 -2
- package/dist/utils/types.d.cts +0 -395
- package/dist/utils/types.d.cts.map +0 -1
- package/dist/utils/types.d.ts +0 -395
- package/dist/utils/types.d.ts.map +0 -1
- package/dist/utils/types.js +0 -1
- package/dist/vibrate.cjs +0 -12
- package/dist/vibrate.d.cts +0 -5
- package/dist/vibrate.d.cts.map +0 -1
- package/dist/vibrate.d.ts +0 -5
- package/dist/vibrate.d.ts.map +0 -1
- package/dist/vibrate.js +0 -8
- package/utility-types.d.ts +0 -395
package/utility-types.d.ts
DELETED
|
@@ -1,395 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Extracts all values from an object or array type.
|
|
3
|
-
*
|
|
4
|
-
* @template T - The input type to extract values from
|
|
5
|
-
* @returns The union of all possible values in T
|
|
6
|
-
*/
|
|
7
|
-
type ValueOf<T> = T[keyof T];
|
|
8
|
-
/**
|
|
9
|
-
* Extracts enum keys as a union type.
|
|
10
|
-
*
|
|
11
|
-
* @template T - The enum type to extract keys from
|
|
12
|
-
* @returns A union of all string keys in the enum
|
|
13
|
-
*/
|
|
14
|
-
type ExtractEnumKeys<T> = ValueOf<{
|
|
15
|
-
[key in keyof T]: key extends string ? key : never;
|
|
16
|
-
}>;
|
|
17
|
-
/**
|
|
18
|
-
* Extracts enum values as a union type.
|
|
19
|
-
*
|
|
20
|
-
* @template T - The enum type to extract values from
|
|
21
|
-
* @returns A union of all string and numeric values in the enum
|
|
22
|
-
*/
|
|
23
|
-
type ExtractEnumValues<T> = `${T & string}` | (T & number);
|
|
24
|
-
/**
|
|
25
|
-
* Represents a type that can be either the specified type or `undefined` or `null`.
|
|
26
|
-
*
|
|
27
|
-
* @template T - The input type
|
|
28
|
-
* @returns T or `undefined` or `null`
|
|
29
|
-
*/
|
|
30
|
-
type Maybe<T> = Nullable<T> | undefined;
|
|
31
|
-
/**
|
|
32
|
-
* Represents a type that can be either the specified type or `null`.
|
|
33
|
-
*
|
|
34
|
-
* @template T - The type to make possibly `null`
|
|
35
|
-
* @returns `T` or `null`
|
|
36
|
-
*/
|
|
37
|
-
type Nullable<T> = T | null;
|
|
38
|
-
/**
|
|
39
|
-
* Represents any object with any keys and any values.
|
|
40
|
-
*
|
|
41
|
-
* @returns Record with any keys and any values
|
|
42
|
-
*/
|
|
43
|
-
type AnyObject = Record<keyof any, any>;
|
|
44
|
-
/**
|
|
45
|
-
* Represents an empty object with no properties.
|
|
46
|
-
*
|
|
47
|
-
* @returns Record with no keys and no values
|
|
48
|
-
*/
|
|
49
|
-
type EmptyObject = Record<keyof any, never>;
|
|
50
|
-
/**
|
|
51
|
-
* Represents all primitive types in TypeScript.
|
|
52
|
-
*
|
|
53
|
-
* @returns Union of all primitive types
|
|
54
|
-
*/
|
|
55
|
-
type Primitive = null | undefined | string | number | boolean | symbol | bigint;
|
|
56
|
-
/**
|
|
57
|
-
* Represents any primitive type (string, number, boolean, null, or undefined).
|
|
58
|
-
*
|
|
59
|
-
* @deprecated use `Primitive` type
|
|
60
|
-
*
|
|
61
|
-
* @returns Union of all primitive types
|
|
62
|
-
*/
|
|
63
|
-
type AnyPrimitive = Primitive;
|
|
64
|
-
/**
|
|
65
|
-
* Represents any function type.
|
|
66
|
-
*
|
|
67
|
-
* @returns Function with any parameters and return type
|
|
68
|
-
*/
|
|
69
|
-
type AnyFunction = (...args: any) => any;
|
|
70
|
-
/**
|
|
71
|
-
* Converts a union type to an intersection type.
|
|
72
|
-
*
|
|
73
|
-
* @template U - The union type to convert
|
|
74
|
-
* @returns Intersection of all types in the union
|
|
75
|
-
*/
|
|
76
|
-
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
|
|
77
|
-
/**
|
|
78
|
-
* Represents falsy values (undefined, null, empty string, false, or 0).
|
|
79
|
-
*
|
|
80
|
-
* @returns Union of all falsy values
|
|
81
|
-
*/
|
|
82
|
-
type FalsyValues = undefined | null | '' | false | 0;
|
|
83
|
-
/**
|
|
84
|
-
* Represents a type that can be either the specified type, undefined, or any other falsy value.
|
|
85
|
-
*
|
|
86
|
-
* @template T - The type to make possibly falsy
|
|
87
|
-
* @returns T, undefined, or a falsy value
|
|
88
|
-
*/
|
|
89
|
-
type MaybeFalsy<T> = T | FalsyValues;
|
|
90
|
-
/**
|
|
91
|
-
* Represents a type that can be either the specified type or a function returning that type.
|
|
92
|
-
*
|
|
93
|
-
* @template T - The type to make possibly a function
|
|
94
|
-
* @template TArgs - Arguments type for the function
|
|
95
|
-
* @returns T or a function that returns T
|
|
96
|
-
*/
|
|
97
|
-
type MaybeFn<T, TArgs extends any[] = any[]> = T | ((...args: TArgs) => T);
|
|
98
|
-
/**
|
|
99
|
-
* Represents a class constructor type.
|
|
100
|
-
*
|
|
101
|
-
* @template T - The type the class constructs
|
|
102
|
-
* @template Args - Constructor arguments type
|
|
103
|
-
* @returns Constructor function for T with specified arguments
|
|
104
|
-
*/
|
|
105
|
-
type Class<T, Args extends any[] = any[]> = new (...args: Args) => T;
|
|
106
|
-
/**
|
|
107
|
-
* Creates a deeply partial version of a type, making all properties optional recursively.
|
|
108
|
-
*
|
|
109
|
-
* @template T - The type to make deeply partial
|
|
110
|
-
* @returns A type with all properties optional at any depth
|
|
111
|
-
*/
|
|
112
|
-
type DeepPartial<T> = T extends BrowserNativeObject ? T : {
|
|
113
|
-
[K in keyof T]?: ExtractObjects<T[K]> extends never ? T[K] : DeepPartial<T[K]>;
|
|
114
|
-
};
|
|
115
|
-
/**
|
|
116
|
-
* Makes specified keys of a type optional while keeping the rest required.
|
|
117
|
-
*
|
|
118
|
-
* @template T - The original type
|
|
119
|
-
* @template K - The keys to make optional
|
|
120
|
-
* @returns A type with specified keys optional and others required
|
|
121
|
-
*/
|
|
122
|
-
type PartialKeys<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
123
|
-
/**
|
|
124
|
-
* Makes specified keys of a type required while keeping the rest optional.
|
|
125
|
-
*
|
|
126
|
-
* @template T - The original type
|
|
127
|
-
* @template K - The keys to make required
|
|
128
|
-
* @returns A type with specified keys required and others optional
|
|
129
|
-
*/
|
|
130
|
-
type RequiredKeys<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
|
|
131
|
-
/**
|
|
132
|
-
* Extracts the inner type from a Promise type.
|
|
133
|
-
*
|
|
134
|
-
* @deprecated use `Awaited<T>` from stdlib of TypeScript
|
|
135
|
-
*
|
|
136
|
-
* @template T - The type that may be a Promise
|
|
137
|
-
* @returns The resolved type of the Promise or T itself if not a Promise
|
|
138
|
-
*/
|
|
139
|
-
type Unpromise<T> = T extends Promise<infer TValue> ? TValue : T;
|
|
140
|
-
/**
|
|
141
|
-
* Makes all values in an object type possibly undefined.
|
|
142
|
-
*
|
|
143
|
-
* @template T - The object type to make values possibly undefined
|
|
144
|
-
* @returns A type with all values possibly undefined
|
|
145
|
-
*/
|
|
146
|
-
type MaybeValues<T extends AnyObject> = {
|
|
147
|
-
[K in keyof T]: Maybe<T[K]>;
|
|
148
|
-
};
|
|
149
|
-
/**
|
|
150
|
-
* Gets the keys of an object whose values match a specific type.
|
|
151
|
-
*
|
|
152
|
-
* @template T - The object type
|
|
153
|
-
* @template TValues - The value type to match
|
|
154
|
-
* @returns Union of keys whose values match TValues
|
|
155
|
-
*/
|
|
156
|
-
type KeyOfByValue<T, TValues> = ValueOf<{
|
|
157
|
-
[K in keyof T]: T[K] extends TValues ? K : never;
|
|
158
|
-
}>;
|
|
159
|
-
/**
|
|
160
|
-
* Picks properties from an object whose values match a specific type.
|
|
161
|
-
*
|
|
162
|
-
* @template T - The object type
|
|
163
|
-
* @template TValues - The value type to match
|
|
164
|
-
* @returns A type with only the properties whose values match TValues
|
|
165
|
-
*/
|
|
166
|
-
type PickByValue<T, TValues> = Pick<T, KeyOfByValue<T, TValues>>;
|
|
167
|
-
/**
|
|
168
|
-
* Omits properties from an object whose values match a specific type.
|
|
169
|
-
*
|
|
170
|
-
* @template T - The object type
|
|
171
|
-
* @template TValues - The value type to match
|
|
172
|
-
* @returns A type with the properties whose values match TValues omitted
|
|
173
|
-
*/
|
|
174
|
-
type OmitByValue<T, TValues> = Omit<T, KeyOfByValue<T, TValues>>;
|
|
175
|
-
/**
|
|
176
|
-
* Determines if all properties in a type are optional.
|
|
177
|
-
*
|
|
178
|
-
* @template T - The type to check
|
|
179
|
-
* @returns True if all properties are optional, false otherwise
|
|
180
|
-
*/
|
|
181
|
-
type IsPartial<T> = keyof T extends never ? true : {
|
|
182
|
-
[K in keyof T]-?: undefined extends T[K] ? never : K;
|
|
183
|
-
} extends {
|
|
184
|
-
[K in keyof T]: never;
|
|
185
|
-
} ? true : T extends EmptyObject ? true : false;
|
|
186
|
-
/**
|
|
187
|
-
* @deprecated use `IsPartial<T>` . Better naming
|
|
188
|
-
*
|
|
189
|
-
* @template T - The type to check
|
|
190
|
-
* @returns True if all properties are optional, false otherwise
|
|
191
|
-
*/
|
|
192
|
-
type AllPropertiesOptional<T> = IsPartial<T>;
|
|
193
|
-
/**
|
|
194
|
-
* Conditionally makes a type partially optional based on a condition.
|
|
195
|
-
*
|
|
196
|
-
* @template TCondition - The condition to check
|
|
197
|
-
* @template TObject - The object type to make partial if condition is true
|
|
198
|
-
* @returns Partial<TObject> if TCondition is true, otherwise TObject
|
|
199
|
-
*/
|
|
200
|
-
type PartialIf<TCondition, TObject> = TCondition extends true ? Partial<TObject> : TObject;
|
|
201
|
-
/**
|
|
202
|
-
* Converts a record type into an array of key-value pairs.
|
|
203
|
-
*
|
|
204
|
-
* @template T - The record type to convert
|
|
205
|
-
* @returns Array of [key, value] tuples
|
|
206
|
-
*/
|
|
207
|
-
type RecordEntries<T extends AnyObject> = T extends Record<infer Keys, infer Values> ? [Keys, Values][] : T extends Partial<Record<infer Keys, infer Values>> ? [Keys, Values][] : never;
|
|
208
|
-
/**
|
|
209
|
-
* Renames a key in an object type, preserving the optional nature of the property.
|
|
210
|
-
*
|
|
211
|
-
* @template TObject - The object type
|
|
212
|
-
* @template TOldKey - The old key name
|
|
213
|
-
* @template TNewKey - The new key name
|
|
214
|
-
* @returns A type with the key renamed
|
|
215
|
-
*/
|
|
216
|
-
type RenameKey<TObject, TOldKey extends keyof TObject, TNewKey extends string> = Omit<TObject, TOldKey> & IsPartial<Pick<TObject, TOldKey>> extends true ? {
|
|
217
|
-
[K in TNewKey]?: TObject[TOldKey];
|
|
218
|
-
} : {
|
|
219
|
-
[K in TNewKey]: TObject[TOldKey];
|
|
220
|
-
};
|
|
221
|
-
/**
|
|
222
|
-
* Determines if an object type is empty (has no properties).
|
|
223
|
-
*
|
|
224
|
-
* @template T - The object type to check
|
|
225
|
-
* @returns True if the object is empty, false otherwise
|
|
226
|
-
*/
|
|
227
|
-
type IsObjectEmpty<T extends AnyObject> = T extends EmptyObject ? true : keyof T extends never ? true : never;
|
|
228
|
-
/**
|
|
229
|
-
* Determines if an array type is empty.
|
|
230
|
-
*
|
|
231
|
-
* @template T - The array type to check
|
|
232
|
-
* @returns True if the array is empty, false otherwise
|
|
233
|
-
*/
|
|
234
|
-
type IsEmptyArray<T extends readonly any[]> = T extends [] ? true : false;
|
|
235
|
-
/**
|
|
236
|
-
* Extracts the parameter types from a function type.
|
|
237
|
-
*
|
|
238
|
-
* @template T - The function type to extract parameters from
|
|
239
|
-
* @returns Union of all possible parameter types
|
|
240
|
-
*/
|
|
241
|
-
type Params<T extends (...args: any) => any> = T extends {
|
|
242
|
-
(...args: infer P1): any;
|
|
243
|
-
(...args: infer P2): any;
|
|
244
|
-
} ? P1 | P2 : T extends (...args: infer P) => any ? P : never;
|
|
245
|
-
/**
|
|
246
|
-
* Represents browser native object types.
|
|
247
|
-
*
|
|
248
|
-
* @returns Union of browser native object types
|
|
249
|
-
*/
|
|
250
|
-
type BrowserNativeObject = Date | FileList | File | Element | Node;
|
|
251
|
-
/**
|
|
252
|
-
* Removes undefined from a type.
|
|
253
|
-
*
|
|
254
|
-
* @template T - The type to remove undefined from
|
|
255
|
-
* @returns T with undefined removed
|
|
256
|
-
*/
|
|
257
|
-
type NonUndefined<T> = T extends undefined ? never : T;
|
|
258
|
-
/**
|
|
259
|
-
* Creates a literal union type that includes both a specific literal type and a primitive type.
|
|
260
|
-
*
|
|
261
|
-
* @template T - The literal type
|
|
262
|
-
* @template U - The primitive type
|
|
263
|
-
* @returns Union of T and U with a private property to prevent widening
|
|
264
|
-
*/
|
|
265
|
-
type LiteralUnion<T extends U, U extends Primitive> = T | (U & {
|
|
266
|
-
_?: never;
|
|
267
|
-
});
|
|
268
|
-
/**
|
|
269
|
-
* Extracts object types from a type, excluding primitives.
|
|
270
|
-
*
|
|
271
|
-
* @template T - The type to extract objects from
|
|
272
|
-
* @returns T if it's an object, otherwise never
|
|
273
|
-
*/
|
|
274
|
-
type ExtractObjects<T> = T extends infer U ? U extends object ? U : never : never;
|
|
275
|
-
/**
|
|
276
|
-
* Replace value in object by key
|
|
277
|
-
*
|
|
278
|
-
* @example
|
|
279
|
-
* ```ts
|
|
280
|
-
* type Test = { foo: string; bar?: number };
|
|
281
|
-
* type FixedTest = OverrideKey<Test, 'bar', string>
|
|
282
|
-
* // { foo: string; bar?: string }
|
|
283
|
-
* ```
|
|
284
|
-
*
|
|
285
|
-
* @template T - The object type
|
|
286
|
-
* @template K - The key to replace
|
|
287
|
-
* @template V - The new value type
|
|
288
|
-
* @returns A type with the specified key replaced with the new value type
|
|
289
|
-
*/
|
|
290
|
-
type OverrideKey<T, K extends keyof T, V> = {
|
|
291
|
-
[KK in keyof T]: KK extends K ? V : T[KK];
|
|
292
|
-
};
|
|
293
|
-
/**
|
|
294
|
-
* Checks if two types are equal.
|
|
295
|
-
*
|
|
296
|
-
* @template X - First type to compare
|
|
297
|
-
* @template Y - Second type to compare
|
|
298
|
-
* @returns True if types are equal, false otherwise
|
|
299
|
-
*/
|
|
300
|
-
type IfEquals<X, Y> = (<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2 ? true : false;
|
|
301
|
-
/**
|
|
302
|
-
* Gets the writable keys of a type (keys that are not readonly).
|
|
303
|
-
*
|
|
304
|
-
* @template T - The type to extract writable keys from
|
|
305
|
-
* @returns Union of keys that are not readonly
|
|
306
|
-
*/
|
|
307
|
-
type WritableKeys<T> = {
|
|
308
|
-
[K in keyof T]: IfEquals<{
|
|
309
|
-
[Q in K]: T[K];
|
|
310
|
-
}, {
|
|
311
|
-
-readonly [Q in K]: T[K];
|
|
312
|
-
}> extends true ? K : never;
|
|
313
|
-
}[keyof T];
|
|
314
|
-
/**
|
|
315
|
-
* Gets the readonly keys of a type.
|
|
316
|
-
*
|
|
317
|
-
* @template T - The type to extract readonly keys from
|
|
318
|
-
* @returns Union of keys that are readonly
|
|
319
|
-
*/
|
|
320
|
-
type ReadonlyKeys<T> = {
|
|
321
|
-
[P in keyof T]-?: IfEquals<{
|
|
322
|
-
[Q in P]: T[P];
|
|
323
|
-
}, {
|
|
324
|
-
-readonly [Q in P]: T[P];
|
|
325
|
-
}> extends true ? never : P;
|
|
326
|
-
}[keyof T];
|
|
327
|
-
/**
|
|
328
|
-
* Gets the non-readonly properties of a type.
|
|
329
|
-
*
|
|
330
|
-
* @template T - The type to extract non-readonly properties from
|
|
331
|
-
* @returns A type with only the non-readonly properties
|
|
332
|
-
*/
|
|
333
|
-
type NonReadonly<T> = Pick<T, WritableKeys<T>>;
|
|
334
|
-
/**
|
|
335
|
-
* Determines if a type is an array.
|
|
336
|
-
*
|
|
337
|
-
* @template T - The type to check
|
|
338
|
-
* @returns True if the type is an array, false otherwise
|
|
339
|
-
*/
|
|
340
|
-
type IsArray<T> = T extends object ? T extends Function ? false : T extends any[] ? true : false : false;
|
|
341
|
-
/**
|
|
342
|
-
* Determines if a type is a function.
|
|
343
|
-
*
|
|
344
|
-
* @template T - The type to check
|
|
345
|
-
* @returns True if the type is a function, false otherwise
|
|
346
|
-
*/
|
|
347
|
-
type IsFunction<T> = T extends object ? T extends Function ? true : false : false;
|
|
348
|
-
/**
|
|
349
|
-
* Determines if a type is an object (but not an array or function).
|
|
350
|
-
*
|
|
351
|
-
* @template T - The type to check
|
|
352
|
-
* @returns True if the type is an object, false otherwise
|
|
353
|
-
*/
|
|
354
|
-
type IsObject<T> = T extends object ? T extends Function ? false : T extends any[] ? false : true : false;
|
|
355
|
-
/**
|
|
356
|
-
* Creates a deep copy of an object type, preserving the structure.
|
|
357
|
-
*
|
|
358
|
-
* @template T - The type to copy
|
|
359
|
-
* @returns A deep copy of the type
|
|
360
|
-
*/
|
|
361
|
-
type CopyObject<T> = IsObject<T> extends true ? {
|
|
362
|
-
[K in keyof T]: IsObject<T[K]> extends true ? CopyObject<T[K]> : T[K];
|
|
363
|
-
} : T;
|
|
364
|
-
/**
|
|
365
|
-
* Represents a type that can be either the specified type or a Promise resolving to that type.
|
|
366
|
-
*
|
|
367
|
-
* @template T - The type to make possibly a promise
|
|
368
|
-
* @returns T or Promise<T>
|
|
369
|
-
*/
|
|
370
|
-
type MaybePromise<T> = T | Promise<T>;
|
|
371
|
-
/**
|
|
372
|
-
* Makes specified keys of a type required while keeping the rest optional.
|
|
373
|
-
*
|
|
374
|
-
* @template TTarget - The original type
|
|
375
|
-
* @template TKey - The key(s) to make required
|
|
376
|
-
* @returns A type with specified keys required and others optional
|
|
377
|
-
*/
|
|
378
|
-
type WithRequired<TTarget, TKey extends keyof TTarget> = TTarget & {
|
|
379
|
-
[_ in TKey]: {};
|
|
380
|
-
};
|
|
381
|
-
/**
|
|
382
|
-
* Extracts the index keys from an array type.
|
|
383
|
-
*
|
|
384
|
-
* @template T - The array type to extract index keys from
|
|
385
|
-
* @returns Union of index keys (string representations of numbers)
|
|
386
|
-
*/
|
|
387
|
-
type IndexKeys<T extends any[]> = Extract<keyof T, `${number}`>;
|
|
388
|
-
/**
|
|
389
|
-
* Removes undefined from a type.
|
|
390
|
-
*
|
|
391
|
-
* @template T - The type to remove undefined from
|
|
392
|
-
* @returns T with undefined removed
|
|
393
|
-
*/
|
|
394
|
-
type Defined<T> = Exclude<T, undefined>;
|
|
395
|
-
//# sourceMappingURL=types.d.ts.map
|