@davidsouther/jiffies 2.2.4 → 2.3.0
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/LICENSE +1 -1
- package/lib/cjs/assert.d.ts +2 -2
- package/lib/cjs/awaitable.d.ts +1 -1
- package/lib/cjs/components/button_bar.d.ts +2 -2
- package/lib/cjs/components/inline_edit.d.ts +2 -2
- package/lib/cjs/components/logger.d.ts +1 -1
- package/lib/cjs/components/select.d.ts +4 -7
- package/lib/cjs/components/test.d.ts +1 -1
- package/lib/cjs/components/virtual_scroll.d.ts +6 -4
- package/lib/cjs/context.d.ts +5 -9
- package/lib/cjs/debounce.d.ts +1 -1
- package/lib/cjs/diff.d.ts +2 -2
- package/lib/cjs/display.d.ts +1 -1
- package/lib/cjs/dom/css/border.d.ts +2 -2
- package/lib/cjs/dom/css/constants.d.ts +3 -3
- package/lib/cjs/dom/css/core.d.ts +1 -1
- package/lib/cjs/dom/css/fstyle.d.ts +2 -2
- package/lib/cjs/dom/css/sizing.d.ts +2 -2
- package/lib/cjs/dom/dom.d.ts +8 -8
- package/lib/cjs/dom/fc.d.ts +8 -12
- package/lib/cjs/dom/form/form.d.ts +5 -6
- package/lib/cjs/dom/html.d.ts +112 -113
- package/lib/cjs/dom/observable.d.ts +1 -1
- package/lib/cjs/dom/provide.d.ts +1 -1
- package/lib/cjs/dom/router/router.d.ts +2 -2
- package/lib/cjs/dom/svg.d.ts +64 -64
- package/lib/cjs/dom/types/css.d.ts +10 -32
- package/lib/cjs/dom/types/html.d.ts +4 -6
- package/lib/cjs/equal.d.ts +8 -5
- package/lib/cjs/flags.d.ts +1 -1
- package/lib/cjs/fs.d.ts +3 -3
- package/lib/cjs/fs_node.d.ts +1 -1
- package/lib/cjs/lock.d.ts +1 -1
- package/lib/cjs/log.d.ts +9 -9
- package/lib/cjs/observable/event.d.ts +2 -2
- package/lib/cjs/observable/observable.d.ts +37 -35
- package/lib/cjs/result.d.ts +21 -21
- package/lib/cjs/safe.d.ts +1 -1
- package/lib/cjs/scope/describe.d.ts +4 -4
- package/lib/cjs/scope/display/console.d.ts +1 -1
- package/lib/cjs/scope/display/dom.d.ts +2 -2
- package/lib/cjs/scope/display/junit.d.ts +1 -1
- package/lib/cjs/scope/execute.d.ts +2 -2
- package/lib/cjs/scope/index.d.ts +3 -3
- package/lib/cjs/scope/scope.d.ts +3 -3
- package/lib/cjs/scope/state.d.ts +1 -1
- package/lib/cjs/server/http/apps.d.ts +1 -1
- package/lib/cjs/server/http/css.d.ts +1 -1
- package/lib/cjs/server/http/index.d.ts +4 -9
- package/lib/cjs/server/http/response.d.ts +3 -3
- package/lib/cjs/server/http/sitemap.d.ts +1 -1
- package/lib/cjs/server/http/static.d.ts +1 -1
- package/lib/cjs/server/http/typescript.d.ts +1 -1
- package/lib/cjs/test_all.d.ts +9 -9
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/assert.d.ts +2 -2
- package/lib/esm/awaitable.d.ts +1 -1
- package/lib/esm/components/button_bar.d.ts +2 -2
- package/lib/esm/components/inline_edit.d.ts +2 -2
- package/lib/esm/components/logger.d.ts +1 -1
- package/lib/esm/components/select.d.ts +3 -3
- package/lib/esm/components/test.d.ts +1 -1
- package/lib/esm/components/virtual_scroll.d.ts +6 -4
- package/lib/esm/context.d.ts +5 -9
- package/lib/esm/debounce.d.ts +1 -2
- package/lib/esm/diff.d.ts +2 -2
- package/lib/esm/display.d.ts +1 -1
- package/lib/esm/dom/css/border.d.ts +2 -2
- package/lib/esm/dom/css/constants.d.ts +3 -3
- package/lib/esm/dom/css/core.d.ts +1 -1
- package/lib/esm/dom/css/fstyle.d.ts +2 -2
- package/lib/esm/dom/css/sizing.d.ts +2 -2
- package/lib/esm/dom/dom.d.ts +8 -8
- package/lib/esm/dom/fc.d.ts +8 -12
- package/lib/esm/dom/form/form.d.ts +5 -6
- package/lib/esm/dom/html.d.ts +112 -113
- package/lib/esm/dom/observable.d.ts +1 -1
- package/lib/esm/dom/provide.d.ts +1 -1
- package/lib/esm/dom/router/router.d.ts +2 -2
- package/lib/esm/dom/svg.d.ts +64 -64
- package/lib/esm/dom/types/css.d.ts +10 -32
- package/lib/esm/dom/types/html.d.ts +4 -6
- package/lib/esm/equal.d.ts +8 -5
- package/lib/esm/flags.d.ts +1 -1
- package/lib/esm/fs.d.ts +3 -3
- package/lib/esm/fs_node.d.ts +1 -1
- package/lib/esm/lock.d.ts +1 -1
- package/lib/esm/log.d.ts +9 -9
- package/lib/esm/observable/event.d.ts +2 -2
- package/lib/esm/observable/observable.d.ts +37 -35
- package/lib/esm/result.d.ts +21 -21
- package/lib/esm/safe.d.ts +1 -1
- package/lib/esm/scope/describe.d.ts +4 -4
- package/lib/esm/scope/display/console.d.ts +1 -1
- package/lib/esm/scope/display/dom.d.ts +2 -2
- package/lib/esm/scope/display/junit.d.ts +1 -1
- package/lib/esm/scope/execute.d.ts +2 -2
- package/lib/esm/scope/index.d.ts +3 -3
- package/lib/esm/scope/scope.d.ts +3 -3
- package/lib/esm/scope/state.d.ts +1 -1
- package/lib/esm/server/http/apps.d.ts +1 -1
- package/lib/esm/server/http/css.d.ts +1 -1
- package/lib/esm/server/http/index.d.ts +4 -9
- package/lib/esm/server/http/response.d.ts +3 -3
- package/lib/esm/server/http/sitemap.d.ts +1 -1
- package/lib/esm/server/http/static.d.ts +1 -1
- package/lib/esm/server/http/typescript.d.ts +1 -1
- package/lib/esm/test_all.d.ts +9 -9
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -9
- package/src/assert.ts +5 -5
- package/src/components/button_bar.ts +28 -30
- package/src/components/inline_edit.ts +8 -7
- package/src/components/logger.ts +6 -6
- package/src/components/select.ts +7 -7
- package/src/components/test.ts +5 -0
- package/src/components/virtual_scroll.test.ts +9 -6
- package/src/components/virtual_scroll.ts +29 -24
- package/src/context.test.ts +4 -4
- package/src/context.ts +16 -11
- package/src/debounce.ts +9 -3
- package/src/diff.test.ts +4 -4
- package/src/diff.ts +14 -16
- package/src/dom/css/border.ts +11 -11
- package/src/dom/css/core.ts +1 -1
- package/src/dom/css/fstyle.ts +4 -4
- package/src/dom/css/sizing.ts +1 -1
- package/src/dom/dom.ts +57 -47
- package/src/dom/fc.test.ts +8 -8
- package/src/dom/fc.ts +32 -35
- package/src/dom/form/form.app.ts +9 -9
- package/src/dom/form/form.ts +25 -16
- package/src/dom/form/index.html +3 -2
- package/src/dom/html.test.ts +12 -10
- package/src/dom/html.ts +2 -3
- package/src/dom/observable.test.ts +6 -6
- package/src/dom/observable.ts +2 -2
- package/src/dom/provide.ts +1 -1
- package/src/dom/router/link.ts +3 -3
- package/src/dom/router/router.ts +5 -5
- package/src/dom/svg.ts +7 -6
- package/src/dom/test.ts +3 -0
- package/src/dom/types/css.ts +43 -61
- package/src/dom/types/html.ts +2 -4
- package/src/dom/xml.ts +2 -2
- package/src/equal.test.ts +3 -3
- package/src/equal.ts +27 -14
- package/src/flags.test.ts +2 -2
- package/src/flags.ts +2 -2
- package/src/fs.test.ts +5 -5
- package/src/fs.ts +26 -20
- package/src/fs_node.ts +4 -4
- package/src/fs_win.test.ts +1 -1
- package/src/generator.test.ts +4 -3
- package/src/generator.ts +1 -1
- package/src/hooks/_notes +4 -1
- package/src/index.html +7 -7
- package/src/lock.test.ts +4 -4
- package/src/lock.ts +8 -7
- package/src/log.ts +28 -18
- package/src/observable/event.ts +7 -7
- package/src/observable/observable.test.ts +3 -3
- package/src/observable/observable.ts +71 -52
- package/src/result.test.ts +7 -10
- package/src/result.ts +51 -47
- package/src/safe.ts +1 -1
- package/src/scope/describe.ts +12 -11
- package/src/scope/display/console.ts +4 -4
- package/src/scope/display/dom.ts +9 -9
- package/src/scope/display/junit.ts +21 -24
- package/src/scope/execute.ts +17 -12
- package/src/scope/expect.ts +22 -22
- package/src/scope/fix.ts +10 -7
- package/src/scope/index.ts +3 -3
- package/src/scope/scope.ts +2 -2
- package/src/scope/state.ts +2 -2
- package/src/server/http/apps.ts +5 -5
- package/src/server/http/css.ts +10 -26
- package/src/server/http/index.ts +30 -24
- package/src/server/http/response.ts +12 -5
- package/src/server/http/sitemap.ts +8 -8
- package/src/server/http/static.ts +9 -6
- package/src/server/http/typescript.ts +25 -25
- package/src/server/main.ts +7 -4
- package/src/test.mjs +8 -8
- package/src/test_all.ts +16 -13
- package/src/transpile.mjs +6 -18
- package/build/pico.css +0 -2466
- package/build/pico.css.map +0 -1
- package/lib/cjs/assert.js +0 -46
- package/lib/cjs/awaitable.js +0 -2
- package/lib/cjs/case.js +0 -9
- package/lib/cjs/components/button_bar.js +0 -29
- package/lib/cjs/components/inline_edit.js +0 -51
- package/lib/cjs/components/logger.js +0 -27
- package/lib/cjs/components/select.js +0 -6
- package/lib/cjs/components/test.js +0 -7
- package/lib/cjs/components/virtual_scroll.js +0 -102
- package/lib/cjs/components/virtual_scroll.test.js +0 -22
- package/lib/cjs/context.js +0 -48
- package/lib/cjs/context.test.js +0 -48
- package/lib/cjs/debounce.js +0 -12
- package/lib/cjs/diff.js +0 -58
- package/lib/cjs/diff.test.js +0 -41
- package/lib/cjs/display.js +0 -16
- package/lib/cjs/dom/css/border.js +0 -33
- package/lib/cjs/dom/css/constants.js +0 -31
- package/lib/cjs/dom/css/core.js +0 -31
- package/lib/cjs/dom/css/fstyle.js +0 -36
- package/lib/cjs/dom/css/sizing.js +0 -14
- package/lib/cjs/dom/dom.js +0 -110
- package/lib/cjs/dom/fc.js +0 -39
- package/lib/cjs/dom/fc.test.js +0 -23
- package/lib/cjs/dom/form/form.app.js +0 -27
- package/lib/cjs/dom/form/form.js +0 -49
- package/lib/cjs/dom/form/form.test.js +0 -1
- package/lib/cjs/dom/html.js +0 -119
- package/lib/cjs/dom/html.test.js +0 -60
- package/lib/cjs/dom/observable.js +0 -10
- package/lib/cjs/dom/observable.test.js +0 -35
- package/lib/cjs/dom/provide.js +0 -12
- package/lib/cjs/dom/router/link.js +0 -7
- package/lib/cjs/dom/router/router.js +0 -55
- package/lib/cjs/dom/svg.js +0 -69
- package/lib/cjs/dom/test.js +0 -13
- package/lib/cjs/dom/types/css.js +0 -24
- package/lib/cjs/dom/types/dom.js +0 -1
- package/lib/cjs/dom/types/html.js +0 -2
- package/lib/cjs/dom/xml.js +0 -8
- package/lib/cjs/equal.js +0 -48
- package/lib/cjs/equal.test.js +0 -22
- package/lib/cjs/flags.js +0 -52
- package/lib/cjs/flags.test.js +0 -37
- package/lib/cjs/fs.js +0 -235
- package/lib/cjs/fs.test.js +0 -86
- package/lib/cjs/fs_node.js +0 -50
- package/lib/cjs/fs_win.test.js +0 -10
- package/lib/cjs/generator.js +0 -14
- package/lib/cjs/generator.test.js +0 -26
- package/lib/cjs/is_browser.js +0 -4
- package/lib/cjs/loader-register.d.mts +0 -1
- package/lib/cjs/loader-register.d.ts +0 -1
- package/lib/cjs/loader-register.js +0 -4
- package/lib/cjs/loader-register.mjs +0 -4
- package/lib/cjs/loader.d.mts +0 -23
- package/lib/cjs/loader.mjs +0 -41
- package/lib/cjs/lock.js +0 -27
- package/lib/cjs/lock.test.js +0 -18
- package/lib/cjs/log.js +0 -98
- package/lib/cjs/observable/event.js +0 -61
- package/lib/cjs/observable/observable.js +0 -363
- package/lib/cjs/observable/observable.test.js +0 -65
- package/lib/cjs/package.json +0 -1
- package/lib/cjs/range.js +0 -11
- package/lib/cjs/result.js +0 -80
- package/lib/cjs/result.test.js +0 -78
- package/lib/cjs/safe.js +0 -14
- package/lib/cjs/scope/describe.js +0 -73
- package/lib/cjs/scope/display/console.js +0 -25
- package/lib/cjs/scope/display/dom.js +0 -30
- package/lib/cjs/scope/display/junit.js +0 -21
- package/lib/cjs/scope/execute.js +0 -91
- package/lib/cjs/scope/expect.js +0 -110
- package/lib/cjs/scope/fix.js +0 -26
- package/lib/cjs/scope/index.js +0 -15
- package/lib/cjs/scope/scope.js +0 -2
- package/lib/cjs/scope/state.js +0 -12
- package/lib/cjs/server/http/apps.js +0 -27
- package/lib/cjs/server/http/css.js +0 -54
- package/lib/cjs/server/http/index.js +0 -77
- package/lib/cjs/server/http/response.js +0 -45
- package/lib/cjs/server/http/sitemap.js +0 -46
- package/lib/cjs/server/http/static.js +0 -25
- package/lib/cjs/server/http/typescript.js +0 -44
- package/lib/cjs/server/main.js +0 -14
- package/lib/cjs/test.mjs +0 -28
- package/lib/cjs/test_all.js +0 -30
- package/lib/cjs/transpile.mjs +0 -22
- package/lib/esm/assert.js +0 -38
- package/lib/esm/awaitable.js +0 -1
- package/lib/esm/case.js +0 -5
- package/lib/esm/components/button_bar.js +0 -27
- package/lib/esm/components/inline_edit.js +0 -48
- package/lib/esm/components/logger.js +0 -22
- package/lib/esm/components/select.js +0 -3
- package/lib/esm/components/test.js +0 -3
- package/lib/esm/components/virtual_scroll.js +0 -94
- package/lib/esm/components/virtual_scroll.test.js +0 -20
- package/lib/esm/context.js +0 -43
- package/lib/esm/context.test.js +0 -46
- package/lib/esm/debounce.js +0 -8
- package/lib/esm/diff.js +0 -54
- package/lib/esm/diff.test.js +0 -39
- package/lib/esm/display.js +0 -11
- package/lib/esm/dom/css/border.js +0 -27
- package/lib/esm/dom/css/constants.js +0 -28
- package/lib/esm/dom/css/core.js +0 -24
- package/lib/esm/dom/css/fstyle.js +0 -32
- package/lib/esm/dom/css/sizing.js +0 -10
- package/lib/esm/dom/dom.js +0 -104
- package/lib/esm/dom/fc.js +0 -35
- package/lib/esm/dom/fc.test.js +0 -21
- package/lib/esm/dom/form/form.app.js +0 -23
- package/lib/esm/dom/form/form.js +0 -34
- package/lib/esm/dom/form/form.test.js +0 -1
- package/lib/esm/dom/html.js +0 -114
- package/lib/esm/dom/html.test.js +0 -58
- package/lib/esm/dom/observable.js +0 -6
- package/lib/esm/dom/observable.test.js +0 -33
- package/lib/esm/dom/provide.js +0 -7
- package/lib/esm/dom/router/link.js +0 -3
- package/lib/esm/dom/router/router.js +0 -52
- package/lib/esm/dom/svg.js +0 -65
- package/lib/esm/dom/test.js +0 -9
- package/lib/esm/dom/types/css.js +0 -23
- package/lib/esm/dom/types/dom.js +0 -1
- package/lib/esm/dom/types/html.js +0 -1
- package/lib/esm/dom/xml.js +0 -4
- package/lib/esm/equal.js +0 -41
- package/lib/esm/equal.test.js +0 -20
- package/lib/esm/flags.js +0 -48
- package/lib/esm/flags.test.js +0 -35
- package/lib/esm/fs.js +0 -226
- package/lib/esm/fs.test.js +0 -84
- package/lib/esm/fs_node.js +0 -45
- package/lib/esm/fs_win.test.js +0 -8
- package/lib/esm/generator.js +0 -10
- package/lib/esm/generator.test.js +0 -24
- package/lib/esm/is_browser.js +0 -1
- package/lib/esm/loader-register.d.mts +0 -1
- package/lib/esm/loader-register.mjs +0 -2
- package/lib/esm/loader.d.mts +0 -23
- package/lib/esm/loader.mjs +0 -36
- package/lib/esm/lock.js +0 -23
- package/lib/esm/lock.test.js +0 -16
- package/lib/esm/log.js +0 -88
- package/lib/esm/observable/event.js +0 -46
- package/lib/esm/observable/observable.js +0 -343
- package/lib/esm/observable/observable.test.js +0 -63
- package/lib/esm/range.js +0 -7
- package/lib/esm/result.js +0 -65
- package/lib/esm/result.test.js +0 -76
- package/lib/esm/safe.js +0 -10
- package/lib/esm/scope/describe.js +0 -60
- package/lib/esm/scope/display/console.js +0 -21
- package/lib/esm/scope/display/dom.js +0 -26
- package/lib/esm/scope/display/junit.js +0 -17
- package/lib/esm/scope/execute.js +0 -85
- package/lib/esm/scope/expect.js +0 -104
- package/lib/esm/scope/fix.js +0 -22
- package/lib/esm/scope/index.js +0 -3
- package/lib/esm/scope/scope.js +0 -1
- package/lib/esm/scope/state.js +0 -8
- package/lib/esm/server/http/apps.js +0 -23
- package/lib/esm/server/http/css.js +0 -50
- package/lib/esm/server/http/index.js +0 -73
- package/lib/esm/server/http/response.js +0 -40
- package/lib/esm/server/http/sitemap.js +0 -42
- package/lib/esm/server/http/static.js +0 -21
- package/lib/esm/server/http/typescript.js +0 -40
- package/lib/esm/server/main.js +0 -12
- package/lib/esm/test.mjs +0 -26
- package/lib/esm/test_all.js +0 -28
- package/lib/esm/transpile.mjs +0 -18
- package/src/components/test.js +0 -3
- package/src/loader-register.mjs +0 -3
- package/src/loader.mjs +0 -46
package/lib/cjs/dom/svg.d.ts
CHANGED
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
import { DenormAttrs, DenormChildren } from "./dom.
|
|
2
|
-
export declare const a: (attrs?: DenormAttrs<SVGAElement
|
|
3
|
-
export declare const animate: (attrs?: DenormAttrs<SVGAnimateElement
|
|
4
|
-
export declare const animateMotion: (attrs?: DenormAttrs<SVGAnimateMotionElement
|
|
5
|
-
export declare const animateTransform: (attrs?: DenormAttrs<SVGAnimateTransformElement
|
|
6
|
-
export declare const circle: (attrs?: DenormAttrs<SVGCircleElement
|
|
7
|
-
export declare const clipPath: (attrs?: DenormAttrs<SVGClipPathElement
|
|
8
|
-
export declare const defs: (attrs?: DenormAttrs<SVGDefsElement
|
|
9
|
-
export declare const desc: (attrs?: DenormAttrs<SVGDescElement
|
|
10
|
-
export declare const ellipse: (attrs?: DenormAttrs<SVGEllipseElement
|
|
11
|
-
export declare const feBlend: (attrs?: DenormAttrs<SVGFEBlendElement
|
|
12
|
-
export declare const feColorMatrix: (attrs?: DenormAttrs<SVGFEColorMatrixElement
|
|
13
|
-
export declare const feComponentTransfer: (attrs?: DenormAttrs<SVGFEComponentTransferElement
|
|
14
|
-
export declare const feComposite: (attrs?: DenormAttrs<SVGFECompositeElement
|
|
15
|
-
export declare const feConvolveMatrix: (attrs?: DenormAttrs<SVGFEConvolveMatrixElement
|
|
16
|
-
export declare const feDiffuseLighting: (attrs?: DenormAttrs<SVGFEDiffuseLightingElement
|
|
17
|
-
export declare const feDisplacementMap: (attrs?: DenormAttrs<SVGFEDisplacementMapElement
|
|
18
|
-
export declare const feDistantLight: (attrs?: DenormAttrs<SVGFEDistantLightElement
|
|
19
|
-
export declare const feDropShadow: (attrs?: DenormAttrs<SVGFEDropShadowElement
|
|
20
|
-
export declare const feFlood: (attrs?: DenormAttrs<SVGFEFloodElement
|
|
21
|
-
export declare const feFuncA: (attrs?: DenormAttrs<SVGFEFuncAElement
|
|
22
|
-
export declare const feFuncB: (attrs?: DenormAttrs<SVGFEFuncBElement
|
|
23
|
-
export declare const feFuncG: (attrs?: DenormAttrs<SVGFEFuncGElement
|
|
24
|
-
export declare const feFuncR: (attrs?: DenormAttrs<SVGFEFuncRElement
|
|
25
|
-
export declare const feGaussianBlur: (attrs?: DenormAttrs<SVGFEGaussianBlurElement
|
|
26
|
-
export declare const feImage: (attrs?: DenormAttrs<SVGFEImageElement
|
|
27
|
-
export declare const feMerge: (attrs?: DenormAttrs<SVGFEMergeElement
|
|
28
|
-
export declare const feMergeNode: (attrs?: DenormAttrs<SVGFEMergeNodeElement
|
|
29
|
-
export declare const feMorphology: (attrs?: DenormAttrs<SVGFEMorphologyElement
|
|
30
|
-
export declare const feOffset: (attrs?: DenormAttrs<SVGFEOffsetElement
|
|
31
|
-
export declare const fePointLight: (attrs?: DenormAttrs<SVGFEPointLightElement
|
|
32
|
-
export declare const feSpecularLighting: (attrs?: DenormAttrs<SVGFESpecularLightingElement
|
|
33
|
-
export declare const feSpotLight: (attrs?: DenormAttrs<SVGFESpotLightElement
|
|
34
|
-
export declare const feTile: (attrs?: DenormAttrs<SVGFETileElement
|
|
35
|
-
export declare const feTurbulence: (attrs?: DenormAttrs<SVGFETurbulenceElement
|
|
36
|
-
export declare const filter: (attrs?: DenormAttrs<SVGFilterElement
|
|
37
|
-
export declare const foreignObject: (attrs?: DenormAttrs<SVGForeignObjectElement
|
|
38
|
-
export declare const g: (attrs?: DenormAttrs<SVGGElement
|
|
39
|
-
export declare const image: (attrs?: DenormAttrs<SVGImageElement
|
|
40
|
-
export declare const line: (attrs?: DenormAttrs<SVGLineElement
|
|
41
|
-
export declare const linearGradient: (attrs?: DenormAttrs<SVGLinearGradientElement
|
|
42
|
-
export declare const marker: (attrs?: DenormAttrs<SVGMarkerElement
|
|
43
|
-
export declare const mask: (attrs?: DenormAttrs<SVGMaskElement
|
|
44
|
-
export declare const metadata: (attrs?: DenormAttrs<SVGMetadataElement
|
|
45
|
-
export declare const mpath: (attrs?: DenormAttrs<SVGMPathElement
|
|
46
|
-
export declare const path: (attrs?: DenormAttrs<SVGPathElement
|
|
47
|
-
export declare const pattern: (attrs?: DenormAttrs<SVGPatternElement
|
|
48
|
-
export declare const polygon: (attrs?: DenormAttrs<SVGPolygonElement
|
|
49
|
-
export declare const polyline: (attrs?: DenormAttrs<SVGPolylineElement
|
|
50
|
-
export declare const radialGradient: (attrs?: DenormAttrs<SVGRadialGradientElement
|
|
51
|
-
export declare const rect: (attrs?: DenormAttrs<SVGRectElement
|
|
52
|
-
export declare const script: (attrs?: DenormAttrs<SVGScriptElement
|
|
53
|
-
export declare const set: (attrs?: DenormAttrs<SVGSetElement
|
|
54
|
-
export declare const stop: (attrs?: DenormAttrs<SVGStopElement
|
|
55
|
-
export declare const style: (attrs?: DenormAttrs<SVGStyleElement
|
|
56
|
-
export declare const svg: (attrs?: DenormAttrs<SVGSVGElement
|
|
57
|
-
export declare const svgswitch: (attrs?: DenormAttrs<SVGSwitchElement
|
|
58
|
-
export declare const symbol: (attrs?: DenormAttrs<SVGSymbolElement
|
|
59
|
-
export declare const text: (attrs?: DenormAttrs<SVGTextElement
|
|
60
|
-
export declare const textPath: (attrs?: DenormAttrs<SVGTextPathElement
|
|
61
|
-
export declare const title: (attrs?: DenormAttrs<SVGTitleElement
|
|
62
|
-
export declare const tspan: (attrs?: DenormAttrs<SVGTSpanElement
|
|
63
|
-
export declare const use: (attrs?: DenormAttrs<SVGUseElement
|
|
64
|
-
export declare const view: (attrs?: DenormAttrs<SVGViewElement
|
|
1
|
+
import { type DenormAttrs, type DenormChildren } from "./dom.ts";
|
|
2
|
+
export declare const a: (attrs?: DenormAttrs<SVGAElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
3
|
+
export declare const animate: (attrs?: DenormAttrs<SVGAnimateElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
4
|
+
export declare const animateMotion: (attrs?: DenormAttrs<SVGAnimateMotionElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
5
|
+
export declare const animateTransform: (attrs?: DenormAttrs<SVGAnimateTransformElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
6
|
+
export declare const circle: (attrs?: DenormAttrs<SVGCircleElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
7
|
+
export declare const clipPath: (attrs?: DenormAttrs<SVGClipPathElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
8
|
+
export declare const defs: (attrs?: DenormAttrs<SVGDefsElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
9
|
+
export declare const desc: (attrs?: DenormAttrs<SVGDescElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
10
|
+
export declare const ellipse: (attrs?: DenormAttrs<SVGEllipseElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
11
|
+
export declare const feBlend: (attrs?: DenormAttrs<SVGFEBlendElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
12
|
+
export declare const feColorMatrix: (attrs?: DenormAttrs<SVGFEColorMatrixElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
13
|
+
export declare const feComponentTransfer: (attrs?: DenormAttrs<SVGFEComponentTransferElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
14
|
+
export declare const feComposite: (attrs?: DenormAttrs<SVGFECompositeElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
15
|
+
export declare const feConvolveMatrix: (attrs?: DenormAttrs<SVGFEConvolveMatrixElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
16
|
+
export declare const feDiffuseLighting: (attrs?: DenormAttrs<SVGFEDiffuseLightingElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
17
|
+
export declare const feDisplacementMap: (attrs?: DenormAttrs<SVGFEDisplacementMapElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
18
|
+
export declare const feDistantLight: (attrs?: DenormAttrs<SVGFEDistantLightElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
19
|
+
export declare const feDropShadow: (attrs?: DenormAttrs<SVGFEDropShadowElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
20
|
+
export declare const feFlood: (attrs?: DenormAttrs<SVGFEFloodElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
21
|
+
export declare const feFuncA: (attrs?: DenormAttrs<SVGFEFuncAElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
22
|
+
export declare const feFuncB: (attrs?: DenormAttrs<SVGFEFuncBElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
23
|
+
export declare const feFuncG: (attrs?: DenormAttrs<SVGFEFuncGElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
24
|
+
export declare const feFuncR: (attrs?: DenormAttrs<SVGFEFuncRElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
25
|
+
export declare const feGaussianBlur: (attrs?: DenormAttrs<SVGFEGaussianBlurElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
26
|
+
export declare const feImage: (attrs?: DenormAttrs<SVGFEImageElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
27
|
+
export declare const feMerge: (attrs?: DenormAttrs<SVGFEMergeElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
28
|
+
export declare const feMergeNode: (attrs?: DenormAttrs<SVGFEMergeNodeElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
29
|
+
export declare const feMorphology: (attrs?: DenormAttrs<SVGFEMorphologyElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
30
|
+
export declare const feOffset: (attrs?: DenormAttrs<SVGFEOffsetElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
31
|
+
export declare const fePointLight: (attrs?: DenormAttrs<SVGFEPointLightElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
32
|
+
export declare const feSpecularLighting: (attrs?: DenormAttrs<SVGFESpecularLightingElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
33
|
+
export declare const feSpotLight: (attrs?: DenormAttrs<SVGFESpotLightElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
34
|
+
export declare const feTile: (attrs?: DenormAttrs<SVGFETileElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
35
|
+
export declare const feTurbulence: (attrs?: DenormAttrs<SVGFETurbulenceElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
36
|
+
export declare const filter: (attrs?: DenormAttrs<SVGFilterElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
37
|
+
export declare const foreignObject: (attrs?: DenormAttrs<SVGForeignObjectElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
38
|
+
export declare const g: (attrs?: DenormAttrs<SVGGElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
39
|
+
export declare const image: (attrs?: DenormAttrs<SVGImageElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
40
|
+
export declare const line: (attrs?: DenormAttrs<SVGLineElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
41
|
+
export declare const linearGradient: (attrs?: DenormAttrs<SVGLinearGradientElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
42
|
+
export declare const marker: (attrs?: DenormAttrs<SVGMarkerElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
43
|
+
export declare const mask: (attrs?: DenormAttrs<SVGMaskElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
44
|
+
export declare const metadata: (attrs?: DenormAttrs<SVGMetadataElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
45
|
+
export declare const mpath: (attrs?: DenormAttrs<SVGMPathElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
46
|
+
export declare const path: (attrs?: DenormAttrs<SVGPathElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
47
|
+
export declare const pattern: (attrs?: DenormAttrs<SVGPatternElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
48
|
+
export declare const polygon: (attrs?: DenormAttrs<SVGPolygonElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
49
|
+
export declare const polyline: (attrs?: DenormAttrs<SVGPolylineElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
50
|
+
export declare const radialGradient: (attrs?: DenormAttrs<SVGRadialGradientElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
51
|
+
export declare const rect: (attrs?: DenormAttrs<SVGRectElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
52
|
+
export declare const script: (attrs?: DenormAttrs<SVGScriptElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
53
|
+
export declare const set: (attrs?: DenormAttrs<SVGSetElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
54
|
+
export declare const stop: (attrs?: DenormAttrs<SVGStopElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
55
|
+
export declare const style: (attrs?: DenormAttrs<SVGStyleElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
56
|
+
export declare const svg: (attrs?: DenormAttrs<SVGSVGElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
57
|
+
export declare const svgswitch: (attrs?: DenormAttrs<SVGSwitchElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
58
|
+
export declare const symbol: (attrs?: DenormAttrs<SVGSymbolElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
59
|
+
export declare const text: (attrs?: DenormAttrs<SVGTextElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
60
|
+
export declare const textPath: (attrs?: DenormAttrs<SVGTextPathElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
61
|
+
export declare const title: (attrs?: DenormAttrs<SVGTitleElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
62
|
+
export declare const tspan: (attrs?: DenormAttrs<SVGTSpanElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
63
|
+
export declare const use: (attrs?: DenormAttrs<SVGUseElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
64
|
+
export declare const view: (attrs?: DenormAttrs<SVGViewElement> | undefined, ...children: DenormChildren[]) => Element;
|
|
@@ -1,28 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2017-2018 Fredrik Nicol
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
22
|
-
*/
|
|
23
|
-
export {};
|
|
24
|
-
export declare type PropertyValue<TValue> = TValue extends Array<infer AValue> ? Array<AValue extends infer TUnpacked & {} ? TUnpacked : AValue> : TValue extends infer TUnpacked & {} ? TUnpacked : TValue;
|
|
25
|
-
export declare type Fallback<T> = {
|
|
1
|
+
export type PropertyValue<TValue> = TValue extends Array<infer AValue> ? Array<AValue extends infer TUnpacked & {} ? TUnpacked : AValue> : TValue extends infer TUnpacked & {} ? TUnpacked : TValue;
|
|
2
|
+
export type Fallback<T> = {
|
|
26
3
|
[P in keyof T]: T[P] | NonNullable<T[P]>[];
|
|
27
4
|
};
|
|
28
5
|
export interface StandardLonghandProperties<TLength = (string & {}) | 0, TTime = string & {}> {
|
|
@@ -5864,13 +5841,13 @@ export interface SvgProperties<TLength = (string & {}) | 0, TTime = string & {}>
|
|
|
5864
5841
|
}
|
|
5865
5842
|
export interface Properties<TLength = (string & {}) | 0, TTime = string & {}> extends StandardProperties<TLength, TTime>, SvgProperties<TLength, TTime> {
|
|
5866
5843
|
}
|
|
5867
|
-
export
|
|
5868
|
-
export
|
|
5869
|
-
export
|
|
5870
|
-
export
|
|
5871
|
-
export
|
|
5872
|
-
export
|
|
5873
|
-
export
|
|
5844
|
+
export type AtRules = "@charset" | "@counter-style" | "@document" | "@font-face" | "@font-feature-values" | "@import" | "@keyframes" | "@layer" | "@media" | "@namespace" | "@page" | "@property" | "@scroll-timeline" | "@supports" | "@viewport";
|
|
5845
|
+
export type AdvancedPseudos = "::cue" | "::cue-region" | "::part" | "::slotted" | ":dir" | ":has" | ":host" | ":host-context" | ":is" | ":lang" | ":matches()" | ":not" | ":nth-child" | ":nth-last-child" | ":nth-last-of-type" | ":nth-of-type" | ":where";
|
|
5846
|
+
export type SimplePseudos = "::after" | "::backdrop" | "::before" | "::cue" | "::cue-region" | "::first-letter" | "::first-line" | "::grammar-error" | "::marker" | "::placeholder" | "::selection" | "::spelling-error" | "::target-text" | ":active" | ":after" | ":any-link" | ":before" | ":blank" | ":checked" | ":current" | ":default" | ":defined" | ":disabled" | ":empty" | ":enabled" | ":first" | ":first-child" | ":first-letter" | ":first-line" | ":first-of-type" | ":focus" | ":focus-visible" | ":focus-within" | ":fullscreen" | ":future" | ":hover" | ":in-range" | ":indeterminate" | ":invalid" | ":last-child" | ":last-of-type" | ":left" | ":link" | ":local-link" | ":nth-col" | ":nth-last-col" | ":only-child" | ":only-of-type" | ":optional" | ":out-of-range" | ":past" | ":paused" | ":picture-in-picture" | ":placeholder-shown" | ":read-only" | ":read-write" | ":required" | ":right" | ":root" | ":scope" | ":target" | ":target-within" | ":user-invalid" | ":user-valid" | ":valid" | ":visited";
|
|
5847
|
+
export type Pseudos = AdvancedPseudos | SimplePseudos;
|
|
5848
|
+
export type HtmlAttributes = "[abbr]" | "[accept-charset]" | "[accept]" | "[accesskey]" | "[action]" | "[align]" | "[alink]" | "[allow]" | "[allowfullscreen]" | "[allowpaymentrequest]" | "[alt]" | "[archive]" | "[async]" | "[autobuffer]" | "[autocapitalize]" | "[autocomplete]" | "[autofocus]" | "[autoplay]" | "[axis]" | "[background]" | "[behavior]" | "[bgcolor]" | "[border]" | "[bottommargin]" | "[buffered]" | "[cellpadding]" | "[cellspacing]" | "[char]" | "[charoff]" | "[charset]" | "[checked]" | "[cite]" | "[class]" | "[classid]" | "[clear]" | "[code]" | "[codebase]" | "[codetype]" | "[color]" | "[cols]" | "[colspan]" | "[command]" | "[compact]" | "[content]" | "[contenteditable]" | "[contextmenu]" | "[controls]" | "[coords]" | "[crossorigin]" | "[data]" | "[datafld]" | "[datasrc]" | "[datetime]" | "[declare]" | "[decoding]" | "[default]" | "[defer]" | "[dir]" | "[direction]" | "[dirname]" | "[disabled]" | "[download]" | "[draggable]" | "[enctype]" | "[enterkeyhint]" | "[exportparts]" | "[face]" | "[for]" | "[form]" | "[formaction]" | "[formenctype]" | "[formmethod]" | "[formnovalidate]" | "[formtarget]" | "[frame]" | "[frameborder]" | "[headers]" | "[height]" | "[hidden]" | "[high]" | "[href]" | "[hreflang]" | "[hspace]" | "[http-equiv]" | "[icon]" | "[id]" | "[imagesizes]" | "[imagesrcset]" | "[inputmode]" | "[integrity]" | "[intrinsicsize]" | "[is]" | "[ismap]" | "[itemid]" | "[itemprop]" | "[itemref]" | "[itemscope]" | "[itemtype]" | "[kind]" | "[label]" | "[lang]" | "[language]" | "[leftmargin]" | "[link]" | "[loading]" | "[longdesc]" | "[loop]" | "[low]" | "[manifest]" | "[marginheight]" | "[marginwidth]" | "[max]" | "[maxlength]" | "[mayscript]" | "[media]" | "[method]" | "[methods]" | "[min]" | "[minlength]" | "[moz-opaque]" | "[mozallowfullscreen]" | "[mozcurrentsampleoffset]" | "[msallowfullscreen]" | "[multiple]" | "[muted]" | "[name]" | "[nohref]" | "[nomodule]" | "[nonce]" | "[noresize]" | "[noshade]" | "[novalidate]" | "[nowrap]" | "[object]" | "[onafterprint]" | "[onbeforeprint]" | "[onbeforeunload]" | "[onblur]" | "[onerror]" | "[onfocus]" | "[onhashchange]" | "[onlanguagechange]" | "[onload]" | "[onmessage]" | "[onoffline]" | "[ononline]" | "[onpopstate]" | "[onredo]" | "[onresize]" | "[onstorage]" | "[onundo]" | "[onunload]" | "[open]" | "[optimum]" | "[part]" | "[ping]" | "[placeholder]" | "[played]" | "[poster]" | "[prefetch]" | "[preload]" | "[profile]" | "[radiogroup]" | "[readonly]" | "[referrerpolicy]" | "[rel]" | "[required]" | "[rev]" | "[reversed]" | "[rightmargin]" | "[rows]" | "[rowspan]" | "[rules]" | "[sandbox-allow-downloads]" | "[sandbox-allow-modals]" | "[sandbox-allow-popups-to-escape-sandbox]" | "[sandbox-allow-popups]" | "[sandbox-allow-presentation]" | "[sandbox-allow-same-origin]" | "[sandbox-allow-storage-access-by-user-activation]" | "[sandbox-allow-top-navigation-by-user-activation]" | "[sandbox]" | "[scope]" | "[scoped]" | "[scrollamount]" | "[scrolldelay]" | "[scrolling]" | "[selected]" | "[shadowroot]" | "[shape]" | "[size]" | "[sizes]" | "[slot]" | "[span]" | "[spellcheck]" | "[src]" | "[srcdoc]" | "[srclang]" | "[srcset]" | "[standby]" | "[start]" | "[style]" | "[summary]" | "[tabindex]" | "[target]" | "[text]" | "[title]" | "[topmargin]" | "[translate]" | "[truespeed]" | "[type]" | "[usemap]" | "[valign]" | "[value]" | "[valuetype]" | "[version]" | "[vlink]" | "[volume]" | "[vspace]" | "[webkitallowfullscreen]" | "[width]" | "[wrap]" | "[xmlns]";
|
|
5849
|
+
export type SvgAttributes = "[accent-height]" | "[alignment-baseline]" | "[allowReorder]" | "[alphabetic]" | "[animation]" | "[arabic-form]" | "[ascent]" | "[attributeName]" | "[attributeType]" | "[azimuth]" | "[baseFrequency]" | "[baseProfile]" | "[baseline-shift]" | "[bbox]" | "[bias]" | "[by]" | "[calcMode]" | "[cap-height]" | "[class]" | "[clip-path]" | "[clip-rule]" | "[clipPathUnits]" | "[clip]" | "[color-interpolation-filters]" | "[color-interpolation]" | "[color-profile]" | "[color-rendering]" | "[color]" | "[contentScriptType]" | "[contentStyleType]" | "[cursor]" | "[cx]" | "[cy]" | "[d]" | "[descent]" | "[diffuseConstant]" | "[direction]" | "[display]" | "[divisor]" | "[document]" | "[dominant-baseline]" | "[download]" | "[dur]" | "[dx]" | "[dy]" | "[edgeMode]" | "[elevation]" | "[enable-background]" | "[fill-opacity]" | "[fill-rule]" | "[fill]" | "[filterRes]" | "[filterUnits]" | "[filter]" | "[flood-color]" | "[flood-opacity]" | "[font-family]" | "[font-size-adjust]" | "[font-size]" | "[font-stretch]" | "[font-style]" | "[font-variant]" | "[font-weight]" | "[format]" | "[fr]" | "[from]" | "[fx]" | "[fy]" | "[g1]" | "[g2]" | "[global]" | "[glyph-name]" | "[glyph-orientation-horizontal]" | "[glyph-orientation-vertical]" | "[glyphRef]" | "[gradientTransform]" | "[gradientUnits]" | "[graphical]" | "[hanging]" | "[hatchContentUnits]" | "[hatchUnits]" | "[height]" | "[horiz-adv-x]" | "[horiz-origin-x]" | "[horiz-origin-y]" | "[href]" | "[hreflang]" | "[id]" | "[ideographic]" | "[image-rendering]" | "[in2]" | "[in]" | "[k1]" | "[k2]" | "[k3]" | "[k4]" | "[k]" | "[kernelMatrix]" | "[kernelUnitLength]" | "[kerning]" | "[keyPoints]" | "[lang]" | "[lengthAdjust]" | "[letter-spacing]" | "[lighting-color]" | "[limitingConeAngle]" | "[marker-end]" | "[marker-mid]" | "[marker-start]" | "[markerHeight]" | "[markerUnits]" | "[markerWidth]" | "[maskContentUnits]" | "[maskUnits]" | "[mask]" | "[mathematical]" | "[media]" | "[mode]" | "[name]" | "[numOctaves]" | "[offset]" | "[opacity]" | "[operator]" | "[order]" | "[orient]" | "[orientation]" | "[origin]" | "[overflow]" | "[overline-position]" | "[overline-thickness]" | "[paint-order]" | "[panose-1]" | "[path]" | "[patternContentUnits]" | "[patternTransform]" | "[patternUnits]" | "[ping]" | "[pitch]" | "[pointer-events]" | "[pointsAtX]" | "[pointsAtY]" | "[pointsAtZ]" | "[points]" | "[preserveAlpha]" | "[preserveAspectRatio]" | "[primitiveUnits]" | "[r]" | "[radius]" | "[refX]" | "[refY]" | "[referrerpolicy]" | "[rel]" | "[repeatCount]" | "[requiredExtensions]" | "[requiredFeatures]" | "[rotate]" | "[rx]" | "[ry]" | "[scale]" | "[seed]" | "[shape-rendering]" | "[side]" | "[slope]" | "[solid-color]" | "[solid-opacity]" | "[spacing]" | "[specularConstant]" | "[specularExponent]" | "[spreadMethod]" | "[startOffset]" | "[stdDeviation]" | "[stemh]" | "[stemv]" | "[stitchTiles]" | "[stop-color]" | "[stop-opacity]" | "[strikethrough-position]" | "[strikethrough-thickness]" | "[string]" | "[stroke-dasharray]" | "[stroke-dashoffset]" | "[stroke-linecap]" | "[stroke-linejoin]" | "[stroke-miterlimit]" | "[stroke-opacity]" | "[stroke-width]" | "[stroke]" | "[style]" | "[surfaceScale]" | "[systemLanguage]" | "[tabindex]" | "[targetX]" | "[targetY]" | "[target]" | "[text-anchor]" | "[text-decoration]" | "[text-overflow]" | "[text-rendering]" | "[textLength]" | "[title]" | "[to]" | "[transform-origin]" | "[transform]" | "[type]" | "[u1]" | "[u2]" | "[underline-position]" | "[underline-thickness]" | "[unicode-bidi]" | "[unicode-range]" | "[unicode]" | "[units-per-em]" | "[v-alphabetic]" | "[v-hanging]" | "[v-ideographic]" | "[v-mathematical]" | "[values]" | "[vector-effect]" | "[version]" | "[vert-adv-y]" | "[vert-origin-x]" | "[vert-origin-y]" | "[viewBox]" | "[viewTarget]" | "[visibility]" | "[white-space]" | "[width]" | "[widths]" | "[word-spacing]" | "[writing-mode]" | "[x-height]" | "[x1]" | "[x2]" | "[xChannelSelector]" | "[x]" | "[y1]" | "[y2]" | "[yChannelSelector]" | "[y]" | "[z]" | "[zoomAndPan]";
|
|
5850
|
+
export type Globals = "inherit" | "initial" | "revert" | "unset";
|
|
5874
5851
|
export declare namespace Property {
|
|
5875
5852
|
type AccentColor = Globals | DataType.Color | "auto";
|
|
5876
5853
|
type AlignContent = Globals | DataType.ContentDistribution | DataType.ContentPosition | "baseline" | "normal" | (string & {});
|
|
@@ -6610,3 +6587,4 @@ declare namespace DataType {
|
|
|
6610
6587
|
type ViewportLength<TLength> = TLength | "auto" | (string & {});
|
|
6611
6588
|
type VisualBox = "border-box" | "content-box" | "padding-box";
|
|
6612
6589
|
}
|
|
6590
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Properties } from "./css";
|
|
1
|
+
import type { Properties } from "./css";
|
|
2
2
|
export interface AriaAttributes {
|
|
3
3
|
[_: `aria-${string}`]: string;
|
|
4
4
|
}
|
|
@@ -6,11 +6,9 @@ export interface Sized {
|
|
|
6
6
|
height?: number | string;
|
|
7
7
|
width?: number | string;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
(k: Event): void;
|
|
13
|
-
}
|
|
9
|
+
export type MimeTypeString = `${string}/${string}`;
|
|
10
|
+
export type ReferrerPolicy = "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
|
|
11
|
+
export type EventHandler = (k: Event) => void;
|
|
14
12
|
export interface GlobalEvents {
|
|
15
13
|
abort: EventHandler;
|
|
16
14
|
autocomplete: EventHandler;
|
package/lib/cjs/equal.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export declare function compareArrays<T>(equal: (a: T, b: T, partial: boolean) => boolean): (A: T[], B: T[], partial?: boolean) => boolean;
|
|
2
2
|
export declare const equalArrays: (A: any[], B: any[], partial?: boolean) => boolean;
|
|
3
|
-
export declare
|
|
3
|
+
export declare function matchArrays<T>(a: T[], b: T[], partial?: boolean): boolean;
|
|
4
4
|
export declare function asArray<T = unknown>(a: Record<string, T>): [string, T][];
|
|
5
|
-
export declare const matchObjects: (a:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export declare
|
|
5
|
+
export declare const matchObjects: (a: object, b: object & {
|
|
6
|
+
[k: string]: unknown;
|
|
7
|
+
}, partial?: boolean) => boolean;
|
|
8
|
+
export declare function equals<T>(a: T, b: T, partial?: boolean): boolean;
|
|
9
|
+
export declare function equals<T>(a: T[], b: T[], partial?: boolean): boolean;
|
|
10
|
+
export type Equals<T1, T2> = (<T>() => T extends T2 ? true : false) extends <T>() => T extends T1 ? true : false ? true : false;
|
|
11
|
+
export type Not<B extends boolean> = B extends true ? false : true;
|
package/lib/cjs/flags.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const parse: (parseArgs: string[]) => {
|
|
2
2
|
readonly argv0: string;
|
|
3
|
-
readonly args:
|
|
3
|
+
readonly args: ReadonlyArray<string>;
|
|
4
4
|
get(flag: string, def?: boolean): boolean;
|
|
5
5
|
asNumber(param: string, def?: number): number;
|
|
6
6
|
asString(param: string, def?: string): string;
|
package/lib/cjs/fs.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type PathLike = string;
|
|
2
2
|
export interface PlatformParts {
|
|
3
3
|
SEP: string;
|
|
4
4
|
WD: string;
|
|
@@ -27,9 +27,9 @@ export interface FileSystemAdapter {
|
|
|
27
27
|
rm(path: PathLike): Promise<void>;
|
|
28
28
|
}
|
|
29
29
|
export declare class FileSystem implements FileSystemAdapter {
|
|
30
|
-
protected adapter: FileSystemAdapter;
|
|
31
30
|
protected wd: string;
|
|
32
31
|
protected stack: string[];
|
|
32
|
+
protected adapter: FileSystemAdapter;
|
|
33
33
|
constructor(adapter?: FileSystemAdapter);
|
|
34
34
|
cwd(): string;
|
|
35
35
|
cd(dir: string): void;
|
|
@@ -60,7 +60,7 @@ export declare class RecordFileSystemAdapter implements FileSystemAdapter {
|
|
|
60
60
|
export declare class LocalStorageFileSystemAdapter extends RecordFileSystemAdapter {
|
|
61
61
|
constructor();
|
|
62
62
|
}
|
|
63
|
-
export
|
|
63
|
+
export type ObjectFileSystem = {
|
|
64
64
|
[k: string]: string | ObjectFileSystem;
|
|
65
65
|
};
|
|
66
66
|
export declare class ObjectFileSystemAdapter extends RecordFileSystemAdapter {
|
package/lib/cjs/fs_node.d.ts
CHANGED
package/lib/cjs/lock.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function lock(fn:
|
|
1
|
+
export declare function lock<CF extends (...args: unknown[]) => unknown>(fn: CF): CF;
|
package/lib/cjs/log.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Display } from "./display.
|
|
2
|
-
export
|
|
3
|
-
(message: Display, data?: {}): void;
|
|
4
|
-
}
|
|
1
|
+
import { type Display } from "./display.ts";
|
|
2
|
+
export type Log = (message: Display, data?: object) => void;
|
|
5
3
|
export interface Logger {
|
|
4
|
+
logAt: (level: number, prefix: string, fn?: (logLine: string) => void) => Log;
|
|
6
5
|
level: number;
|
|
7
6
|
format: <D extends {
|
|
8
7
|
name: string;
|
|
@@ -12,6 +11,7 @@ export interface Logger {
|
|
|
12
11
|
source: string;
|
|
13
12
|
}>(data: D) => string;
|
|
14
13
|
console: Console;
|
|
14
|
+
default: (logLine: string) => void;
|
|
15
15
|
debug: Log;
|
|
16
16
|
info: Log;
|
|
17
17
|
warn: Log;
|
|
@@ -35,7 +35,7 @@ export declare function basicLogFormatter(data: {
|
|
|
35
35
|
message: string;
|
|
36
36
|
source: string;
|
|
37
37
|
}): string;
|
|
38
|
-
|
|
38
|
+
type LoggerFormatFn = <D extends {
|
|
39
39
|
name: string;
|
|
40
40
|
prefix: string;
|
|
41
41
|
level: number;
|
|
@@ -47,8 +47,8 @@ export declare function getLogger(name: string, args?: LoggerFormatFn | {
|
|
|
47
47
|
console?: Console;
|
|
48
48
|
}): Logger;
|
|
49
49
|
export declare const DEFAULT_LOGGER: Logger;
|
|
50
|
-
export declare function debug(message: Display, data?:
|
|
51
|
-
export declare function info(message: Display, data?:
|
|
52
|
-
export declare function warn(message: Display, data?:
|
|
53
|
-
export declare function error(message: Display, data?:
|
|
50
|
+
export declare function debug(message: Display, data?: object): void;
|
|
51
|
+
export declare function info(message: Display, data?: object): void;
|
|
52
|
+
export declare function warn(message: Display, data?: object): void;
|
|
53
|
+
export declare function error(message: Display, data?: object): void;
|
|
54
54
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Observable } from "./observable.
|
|
1
|
+
import type { Observable } from "./observable.ts";
|
|
2
2
|
export interface Next<T> {
|
|
3
3
|
value: T;
|
|
4
4
|
completed: false;
|
|
@@ -17,7 +17,7 @@ export interface Failed {
|
|
|
17
17
|
completed: true;
|
|
18
18
|
failed: true;
|
|
19
19
|
}
|
|
20
|
-
export
|
|
20
|
+
export type Event<T, E> = Next<T> | Error<E> | Completed | Failed;
|
|
21
21
|
export interface EventSubscriber<T, E> {
|
|
22
22
|
next(e: Event<T, E>): void;
|
|
23
23
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Display } from "../display.ts";
|
|
2
|
+
import { type Logger } from "../log.ts";
|
|
2
3
|
export interface FullSubscriber<T, E> {
|
|
3
|
-
next?: (t: T) => void | Promise<
|
|
4
|
-
error?: (e: E) => void | Promise<
|
|
5
|
-
complete?: () => void | Promise<
|
|
4
|
+
next?: (t: T) => void | Promise<void>;
|
|
5
|
+
error?: (e: E) => void | Promise<void>;
|
|
6
|
+
complete?: () => void | Promise<void>;
|
|
6
7
|
}
|
|
7
|
-
export
|
|
8
|
+
export type Subscriber<T, E> = FullSubscriber<T, E> | ((t: T) => void | Promise<void>);
|
|
8
9
|
export interface Subscription {
|
|
9
10
|
unsubscribe(): void;
|
|
10
11
|
}
|
|
@@ -21,13 +22,14 @@ export interface Observable<T, E = unknown> {
|
|
|
21
22
|
}
|
|
22
23
|
export declare const Observable: {
|
|
23
24
|
of<T, E>(...ts: T[]): Observable<T, E>;
|
|
24
|
-
combineLatest<T1, T2,
|
|
25
|
+
combineLatest<T1, T2, E>(o1: Observable<T1, E>, o2: Observable<T2, E>): Observable<[T1, T2], E>;
|
|
25
26
|
};
|
|
26
27
|
interface Scheduler {
|
|
27
|
-
execute(fn: () => (void | Promise<
|
|
28
|
+
execute(fn: () => (void | Promise<void>)[]): void | Promise<void>;
|
|
28
29
|
}
|
|
29
30
|
export declare const AsyncScheduler: Scheduler;
|
|
30
31
|
export declare const SyncScheduler: Scheduler;
|
|
32
|
+
export declare function setDefaultScheduler(scheduler: Scheduler): void;
|
|
31
33
|
export declare class Subject<T, E = unknown, T2 = T> implements FullSubscriber<T, E>, Observable<T, E> {
|
|
32
34
|
#private;
|
|
33
35
|
private readonly scheduler;
|
|
@@ -35,10 +37,10 @@ export declare class Subject<T, E = unknown, T2 = T> implements FullSubscriber<T
|
|
|
35
37
|
get hot(): boolean;
|
|
36
38
|
get cold(): boolean;
|
|
37
39
|
constructor(scheduler?: Scheduler);
|
|
38
|
-
onWarm(fn:
|
|
39
|
-
next(t: T | T2): void | Promise<
|
|
40
|
-
error(e: E): void | Promise<
|
|
41
|
-
complete(): void | Promise<
|
|
40
|
+
onWarm(fn: CallableFunction): void;
|
|
41
|
+
next(t: T | T2): void | Promise<void>;
|
|
42
|
+
error(e: E): void | Promise<void>;
|
|
43
|
+
complete(): void | Promise<void>;
|
|
42
44
|
subscribe(subscriber: Subscriber<T, E>): Subscription;
|
|
43
45
|
pipe<T1>(o1: Subscriber<T, E> & Observable<T1, E>): Observable<T1, E>;
|
|
44
46
|
pipe<T1, T2>(o1: Subscriber<T, E> & Observable<T1, E>, o2: Subscriber<T1, E> & Observable<T2, E>): Observable<T2, E>;
|
|
@@ -52,44 +54,44 @@ export declare class Subject<T, E = unknown, T2 = T> implements FullSubscriber<T
|
|
|
52
54
|
export declare class BehaviorSubject<T, E = unknown, T2 = T> extends Subject<T, E, T2> {
|
|
53
55
|
#private;
|
|
54
56
|
constructor(t: T, scheduler?: Scheduler);
|
|
55
|
-
next(t: T | T2): void | Promise<
|
|
57
|
+
next(t: T | T2): void | Promise<void>;
|
|
56
58
|
subscribe(subscriber: Subscriber<T, E>): Subscription;
|
|
57
59
|
get current(): T;
|
|
58
60
|
}
|
|
59
61
|
export declare class ReplaySubject<T, E = unknown> extends Subject<T, E> {
|
|
60
62
|
#private;
|
|
61
|
-
|
|
63
|
+
readonly n: number;
|
|
62
64
|
constructor(n: number, scheduler?: Scheduler);
|
|
63
|
-
next(t: T): void | Promise<
|
|
65
|
+
next(t: T): void | Promise<void>;
|
|
64
66
|
subscribe(subscriber: Subscriber<T, E>): Subscription;
|
|
65
67
|
}
|
|
66
68
|
export declare function eventListener<E extends Event>(): (Subject<E, unknown, E> | ((e: E) => void))[];
|
|
67
69
|
export declare class EventHandler<E extends Event> extends Subject<E> {
|
|
68
70
|
private readonly eventFn;
|
|
69
|
-
constructor(eventFn: (e: E) => void | Promise<
|
|
70
|
-
next(e: E):
|
|
71
|
+
constructor(eventFn: (e: E) => void | Promise<void>);
|
|
72
|
+
next(e: E): Promise<undefined>;
|
|
71
73
|
}
|
|
72
|
-
export declare const watch: <T, E>(logger?: Logger) => (observable: Observable<T, E>) => void;
|
|
74
|
+
export declare const watch: <T extends Display, E extends Display>(logger?: Logger) => (observable: Observable<T, E>) => void;
|
|
73
75
|
declare class MapOperator<T, U, E> extends Subject<U, E, T> implements FullSubscriber<T, E>, Observable<U, E> {
|
|
74
76
|
private readonly mapFn;
|
|
75
77
|
constructor(mapFn: (t: T) => U);
|
|
76
|
-
next(t: T): void | Promise<
|
|
78
|
+
next(t: T): void | Promise<void>;
|
|
77
79
|
}
|
|
78
80
|
declare class FilterOperator<T, E> extends Subject<T, E> implements FullSubscriber<T, E>, Observable<T, E> {
|
|
79
81
|
private readonly filterFn;
|
|
80
82
|
constructor(filterFn: (t: T) => boolean);
|
|
81
|
-
next(t: T): void | Promise<
|
|
83
|
+
next(t: T): void | Promise<void>;
|
|
82
84
|
}
|
|
83
85
|
declare class DistinctOperator<T, E> extends Subject<T, E> implements FullSubscriber<T, E>, Observable<T, E> {
|
|
84
86
|
#private;
|
|
85
87
|
private readonly distinctFn;
|
|
86
88
|
constructor(distinctFn?: (t1: T, t2: T) => boolean);
|
|
87
|
-
next(t: T): void | Promise<
|
|
89
|
+
next(t: T): void | Promise<void>;
|
|
88
90
|
}
|
|
89
91
|
declare class ReduceOperator<A, T, E> extends BehaviorSubject<A, E, T> {
|
|
90
92
|
private readonly fn;
|
|
91
93
|
constructor(fn: (acc: A, t: T) => A, init: A);
|
|
92
|
-
next(t: T): void | Promise<
|
|
94
|
+
next(t: T): void | Promise<void>;
|
|
93
95
|
}
|
|
94
96
|
export declare class TakeUntilOperator<T, E> extends Subject<T, E> {
|
|
95
97
|
constructor(o: Observable<unknown, unknown>);
|
|
@@ -97,20 +99,20 @@ export declare class TakeUntilOperator<T, E> extends Subject<T, E> {
|
|
|
97
99
|
export declare class TapOperator<T, E> extends Subject<T, E> {
|
|
98
100
|
private readonly subscriber;
|
|
99
101
|
constructor(fn: Subscriber<T, E>);
|
|
100
|
-
next(t: T): void | Promise<
|
|
101
|
-
error(e: E): void | Promise<
|
|
102
|
-
complete(): void | Promise<
|
|
102
|
+
next(t: T): void | Promise<void>;
|
|
103
|
+
error(e: E): void | Promise<void>;
|
|
104
|
+
complete(): void | Promise<void>;
|
|
103
105
|
}
|
|
104
106
|
declare class FirstOperator<T, E> extends Subject<T, E> {
|
|
105
|
-
next(t: T): void | Promise<
|
|
107
|
+
next(t: T): void | Promise<void>;
|
|
106
108
|
}
|
|
107
109
|
declare class LastOperator<T, E = Error> extends Subject<T, E> {
|
|
108
110
|
#private;
|
|
109
111
|
next(t: T): void;
|
|
110
|
-
complete(): void | Promise<
|
|
112
|
+
complete(): void | Promise<void>;
|
|
111
113
|
}
|
|
112
114
|
export declare const filter: <T, E>(fn: (t: T) => boolean) => FilterOperator<T, E>;
|
|
113
|
-
export declare const distinct: <T, E>(fn?: (
|
|
115
|
+
export declare const distinct: <T, E>(fn?: (t1: T, t2: T) => boolean) => DistinctOperator<T, E>;
|
|
114
116
|
export declare const first: <T, E>() => FirstOperator<T, E>;
|
|
115
117
|
export declare const last: <T, E>() => LastOperator<T, E>;
|
|
116
118
|
export declare const map: <T1, T2, E>(fn: (t: T1) => T2) => MapOperator<T1, T2, E>;
|
|
@@ -120,13 +122,13 @@ export declare const takeUntil: <T, E>(o: Observable<unknown, unknown>) => TakeU
|
|
|
120
122
|
export declare const tap: <T, E>(fn: Subscriber<T, E>) => TapOperator<T, E>;
|
|
121
123
|
export declare const operator: {
|
|
122
124
|
filter: <T, E>(fn: (t: T) => boolean) => FilterOperator<T, E>;
|
|
123
|
-
distinct: <
|
|
124
|
-
first: <
|
|
125
|
-
last: <
|
|
126
|
-
map: <T1, T2,
|
|
127
|
-
replay: <
|
|
128
|
-
reduce: <A,
|
|
129
|
-
takeUntil: <
|
|
130
|
-
tap: <
|
|
125
|
+
distinct: <T, E>(fn?: (t1: T, t2: T) => boolean) => DistinctOperator<T, E>;
|
|
126
|
+
first: <T, E>() => FirstOperator<T, E>;
|
|
127
|
+
last: <T, E>() => LastOperator<T, E>;
|
|
128
|
+
map: <T1, T2, E>(fn: (t: T1) => T2) => MapOperator<T1, T2, E>;
|
|
129
|
+
replay: <T, E>(n: number) => ReplaySubject<T, E>;
|
|
130
|
+
reduce: <A, T, E>(fn: (acc: A, t: T) => A, init: A) => ReduceOperator<A, T, E>;
|
|
131
|
+
takeUntil: <T, E>(o: Observable<unknown, unknown>) => TakeUntilOperator<T, E>;
|
|
132
|
+
tap: <T, E>(fn: Subscriber<T, E>) => TapOperator<T, E>;
|
|
131
133
|
};
|
|
132
134
|
export {};
|
package/lib/cjs/result.d.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
export declare
|
|
3
|
-
export declare type Option<T> = Some<T> | None;
|
|
4
|
-
export declare type Err<E = Error> = {
|
|
5
|
-
err: E;
|
|
6
|
-
map: <U>(fn: (t: unknown) => Result<U>) => Result<U>;
|
|
7
|
-
};
|
|
8
|
-
export declare type Ok<T> = {
|
|
9
|
-
ok: T;
|
|
10
|
-
map: <U>(fn: (t: T) => Result<U>) => Result<U>;
|
|
11
|
-
};
|
|
12
|
-
export declare type Result<T, E = Error> = Ok<T> | Err<E>;
|
|
13
|
-
export declare const isNone: <T>(s: Option<T>) => s is null;
|
|
14
|
-
export declare const isSome: <T>(s: Option<T>) => s is T;
|
|
1
|
+
export declare const isNone: <T>(s: Option<T>) => s is None;
|
|
2
|
+
export declare const isSome: <T>(s: Option<T>) => s is Some<T>;
|
|
15
3
|
export declare function None<T = unknown>(_?: T): Option<T>;
|
|
16
4
|
export declare function Some<T>(t: Option<T>): Option<T>;
|
|
17
5
|
export declare function Some<T>(t: T): Option<T>;
|
|
18
6
|
export declare const isOk: <T, E>(t: Result<T, E>) => t is Ok<T>;
|
|
19
7
|
export declare const isErr: <T, E>(e: Result<T, E>) => e is Err<E>;
|
|
20
8
|
export declare const isResult: <T, E>(t: Result<T, E>) => t is Result<T, E>;
|
|
21
|
-
export declare function Ok<T>(ok: Ok<T>): T;
|
|
22
|
-
export declare function Ok<T>(t?: T): Ok<T>;
|
|
23
|
-
export declare function Err<E>(e: Err<E>): E;
|
|
24
|
-
export declare function Err<E>(e: E): Err<E>;
|
|
25
|
-
export declare function Err<E>(e: string): Err<E>;
|
|
9
|
+
export declare function Ok<T, E = unknown>(ok: Ok<T>): T;
|
|
10
|
+
export declare function Ok<T, E = unknown>(t?: T): Ok<T>;
|
|
11
|
+
export declare function Err<T, E>(e: Err<E>): E;
|
|
12
|
+
export declare function Err<T, E>(e: E): Err<E>;
|
|
13
|
+
export declare function Err<T, E>(e: string): Err<E>;
|
|
26
14
|
export declare function unwrap<T, E>(result: Result<T, E>): T | never;
|
|
27
15
|
export declare function unwrap<O>(some: Option<O>): O | never;
|
|
28
16
|
export declare function unwrapOr<T, E>(result: Result<T, E>, def: T): T;
|
|
29
17
|
export declare function unwrapOr<T>(some: Some<T>, def: T): T;
|
|
30
|
-
export declare function unwrapOrElse<T, E>(result: Result<T,
|
|
31
|
-
export declare function unwrapOrElse<T>(some: Some<T>, def: () => T): T;
|
|
18
|
+
export declare function unwrapOrElse<T, E>(result: Result<T, E>, def: () => T): T;
|
|
19
|
+
export declare function unwrapOrElse<T, E>(some: Some<T>, def: () => T): T;
|
|
20
|
+
export type None = null;
|
|
21
|
+
export type Some<T> = T;
|
|
22
|
+
export type Option<T> = Some<T> | None;
|
|
23
|
+
export type Err<E = Error> = {
|
|
24
|
+
err: E;
|
|
25
|
+
map: <U>(fn: (t: unknown) => Result<U>) => Result<U>;
|
|
26
|
+
};
|
|
27
|
+
export type Ok<T> = {
|
|
28
|
+
ok: T;
|
|
29
|
+
map: <U>(fn: (t: T) => Result<U>) => Result<U>;
|
|
30
|
+
};
|
|
31
|
+
export type Result<T, E = Error> = Ok<T> | Err<E>;
|
package/lib/cjs/safe.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const safe: <A extends unknown[], R>(fn: (...args: A) => R, r: R) => (...args: A) => R;
|
|
1
|
+
export declare const safe: <A extends unknown[], R>(fn: (...args: A) => R, r: R) => ((...args: A) => R);
|