yummies 5.4.5 → 5.4.7
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/assets/logo.png +0 -0
- package/assets/logo.pxz +0 -0
- package/{dist/common.d.ts → common.d.ts} +1 -1
- package/common.d.ts.map +1 -0
- package/{dist/complex → complex}/global-config.d.ts +1 -1
- package/complex/global-config.d.ts.map +1 -0
- package/complex/index.d.ts +4 -0
- package/complex/index.d.ts.map +1 -0
- package/complex/index.js +3 -0
- package/{dist/complex → complex}/modules-factory.d.ts +1 -1
- package/complex/modules-factory.d.ts.map +1 -0
- package/cookie.d.ts +3 -0
- package/{dist/cookie.d.ts.map → cookie.d.ts.map} +1 -1
- package/{dist/date-time.d.ts → date-time.d.ts} +1 -1
- package/date-time.d.ts.map +1 -0
- package/{dist/date-time.js → date-time.js} +4 -4
- package/{dist/errors.d.ts → errors.d.ts} +1 -1
- package/errors.d.ts.map +1 -0
- package/{dist/errors.js → errors.js} +1 -1
- package/format/_exports.d.ts +5 -0
- package/format/_exports.d.ts.map +1 -0
- package/format/_exports.js +4 -0
- package/format/index.d.ts +3 -0
- package/{dist/format → format}/index.d.ts.map +1 -1
- package/{dist/format → format}/index.js +1 -1
- package/{dist/format → format}/number.d.ts +1 -1
- package/format/number.d.ts.map +1 -0
- package/{dist/format → format}/number.js +3 -3
- package/{dist/format → format}/percent.d.ts +2 -2
- package/format/percent.d.ts.map +1 -0
- package/{dist/format → format}/percent.js +3 -3
- package/{dist/html.d.ts → html.d.ts} +1 -1
- package/html.d.ts.map +1 -0
- package/{dist/html.js → html.js} +1 -1
- package/{dist/imports.js → imports.js} +1 -1
- package/{dist/math.d.ts → math.d.ts} +1 -1
- package/math.d.ts.map +1 -0
- package/{dist/media.js → media.js} +1 -1
- package/{dist/mobx → mobx}/apply-observable.d.ts +1 -1
- package/mobx/apply-observable.d.ts.map +1 -0
- package/{dist/mobx → mobx}/create-enhanced-atom.d.ts +1 -1
- package/mobx/create-enhanced-atom.d.ts.map +1 -0
- package/{dist/mobx → mobx}/deep-observable-struct.d.ts +1 -1
- package/mobx/deep-observable-struct.d.ts.map +1 -0
- package/{dist/mobx → mobx}/deep-observable-struct.js +1 -1
- package/{dist/mobx → mobx}/get-mobx-administration.d.ts +1 -1
- package/mobx/get-mobx-administration.d.ts.map +1 -0
- package/mobx/index.d.ts +6 -0
- package/mobx/index.d.ts.map +1 -0
- package/mobx/index.js +5 -0
- package/package.json +350 -340
- package/parser/_exports.d.ts +4 -0
- package/parser/_exports.d.ts.map +1 -0
- package/parser/_exports.js +3 -0
- package/parser/index.d.ts +3 -0
- package/{dist/parser → parser}/index.d.ts.map +1 -1
- package/{dist/parser → parser}/index.js +1 -1
- package/{dist/parser → parser}/number.d.ts +1 -1
- package/parser/number.d.ts.map +1 -0
- package/{dist/parser → parser}/number.js +2 -2
- package/{dist/parser → parser}/percent.d.ts +2 -2
- package/parser/percent.d.ts.map +1 -0
- package/{dist/parser → parser}/percent.js +1 -1
- package/{dist/parser → parser}/string.d.ts +1 -1
- package/parser/string.d.ts.map +1 -0
- package/{dist/parser → parser}/string.js +1 -1
- package/react/hooks/index.d.ts +22 -0
- package/react/hooks/index.d.ts.map +1 -0
- package/react/hooks/index.js +21 -0
- package/{dist/react → react}/hooks/use-abort-controller.js +1 -1
- package/{dist/react → react}/hooks/use-abort-signal.js +1 -1
- package/{dist/react → react}/hooks/use-click-outside.js +1 -1
- package/{dist/react → react}/hooks/use-event-listener.js +1 -1
- package/react/hooks/use-event.d.ts +3 -0
- package/{dist/react → react}/hooks/use-event.d.ts.map +1 -1
- package/{dist/react → react}/hooks/use-instance.js +2 -2
- package/{dist/react → react}/hooks/use-life-cycle.js +1 -1
- package/{dist/react → react}/hooks/use-resize-observer.js +1 -1
- package/react/index.d.ts +2 -0
- package/react/index.d.ts.map +1 -0
- package/react/index.js +1 -0
- package/{dist/type-guard → type-guard}/_exports.d.ts +1 -1
- package/type-guard/_exports.d.ts.map +1 -0
- package/type-guard/index.d.ts +3 -0
- package/{dist/type-guard → type-guard}/index.d.ts.map +1 -1
- package/{dist/type-guard → type-guard}/index.js +1 -1
- package/dist/async.cjs +0 -70
- package/dist/async.d.cts +0 -28
- package/dist/async.d.cts.map +0 -1
- 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.map +0 -1
- 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/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.map +0 -1
- 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.map +0 -1
- 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/css.cjs +0 -28
- package/dist/css.d.cts +0 -36
- package/dist/css.d.cts.map +0 -1
- package/dist/data.cjs +0 -58
- package/dist/data.d.cts +0 -4
- package/dist/data.d.cts.map +0 -1
- 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.map +0 -1
- package/dist/device.cjs +0 -28
- package/dist/device.d.cts +0 -8
- package/dist/device.d.cts.map +0 -1
- package/dist/encodings.cjs +0 -270
- package/dist/encodings.d.cts +0 -2
- package/dist/encodings.d.cts.map +0 -1
- 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.map +0 -1
- package/dist/file.cjs +0 -29
- package/dist/file.d.cts +0 -3
- package/dist/file.d.cts.map +0 -1
- 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/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/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.map +0 -1
- 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.map +0 -1
- 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/html.cjs +0 -202
- package/dist/html.d.cts +0 -44
- package/dist/html.d.cts.map +0 -1
- package/dist/html.d.ts.map +0 -1
- package/dist/id.cjs +0 -76
- package/dist/id.d.cts +0 -63
- package/dist/id.d.cts.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/math.cjs +0 -23
- package/dist/math.d.cts +0 -13
- package/dist/math.d.cts.map +0 -1
- package/dist/math.d.ts.map +0 -1
- package/dist/media.cjs +0 -115
- package/dist/media.d.cts +0 -20
- package/dist/media.d.cts.map +0 -1
- 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.map +0 -1
- 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.map +0 -1
- 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.map +0 -1
- 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.map +0 -1
- 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/ms.cjs +0 -22
- package/dist/ms.d.cts +0 -19
- package/dist/ms.d.cts.map +0 -1
- package/dist/number.cjs +0 -16
- package/dist/number.d.cts +0 -8
- package/dist/number.d.cts.map +0 -1
- 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/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.map +0 -1
- 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.map +0 -1
- 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.map +0 -1
- package/dist/price.cjs +0 -21
- package/dist/price.d.cts +0 -6
- package/dist/price.d.cts.map +0 -1
- package/dist/random.cjs +0 -25
- package/dist/random.d.cts +0 -9
- package/dist/random.d.cts.map +0 -1
- 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-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-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-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-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-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-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.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-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-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-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-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-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-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-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-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-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-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-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-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-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/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/storage.cjs +0 -48
- package/dist/storage.d.cts +0 -39
- package/dist/storage.d.cts.map +0 -1
- package/dist/text.cjs +0 -53
- package/dist/text.d.cts +0 -15
- package/dist/text.d.cts.map +0 -1
- 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.map +0 -1
- 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/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/utils/types.cjs +0 -2
- package/utils/types.d.cts +0 -395
- package/utils/types.d.cts.map +0 -1
- /package/{dist/async.d.ts → async.d.ts} +0 -0
- /package/{dist/async.d.ts.map → async.d.ts.map} +0 -0
- /package/{dist/async.js → async.js} +0 -0
- /package/{dist/common.js → common.js} +0 -0
- /package/{dist/complex → complex}/counter.d.ts +0 -0
- /package/{dist/complex → complex}/counter.d.ts.map +0 -0
- /package/{dist/complex → complex}/counter.js +0 -0
- /package/{dist/complex → complex}/global-config.js +0 -0
- /package/{dist/complex → complex}/modules-factory.js +0 -0
- /package/{dist/cookie.js → cookie.js} +0 -0
- /package/{dist/css.d.ts → css.d.ts} +0 -0
- /package/{dist/css.d.ts.map → css.d.ts.map} +0 -0
- /package/{dist/css.js → css.js} +0 -0
- /package/{dist/data.d.ts → data.d.ts} +0 -0
- /package/{dist/data.d.ts.map → data.d.ts.map} +0 -0
- /package/{dist/data.js → data.js} +0 -0
- /package/{dist/device.d.ts → device.d.ts} +0 -0
- /package/{dist/device.d.ts.map → device.d.ts.map} +0 -0
- /package/{dist/device.js → device.js} +0 -0
- /package/{dist/encodings.d.ts → encodings.d.ts} +0 -0
- /package/{dist/encodings.d.ts.map → encodings.d.ts.map} +0 -0
- /package/{dist/encodings.js → encodings.js} +0 -0
- /package/{dist/file.d.ts → file.d.ts} +0 -0
- /package/{dist/file.d.ts.map → file.d.ts.map} +0 -0
- /package/{dist/file.js → file.js} +0 -0
- /package/{dist/format → format}/constants.d.ts +0 -0
- /package/{dist/format → format}/constants.d.ts.map +0 -0
- /package/{dist/format → format}/constants.js +0 -0
- /package/{dist/format → format}/skip-spaces.d.ts +0 -0
- /package/{dist/format → format}/skip-spaces.d.ts.map +0 -0
- /package/{dist/format → format}/skip-spaces.js +0 -0
- /package/{dist/id.d.ts → id.d.ts} +0 -0
- /package/{dist/id.d.ts.map → id.d.ts.map} +0 -0
- /package/{dist/id.js → id.js} +0 -0
- /package/{dist/imports.d.ts → imports.d.ts} +0 -0
- /package/{dist/imports.d.ts.map → imports.d.ts.map} +0 -0
- /package/{dist/math.js → math.js} +0 -0
- /package/{dist/media.d.ts → media.d.ts} +0 -0
- /package/{dist/media.d.ts.map → media.d.ts.map} +0 -0
- /package/{dist/mobx → mobx}/apply-observable.js +0 -0
- /package/{dist/mobx → mobx}/create-enhanced-atom.js +0 -0
- /package/{dist/mobx → mobx}/get-mobx-administration.js +0 -0
- /package/{dist/mobx → mobx}/lazy-observe.d.ts +0 -0
- /package/{dist/mobx → mobx}/lazy-observe.d.ts.map +0 -0
- /package/{dist/mobx → mobx}/lazy-observe.js +0 -0
- /package/{dist/ms.d.ts → ms.d.ts} +0 -0
- /package/{dist/ms.d.ts.map → ms.d.ts.map} +0 -0
- /package/{dist/ms.js → ms.js} +0 -0
- /package/{dist/number.d.ts → number.d.ts} +0 -0
- /package/{dist/number.d.ts.map → number.d.ts.map} +0 -0
- /package/{dist/number.js → number.js} +0 -0
- /package/{dist/price.d.ts → price.d.ts} +0 -0
- /package/{dist/price.d.ts.map → price.d.ts.map} +0 -0
- /package/{dist/price.js → price.js} +0 -0
- /package/{dist/random.d.ts → random.d.ts} +0 -0
- /package/{dist/random.d.ts.map → random.d.ts.map} +0 -0
- /package/{dist/random.js → random.js} +0 -0
- /package/{dist/react → react}/hooks/use-abort-controller.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-abort-controller.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-abort-signal.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-abort-signal.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-click-outside.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-click-outside.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-constant.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-constant.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-constant.js +0 -0
- /package/{dist/react → react}/hooks/use-define-ref.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-define-ref.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-define-ref.js +0 -0
- /package/{dist/react → react}/hooks/use-element-ref.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-element-ref.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-element-ref.js +0 -0
- /package/{dist/react → react}/hooks/use-event-listener.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-event-listener.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-event.js +0 -0
- /package/{dist/react → react}/hooks/use-flag.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-flag.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-flag.js +0 -0
- /package/{dist/react → react}/hooks/use-force-update.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-force-update.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-force-update.js +0 -0
- /package/{dist/react → react}/hooks/use-initial-height.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-initial-height.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-initial-height.js +0 -0
- /package/{dist/react → react}/hooks/use-instance.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-instance.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-intersection-observer.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-intersection-observer.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-intersection-observer.js +0 -0
- /package/{dist/react → react}/hooks/use-last-defined-value.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-last-defined-value.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-last-defined-value.js +0 -0
- /package/{dist/react → react}/hooks/use-last-value-ref.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-last-value-ref.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-last-value-ref.js +0 -0
- /package/{dist/react → react}/hooks/use-life-cycle.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-life-cycle.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-resize-observer.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-resize-observer.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-sync-ref.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-sync-ref.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-sync-ref.js +0 -0
- /package/{dist/react → react}/hooks/use-toggle.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-toggle.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-toggle.js +0 -0
- /package/{dist/react → react}/hooks/use-value.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-value.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-value.js +0 -0
- /package/{dist/react → react}/hooks/use-visibility-state.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-visibility-state.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-visibility-state.js +0 -0
- /package/{dist/sound.d.ts → sound.d.ts} +0 -0
- /package/{dist/sound.d.ts.map → sound.d.ts.map} +0 -0
- /package/{dist/sound.js → sound.js} +0 -0
- /package/{dist/storage.d.ts → storage.d.ts} +0 -0
- /package/{dist/storage.d.ts.map → storage.d.ts.map} +0 -0
- /package/{dist/storage.js → storage.js} +0 -0
- /package/{dist/text.d.ts → text.d.ts} +0 -0
- /package/{dist/text.d.ts.map → text.d.ts.map} +0 -0
- /package/{dist/text.js → text.js} +0 -0
- /package/{dist/type-guard → type-guard}/_exports.js +0 -0
- /package/{dist/vibrate.d.ts → vibrate.d.ts} +0 -0
- /package/{dist/vibrate.d.ts.map → vibrate.d.ts.map} +0 -0
- /package/{dist/vibrate.js → vibrate.js} +0 -0
package/dist/utils/types.cjs
DELETED
package/dist/utils/types.d.cts
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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export type EmptyObject = Record<keyof any, never>;
|
|
50
|
-
/**
|
|
51
|
-
* Represents all primitive types in TypeScript.
|
|
52
|
-
*
|
|
53
|
-
* @returns Union of all primitive types
|
|
54
|
-
*/
|
|
55
|
-
export 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
|
-
export type AnyPrimitive = Primitive;
|
|
64
|
-
/**
|
|
65
|
-
* Represents any function type.
|
|
66
|
-
*
|
|
67
|
-
* @returns Function with any parameters and return type
|
|
68
|
-
*/
|
|
69
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export type Defined<T> = Exclude<T, undefined>;
|
|
395
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAEpC;;;;;GAKG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,OAAO,CAAC;KACtC,GAAG,IAAI,MAAM,CAAC,GAAG,GAAG,SAAS,MAAM,GAAG,GAAG,GAAG,KAAK;CACnD,CAAC,CAAC;AAEH;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,CAAC,CAAC,IAAI,GAAG,CAAC,GAAG,MAAM,EAAE,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC;AAElE;;;;;GAKG;AACH,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;AAE/C;;;;;GAKG;AACH,MAAM,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