@histoire/vendors 0.8.4 → 0.9.2
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/dist/client/b-floating-vue.d.ts +3 -0
- package/dist/client/{floating-vue.js → b-floating-vue.js} +13 -18
- package/dist/client/b-iconify.d.ts +1 -0
- package/dist/client/{iconify.js → b-iconify.js} +0 -0
- package/dist/client/b-pinia.d.ts +1 -0
- package/dist/client/{pinia.js → b-pinia.js} +41 -8
- package/dist/client/b-scroll.d.ts +2 -0
- package/dist/client/{scroll.js → b-scroll.js} +1 -1
- package/dist/client/b-vue-router.d.ts +1 -0
- package/dist/client/{vue-router.js → b-vue-router.js} +279 -158
- package/dist/client/b-vue-use.d.ts +1 -0
- package/dist/client/{vue-use.js → b-vue-use.js} +1070 -603
- package/dist/client/b-vue.d.ts +1 -0
- package/dist/client/{vue.js → b-vue.js} +1 -1
- package/dist/client/node_modules/@babel/parser/package.json +46 -0
- package/dist/client/node_modules/@babel/parser/typings/babel-parser.d.ts +214 -0
- package/dist/client/node_modules/@floating-ui/core/index.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/core/package.json +70 -0
- package/dist/client/node_modules/@floating-ui/core/src/_babel.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/core/src/computeCoordsFromPlacement.d.ts +4 -0
- package/dist/client/node_modules/@floating-ui/core/src/computePosition.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/detectOverflow.d.ts +9 -0
- package/dist/client/node_modules/@floating-ui/core/src/enums.d.ts +4 -0
- package/dist/client/node_modules/@floating-ui/core/src/index.d.ts +11 -0
- package/dist/client/node_modules/@floating-ui/core/src/middleware/arrow.d.ts +6 -0
- package/dist/client/node_modules/@floating-ui/core/src/middleware/autoPlacement.d.ts +9 -0
- package/dist/client/node_modules/@floating-ui/core/src/middleware/flip.d.ts +10 -0
- package/dist/client/node_modules/@floating-ui/core/src/middleware/hide.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/middleware/inline.d.ts +5 -0
- package/dist/client/node_modules/@floating-ui/core/src/middleware/offset.d.ts +21 -0
- package/dist/client/node_modules/@floating-ui/core/src/middleware/shift.d.ts +32 -0
- package/dist/client/node_modules/@floating-ui/core/src/middleware/size.d.ts +6 -0
- package/dist/client/node_modules/@floating-ui/core/src/types.d.ts +148 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/expandPaddingObject.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getAlignment.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getAlignmentSides.d.ts +5 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getBasePlacement.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getCrossAxis.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getExpandedPlacements.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getLengthFromAxis.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getMainAxisFromPlacement.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getOppositeAlignmentPlacement.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getOppositePlacement.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getPaddingObject.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/math.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/rectToClientRect.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/within.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/index.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/package.json +75 -0
- package/dist/client/node_modules/@floating-ui/dom/src/index.d.ts +7 -0
- package/dist/client/node_modules/@floating-ui/dom/src/platform.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/dom/src/types.d.ts +27 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/contains.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/convertOffsetParentRelativeRectToViewportRelativeRect.d.ts +6 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getBoundingClientRect.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getClippingClientRect.d.ts +6 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getComputedStyle.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getDimensions.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getDocumentElement.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getDocumentRect.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getNodeName.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getNodeScroll.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getOffsetParent.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getParentNode.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getRectRelativeToOffsetParent.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getScrollParent.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getScrollParents.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getViewportRect.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getWindowScrollBarX.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/is.d.ts +15 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/math.d.ts +3 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/window.d.ts +2 -0
- package/dist/client/node_modules/@iconify/vue/dist/iconify.d.ts +680 -0
- package/dist/client/node_modules/@iconify/vue/dist/offline.d.ts +347 -0
- package/dist/client/node_modules/@iconify/vue/offline/package.json +14 -0
- package/dist/client/node_modules/@iconify/vue/package.json +61 -0
- package/dist/client/node_modules/@types/web-bluetooth/index.d.ts +176 -0
- package/dist/client/node_modules/@types/web-bluetooth/package.json +40 -0
- package/dist/client/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +1198 -0
- package/dist/client/node_modules/@vue/compiler-core/package.json +43 -0
- package/dist/client/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts +66 -0
- package/dist/client/node_modules/@vue/compiler-dom/package.json +43 -0
- package/dist/client/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +321 -0
- package/dist/client/node_modules/@vue/compiler-sfc/package.json +59 -0
- package/dist/client/node_modules/@vue/compiler-ssr/dist/compiler-ssr.d.ts +6 -0
- package/dist/client/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/api.d.ts +108 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/app.d.ts +1 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/component.d.ts +77 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/context.d.ts +5 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/hooks.d.ts +179 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/index.d.ts +6 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/util.d.ts +4 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/const.d.ts +2 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/env.d.ts +15 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/index.d.ts +18 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/plugin.d.ts +47 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/proxy.d.ts +20 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/time.d.ts +2 -0
- package/dist/client/node_modules/@vue/devtools-api/package.json +37 -0
- package/dist/client/node_modules/@vue/reactivity/dist/reactivity.d.ts +347 -0
- package/dist/client/node_modules/@vue/reactivity/package.json +41 -0
- package/dist/client/node_modules/@vue/reactivity-transform/dist/reactivity-transform.d.ts +33 -0
- package/dist/client/node_modules/@vue/reactivity-transform/package.json +41 -0
- package/dist/client/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +2018 -0
- package/dist/client/node_modules/@vue/runtime-core/package.json +38 -0
- package/dist/client/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +1522 -0
- package/dist/client/node_modules/@vue/runtime-dom/package.json +42 -0
- package/dist/client/node_modules/@vue/server-renderer/dist/server-renderer.d.ts +100 -0
- package/dist/client/node_modules/@vue/server-renderer/package.json +41 -0
- package/dist/client/node_modules/@vue/shared/dist/shared.d.ts +356 -0
- package/dist/client/node_modules/@vue/shared/package.json +33 -0
- package/dist/client/node_modules/@vueuse/core/index.d.ts +4305 -0
- package/dist/client/node_modules/@vueuse/core/metadata.d.ts +1 -0
- package/dist/client/node_modules/@vueuse/core/node_modules/@vueuse/shared/index.d.ts +874 -0
- package/dist/client/node_modules/@vueuse/core/node_modules/@vueuse/shared/package.json +50 -0
- package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/lib/index.d.ts +22 -0
- package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/lib/v2/index.d.ts +31 -0
- package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/lib/v2.7/index.d.ts +52 -0
- package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/lib/v3/index.d.ts +22 -0
- package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/package.json +47 -0
- package/dist/client/node_modules/@vueuse/core/package.json +59 -0
- package/dist/client/node_modules/@vueuse/metadata/index.d.ts +75 -0
- package/dist/client/node_modules/@vueuse/metadata/package.json +39 -0
- package/dist/client/node_modules/compute-scroll-into-view/package.json +90 -0
- package/dist/client/node_modules/compute-scroll-into-view/typings/index.d.ts +19 -0
- package/dist/client/node_modules/csstype/index.d.ts +38372 -0
- package/dist/client/node_modules/csstype/package.json +57 -0
- package/dist/client/node_modules/estree-walker/dist/esm/package.json +1 -0
- package/dist/client/node_modules/estree-walker/package.json +37 -0
- package/dist/client/node_modules/estree-walker/src/package.json +1 -0
- package/dist/client/node_modules/estree-walker/types/async.d.ts +53 -0
- package/dist/client/node_modules/estree-walker/types/index.d.ts +56 -0
- package/dist/client/node_modules/estree-walker/types/sync.d.ts +53 -0
- package/dist/client/node_modules/estree-walker/types/walker.d.ts +37 -0
- package/dist/client/node_modules/floating-vue/dist/components/Dropdown.vue.d.ts +25 -0
- package/dist/client/node_modules/floating-vue/dist/components/Menu.vue.d.ts +25 -0
- package/dist/client/node_modules/floating-vue/dist/components/Popper.d.ts +375 -0
- package/dist/client/node_modules/floating-vue/dist/components/Popper.vue.d.ts +367 -0
- package/dist/client/node_modules/floating-vue/dist/components/PopperContent.vue.d.ts +48 -0
- package/dist/client/node_modules/floating-vue/dist/components/PopperMethods.d.ts +9 -0
- package/dist/client/node_modules/floating-vue/dist/components/PopperWrapper.vue.d.ts +28 -0
- package/dist/client/node_modules/floating-vue/dist/components/ThemeClass.d.ts +6 -0
- package/dist/client/node_modules/floating-vue/dist/components/Tooltip.vue.d.ts +25 -0
- package/dist/client/node_modules/floating-vue/dist/components/TooltipDirective.vue.d.ts +28 -0
- package/dist/client/node_modules/floating-vue/dist/config.d.ts +11 -0
- package/dist/client/node_modules/floating-vue/dist/directives/v-close-popper.d.ts +13 -0
- package/dist/client/node_modules/floating-vue/dist/directives/v-tooltip.d.ts +27 -0
- package/dist/client/node_modules/floating-vue/dist/directives/v-tooltip.spec.d.ts +1 -0
- package/dist/client/node_modules/floating-vue/dist/index.d.ts +415 -0
- package/dist/client/node_modules/floating-vue/dist/util/assign-deep.d.ts +1 -0
- package/dist/client/node_modules/floating-vue/dist/util/env.d.ts +2 -0
- package/dist/client/node_modules/floating-vue/dist/util/events.d.ts +12 -0
- package/dist/client/node_modules/floating-vue/dist/util/frame.d.ts +1 -0
- package/dist/client/node_modules/floating-vue/dist/util/lang.d.ts +1 -0
- package/dist/client/node_modules/floating-vue/dist/util/popper.d.ts +3 -0
- package/dist/client/node_modules/floating-vue/package.json +71 -0
- package/dist/client/node_modules/floating-vue/src/global-shim.d.ts +1 -0
- package/dist/client/node_modules/floating-vue/src/vue-shim.d.ts +5 -0
- package/dist/client/node_modules/magic-string/index.d.ts +221 -0
- package/dist/client/node_modules/magic-string/package.json +52 -0
- package/dist/client/node_modules/nanoid/async/index.d.ts +56 -0
- package/dist/client/node_modules/nanoid/async/package.json +12 -0
- package/dist/client/node_modules/nanoid/index.d.ts +91 -0
- package/dist/client/node_modules/nanoid/non-secure/index.d.ts +33 -0
- package/dist/client/node_modules/nanoid/non-secure/package.json +6 -0
- package/dist/client/node_modules/nanoid/package.json +60 -0
- package/dist/client/node_modules/nanoid/url-alphabet/package.json +6 -0
- package/dist/client/node_modules/picocolors/package.json +25 -0
- package/dist/client/node_modules/picocolors/picocolors.d.ts +5 -0
- package/dist/client/node_modules/pinia/dist/pinia.d.ts +963 -0
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/index.d.ts +22 -0
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2/index.d.ts +31 -0
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2.7/index.d.ts +52 -0
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v3/index.d.ts +22 -0
- package/dist/client/node_modules/pinia/node_modules/vue-demi/package.json +47 -0
- package/dist/client/node_modules/pinia/package.json +101 -0
- package/dist/client/node_modules/postcss/lib/at-rule.d.ts +106 -0
- package/dist/client/node_modules/postcss/lib/comment.d.ts +56 -0
- package/dist/client/node_modules/postcss/lib/container.d.ts +442 -0
- package/dist/client/node_modules/postcss/lib/css-syntax-error.d.ts +239 -0
- package/dist/client/node_modules/postcss/lib/declaration.d.ts +124 -0
- package/dist/client/node_modules/postcss/lib/document.d.ts +57 -0
- package/dist/client/node_modules/postcss/lib/fromJSON.d.ts +5 -0
- package/dist/client/node_modules/postcss/lib/input.d.ts +150 -0
- package/dist/client/node_modules/postcss/lib/lazy-result.d.ts +176 -0
- package/dist/client/node_modules/postcss/lib/list.d.ts +51 -0
- package/dist/client/node_modules/postcss/lib/no-work-result.d.ts +37 -0
- package/dist/client/node_modules/postcss/lib/node.d.ts +478 -0
- package/dist/client/node_modules/postcss/lib/parse.d.ts +5 -0
- package/dist/client/node_modules/postcss/lib/postcss.d.ts +473 -0
- package/dist/client/node_modules/postcss/lib/previous-map.d.ts +72 -0
- package/dist/client/node_modules/postcss/lib/processor.d.ts +102 -0
- package/dist/client/node_modules/postcss/lib/result.d.ts +196 -0
- package/dist/client/node_modules/postcss/lib/root.d.ts +73 -0
- package/dist/client/node_modules/postcss/lib/rule.d.ts +104 -0
- package/dist/client/node_modules/postcss/lib/stringifier.d.ts +37 -0
- package/dist/client/node_modules/postcss/lib/stringify.d.ts +5 -0
- package/dist/client/node_modules/postcss/lib/warning.d.ts +138 -0
- package/dist/client/node_modules/postcss/package.json +85 -0
- package/dist/client/node_modules/scroll-into-view-if-needed/package.json +144 -0
- package/dist/client/node_modules/scroll-into-view-if-needed/typings/index.d.ts +13 -0
- package/dist/client/node_modules/scroll-into-view-if-needed/typings/types.d.ts +19 -0
- package/dist/client/node_modules/source-map/package.json +73 -0
- package/dist/client/node_modules/source-map/source-map.d.ts +98 -0
- package/dist/client/node_modules/source-map-js/package.json +71 -0
- package/dist/client/node_modules/source-map-js/source-map.d.ts +115 -0
- package/dist/client/node_modules/sourcemap-codec/dist/types/sourcemap-codec.d.ts +5 -0
- package/dist/client/node_modules/sourcemap-codec/package.json +53 -0
- package/dist/client/node_modules/vue/compiler-sfc/index.d.ts +1 -0
- package/dist/client/node_modules/vue/compiler-sfc/package.json +5 -0
- package/dist/client/node_modules/vue/dist/vue.d.ts +9 -0
- package/dist/client/node_modules/vue/macros-global.d.ts +19 -0
- package/dist/client/node_modules/vue/macros.d.ts +110 -0
- package/dist/client/node_modules/vue/package.json +75 -0
- package/dist/client/node_modules/vue/ref-macros.d.ts +2 -0
- package/dist/client/node_modules/vue/server-renderer/index.d.ts +1 -0
- package/dist/client/node_modules/vue/server-renderer/package.json +5 -0
- package/dist/client/node_modules/vue-resize/package.json +77 -0
- package/dist/client/node_modules/vue-router/dist/vue-router.d.ts +1491 -0
- package/dist/client/node_modules/vue-router/package.json +114 -0
- package/dist/client/vue.runtime.esm-bundler.js +24 -19
- package/entries.js +7 -7
- package/floating-vue.d.ts +3 -0
- package/iconify.d.ts +3 -0
- package/package.json +14 -5
- package/pinia.d.ts +3 -0
- package/rollup.config.mjs +117 -0
- package/scroll.d.ts +3 -0
- package/src/client/b-floating-vue.ts +3 -0
- package/src/client/b-iconify.ts +1 -0
- package/src/client/b-pinia.ts +1 -0
- package/src/client/b-scroll.ts +2 -0
- package/src/client/b-vue-router.ts +1 -0
- package/src/client/b-vue-use.ts +1 -0
- package/src/client/b-vue.ts +1 -0
- package/vue-router.d.ts +3 -0
- package/vue-use.d.ts +3 -0
- package/vue.d.ts +3 -0
- package/dist/client/floating-vue.d.ts +0 -2
- package/dist/client/iconify.d.ts +0 -1
- package/dist/client/pinia.d.ts +0 -1
- package/dist/client/scroll.d.ts +0 -1
- package/dist/client/vue-router.d.ts +0 -1
- package/dist/client/vue-use.d.ts +0 -1
- package/dist/client/vue.d.ts +0 -1
- package/rollup.config.js +0 -37
- package/src/client/floating-vue.ts +0 -2
- package/src/client/iconify.ts +0 -1
- package/src/client/pinia.ts +0 -1
- package/src/client/scroll.ts +0 -1
- package/src/client/vue-router.ts +0 -1
- package/src/client/vue-use.ts +0 -1
- package/src/client/vue.ts +0 -1
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import Container from './container.js'
|
|
2
|
+
import Node from './node.js'
|
|
3
|
+
|
|
4
|
+
interface DeclarationRaws extends Record<string, unknown> {
|
|
5
|
+
/**
|
|
6
|
+
* The space symbols before the node. It also stores `*`
|
|
7
|
+
* and `_` symbols before the declaration (IE hack).
|
|
8
|
+
*/
|
|
9
|
+
before?: string
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* The symbols between the property and value for declarations.
|
|
13
|
+
*/
|
|
14
|
+
between?: string
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* The content of the important statement, if it is not just `!important`.
|
|
18
|
+
*/
|
|
19
|
+
important?: string
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Declaration value with comments.
|
|
23
|
+
*/
|
|
24
|
+
value?: {
|
|
25
|
+
value: string
|
|
26
|
+
raw: string
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface DeclarationProps {
|
|
31
|
+
/** Name of the declaration. */
|
|
32
|
+
prop: string
|
|
33
|
+
/** Value of the declaration. */
|
|
34
|
+
value: string
|
|
35
|
+
/** Whether the declaration has an `!important` annotation. */
|
|
36
|
+
important?: boolean
|
|
37
|
+
/** Information used to generate byte-to-byte equal node string as it was in the origin input. */
|
|
38
|
+
raws?: DeclarationRaws
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Represents a CSS declaration.
|
|
43
|
+
*
|
|
44
|
+
* ```js
|
|
45
|
+
* Once (root, { Declaration }) {
|
|
46
|
+
* let color = new Declaration({ prop: 'color', value: 'black' })
|
|
47
|
+
* root.append(color)
|
|
48
|
+
* }
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* ```js
|
|
52
|
+
* const root = postcss.parse('a { color: black }')
|
|
53
|
+
* const decl = root.first.first
|
|
54
|
+
* decl.type //=> 'decl'
|
|
55
|
+
* decl.toString() //=> ' color: black'
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
export default class Declaration extends Node {
|
|
59
|
+
type: 'decl'
|
|
60
|
+
parent: Container | undefined
|
|
61
|
+
raws: DeclarationRaws
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* The declaration's property name.
|
|
65
|
+
*
|
|
66
|
+
* ```js
|
|
67
|
+
* const root = postcss.parse('a { color: black }')
|
|
68
|
+
* const decl = root.first.first
|
|
69
|
+
* decl.prop //=> 'color'
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
prop: string
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* The declaration’s value.
|
|
76
|
+
*
|
|
77
|
+
* This value will be cleaned of comments. If the source value contained
|
|
78
|
+
* comments, those comments will be available in the `raws` property.
|
|
79
|
+
* If you have not changed the value, the result of `decl.toString()`
|
|
80
|
+
* will include the original raws value (comments and all).
|
|
81
|
+
*
|
|
82
|
+
* ```js
|
|
83
|
+
* const root = postcss.parse('a { color: black }')
|
|
84
|
+
* const decl = root.first.first
|
|
85
|
+
* decl.value //=> 'black'
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
value: string
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* `true` if the declaration has an `!important` annotation.
|
|
92
|
+
*
|
|
93
|
+
* ```js
|
|
94
|
+
* const root = postcss.parse('a { color: black !important; color: red }')
|
|
95
|
+
* root.first.first.important //=> true
|
|
96
|
+
* root.first.last.important //=> undefined
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
important: boolean
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* `true` if declaration is declaration of CSS Custom Property
|
|
103
|
+
* or Sass variable.
|
|
104
|
+
*
|
|
105
|
+
* ```js
|
|
106
|
+
* const root = postcss.parse(':root { --one: 1 }')
|
|
107
|
+
* let one = root.first.first
|
|
108
|
+
* one.variable //=> true
|
|
109
|
+
* ```
|
|
110
|
+
*
|
|
111
|
+
* ```js
|
|
112
|
+
* const root = postcss.parse('$one: 1')
|
|
113
|
+
* let one = root.first
|
|
114
|
+
* one.variable //=> true
|
|
115
|
+
* ```
|
|
116
|
+
*/
|
|
117
|
+
variable: boolean
|
|
118
|
+
|
|
119
|
+
constructor(defaults?: DeclarationProps)
|
|
120
|
+
assign(overrides: object | DeclarationProps): this
|
|
121
|
+
clone(overrides?: Partial<DeclarationProps>): this
|
|
122
|
+
cloneBefore(overrides?: Partial<DeclarationProps>): this
|
|
123
|
+
cloneAfter(overrides?: Partial<DeclarationProps>): this
|
|
124
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import Container, { ContainerProps } from './container.js'
|
|
2
|
+
import { ProcessOptions } from './postcss.js'
|
|
3
|
+
import Result from './result.js'
|
|
4
|
+
import Root, { RootProps } from './root.js'
|
|
5
|
+
|
|
6
|
+
export interface DocumentProps extends ContainerProps {
|
|
7
|
+
nodes?: Root[]
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Information to generate byte-to-byte equal node string as it was
|
|
11
|
+
* in the origin input.
|
|
12
|
+
*
|
|
13
|
+
* Every parser saves its own properties.
|
|
14
|
+
*/
|
|
15
|
+
raws?: Record<string, any>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
type ChildNode = Root
|
|
19
|
+
type ChildProps = RootProps
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Represents a file and contains all its parsed nodes.
|
|
23
|
+
*
|
|
24
|
+
* **Experimental:** some aspects of this node could change within minor
|
|
25
|
+
* or patch version releases.
|
|
26
|
+
*
|
|
27
|
+
* ```js
|
|
28
|
+
* const document = htmlParser(
|
|
29
|
+
* '<html><style>a{color:black}</style><style>b{z-index:2}</style>'
|
|
30
|
+
* )
|
|
31
|
+
* document.type //=> 'document'
|
|
32
|
+
* document.nodes.length //=> 2
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export default class Document extends Container<Root> {
|
|
36
|
+
type: 'document'
|
|
37
|
+
parent: undefined
|
|
38
|
+
|
|
39
|
+
constructor(defaults?: DocumentProps)
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Returns a `Result` instance representing the document’s CSS roots.
|
|
43
|
+
*
|
|
44
|
+
* ```js
|
|
45
|
+
* const root1 = postcss.parse(css1, { from: 'a.css' })
|
|
46
|
+
* const root2 = postcss.parse(css2, { from: 'b.css' })
|
|
47
|
+
* const document = postcss.document()
|
|
48
|
+
* document.append(root1)
|
|
49
|
+
* document.append(root2)
|
|
50
|
+
* const result = document.toResult({ to: 'all.css', map: true })
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @param opts Options.
|
|
54
|
+
* @return Result with current document’s CSS.
|
|
55
|
+
*/
|
|
56
|
+
toResult(options?: ProcessOptions): Result
|
|
57
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { ProcessOptions } from './postcss.js'
|
|
2
|
+
import PreviousMap from './previous-map.js'
|
|
3
|
+
|
|
4
|
+
export interface FilePosition {
|
|
5
|
+
/**
|
|
6
|
+
* URL for the source file.
|
|
7
|
+
*/
|
|
8
|
+
url: string
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Absolute path to the source file.
|
|
12
|
+
*/
|
|
13
|
+
file?: string
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Line of inclusive start position in source file.
|
|
17
|
+
*/
|
|
18
|
+
line: number
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Column of inclusive start position in source file.
|
|
22
|
+
*/
|
|
23
|
+
column: number
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Line of exclusive end position in source file.
|
|
27
|
+
*/
|
|
28
|
+
endLine?: number
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Column of exclusive end position in source file.
|
|
32
|
+
*/
|
|
33
|
+
endColumn?: number
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Source code.
|
|
37
|
+
*/
|
|
38
|
+
source?: string
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Represents the source CSS.
|
|
43
|
+
*
|
|
44
|
+
* ```js
|
|
45
|
+
* const root = postcss.parse(css, { from: file })
|
|
46
|
+
* const input = root.source.input
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
export default class Input {
|
|
50
|
+
/**
|
|
51
|
+
* Input CSS source.
|
|
52
|
+
*
|
|
53
|
+
* ```js
|
|
54
|
+
* const input = postcss.parse('a{}', { from: file }).input
|
|
55
|
+
* input.css //=> "a{}"
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
css: string
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* The input source map passed from a compilation step before PostCSS
|
|
62
|
+
* (for example, from Sass compiler).
|
|
63
|
+
*
|
|
64
|
+
* ```js
|
|
65
|
+
* root.source.input.map.consumer().sources //=> ['a.sass']
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
map: PreviousMap
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* The absolute path to the CSS source file defined
|
|
72
|
+
* with the `from` option.
|
|
73
|
+
*
|
|
74
|
+
* ```js
|
|
75
|
+
* const root = postcss.parse(css, { from: 'a.css' })
|
|
76
|
+
* root.source.input.file //=> '/home/ai/a.css'
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
file?: string
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* The unique ID of the CSS source. It will be created if `from` option
|
|
83
|
+
* is not provided (because PostCSS does not know the file path).
|
|
84
|
+
*
|
|
85
|
+
* ```js
|
|
86
|
+
* const root = postcss.parse(css)
|
|
87
|
+
* root.source.input.file //=> undefined
|
|
88
|
+
* root.source.input.id //=> "<input css 8LZeVF>"
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
id?: string
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* The flag to indicate whether or not the source code has Unicode BOM.
|
|
95
|
+
*/
|
|
96
|
+
hasBOM: boolean
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @param css Input CSS source.
|
|
100
|
+
* @param opts Process options.
|
|
101
|
+
*/
|
|
102
|
+
constructor(css: string, opts?: ProcessOptions)
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* The CSS source identifier. Contains `Input#file` if the user
|
|
106
|
+
* set the `from` option, or `Input#id` if they did not.
|
|
107
|
+
*
|
|
108
|
+
* ```js
|
|
109
|
+
* const root = postcss.parse(css, { from: 'a.css' })
|
|
110
|
+
* root.source.input.from //=> "/home/ai/a.css"
|
|
111
|
+
*
|
|
112
|
+
* const root = postcss.parse(css)
|
|
113
|
+
* root.source.input.from //=> "<input css 1>"
|
|
114
|
+
* ```
|
|
115
|
+
*/
|
|
116
|
+
get from(): string
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Reads the input source map and returns a symbol position
|
|
120
|
+
* in the input source (e.g., in a Sass file that was compiled
|
|
121
|
+
* to CSS before being passed to PostCSS). Optionally takes an
|
|
122
|
+
* end position, exclusive.
|
|
123
|
+
*
|
|
124
|
+
* ```js
|
|
125
|
+
* root.source.input.origin(1, 1) //=> { file: 'a.css', line: 3, column: 1 }
|
|
126
|
+
* root.source.input.origin(1, 1, 1, 4)
|
|
127
|
+
* //=> { file: 'a.css', line: 3, column: 1, endLine: 3, endColumn: 4 }
|
|
128
|
+
* ```
|
|
129
|
+
*
|
|
130
|
+
* @param line Line for inclusive start position in input CSS.
|
|
131
|
+
* @param column Column for inclusive start position in input CSS.
|
|
132
|
+
* @param endLine Line for exclusive end position in input CSS.
|
|
133
|
+
* @param endColumn Column for exclusive end position in input CSS.
|
|
134
|
+
*
|
|
135
|
+
* @return Position in input source.
|
|
136
|
+
*/
|
|
137
|
+
origin(
|
|
138
|
+
line: number,
|
|
139
|
+
column: number,
|
|
140
|
+
endLine?: number,
|
|
141
|
+
endColumn?: number
|
|
142
|
+
): FilePosition | false
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Converts source offset to line and column.
|
|
146
|
+
*
|
|
147
|
+
* @param offset Source offset.
|
|
148
|
+
*/
|
|
149
|
+
fromOffset(offset: number): { line: number; col: number } | null
|
|
150
|
+
}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import Result, { Message, ResultOptions } from './result.js'
|
|
2
|
+
import { SourceMap } from './postcss.js'
|
|
3
|
+
import Processor from './processor.js'
|
|
4
|
+
import Warning from './warning.js'
|
|
5
|
+
import Root from './root.js'
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* A Promise proxy for the result of PostCSS transformations.
|
|
9
|
+
*
|
|
10
|
+
* A `LazyResult` instance is returned by `Processor#process`.
|
|
11
|
+
*
|
|
12
|
+
* ```js
|
|
13
|
+
* const lazy = postcss([autoprefixer]).process(css)
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export default class LazyResult implements PromiseLike<Result> {
|
|
17
|
+
/**
|
|
18
|
+
* Processes input CSS through synchronous and asynchronous plugins
|
|
19
|
+
* and calls `onFulfilled` with a Result instance. If a plugin throws
|
|
20
|
+
* an error, the `onRejected` callback will be executed.
|
|
21
|
+
*
|
|
22
|
+
* It implements standard Promise API.
|
|
23
|
+
*
|
|
24
|
+
* ```js
|
|
25
|
+
* postcss([autoprefixer]).process(css, { from: cssPath }).then(result => {
|
|
26
|
+
* console.log(result.css)
|
|
27
|
+
* })
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
then: Promise<Result>['then']
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Processes input CSS through synchronous and asynchronous plugins
|
|
34
|
+
* and calls onRejected for each error thrown in any plugin.
|
|
35
|
+
*
|
|
36
|
+
* It implements standard Promise API.
|
|
37
|
+
*
|
|
38
|
+
* ```js
|
|
39
|
+
* postcss([autoprefixer]).process(css).then(result => {
|
|
40
|
+
* console.log(result.css)
|
|
41
|
+
* }).catch(error => {
|
|
42
|
+
* console.error(error)
|
|
43
|
+
* })
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
catch: Promise<Result>['catch']
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Processes input CSS through synchronous and asynchronous plugins
|
|
50
|
+
* and calls onFinally on any error or when all plugins will finish work.
|
|
51
|
+
*
|
|
52
|
+
* It implements standard Promise API.
|
|
53
|
+
*
|
|
54
|
+
* ```js
|
|
55
|
+
* postcss([autoprefixer]).process(css).finally(() => {
|
|
56
|
+
* console.log('processing ended')
|
|
57
|
+
* })
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
finally: Promise<Result>['finally']
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @param processor Processor used for this transformation.
|
|
64
|
+
* @param css CSS to parse and transform.
|
|
65
|
+
* @param opts Options from the `Processor#process` or `Root#toResult`.
|
|
66
|
+
*/
|
|
67
|
+
constructor(processor: Processor, css: string, opts: ResultOptions)
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Returns the default string description of an object.
|
|
71
|
+
* Required to implement the Promise interface.
|
|
72
|
+
*/
|
|
73
|
+
get [Symbol.toStringTag](): string
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Returns a `Processor` instance, which will be used
|
|
77
|
+
* for CSS transformations.
|
|
78
|
+
*/
|
|
79
|
+
get processor(): Processor
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Options from the `Processor#process` call.
|
|
83
|
+
*/
|
|
84
|
+
get opts(): ResultOptions
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Processes input CSS through synchronous plugins, converts `Root`
|
|
88
|
+
* to a CSS string and returns `Result#css`.
|
|
89
|
+
*
|
|
90
|
+
* This property will only work with synchronous plugins.
|
|
91
|
+
* If the processor contains any asynchronous plugins
|
|
92
|
+
* it will throw an error.
|
|
93
|
+
*
|
|
94
|
+
* PostCSS runners should always use `LazyResult#then`.
|
|
95
|
+
*/
|
|
96
|
+
get css(): string
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* An alias for the `css` property. Use it with syntaxes
|
|
100
|
+
* that generate non-CSS output.
|
|
101
|
+
*
|
|
102
|
+
* This property will only work with synchronous plugins.
|
|
103
|
+
* If the processor contains any asynchronous plugins
|
|
104
|
+
* it will throw an error.
|
|
105
|
+
*
|
|
106
|
+
* PostCSS runners should always use `LazyResult#then`.
|
|
107
|
+
*/
|
|
108
|
+
get content(): string
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Processes input CSS through synchronous plugins
|
|
112
|
+
* and returns `Result#map`.
|
|
113
|
+
*
|
|
114
|
+
* This property will only work with synchronous plugins.
|
|
115
|
+
* If the processor contains any asynchronous plugins
|
|
116
|
+
* it will throw an error.
|
|
117
|
+
*
|
|
118
|
+
* PostCSS runners should always use `LazyResult#then`.
|
|
119
|
+
*/
|
|
120
|
+
get map(): SourceMap
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Processes input CSS through synchronous plugins
|
|
124
|
+
* and returns `Result#root`.
|
|
125
|
+
*
|
|
126
|
+
* This property will only work with synchronous plugins. If the processor
|
|
127
|
+
* contains any asynchronous plugins it will throw an error.
|
|
128
|
+
*
|
|
129
|
+
* PostCSS runners should always use `LazyResult#then`.
|
|
130
|
+
*/
|
|
131
|
+
get root(): Root
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Processes input CSS through synchronous plugins
|
|
135
|
+
* and returns `Result#messages`.
|
|
136
|
+
*
|
|
137
|
+
* This property will only work with synchronous plugins. If the processor
|
|
138
|
+
* contains any asynchronous plugins it will throw an error.
|
|
139
|
+
*
|
|
140
|
+
* PostCSS runners should always use `LazyResult#then`.
|
|
141
|
+
*/
|
|
142
|
+
get messages(): Message[]
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Processes input CSS through synchronous plugins
|
|
146
|
+
* and calls `Result#warnings`.
|
|
147
|
+
*
|
|
148
|
+
* @return Warnings from plugins.
|
|
149
|
+
*/
|
|
150
|
+
warnings(): Warning[]
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Alias for the `LazyResult#css` property.
|
|
154
|
+
*
|
|
155
|
+
* ```js
|
|
156
|
+
* lazy + '' === lazy.css
|
|
157
|
+
* ```
|
|
158
|
+
*
|
|
159
|
+
* @return Output CSS.
|
|
160
|
+
*/
|
|
161
|
+
toString(): string
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Run plugin in sync way and return `Result`.
|
|
165
|
+
*
|
|
166
|
+
* @return Result with output content.
|
|
167
|
+
*/
|
|
168
|
+
sync(): Result
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Run plugin in async way and return `Result`.
|
|
172
|
+
*
|
|
173
|
+
* @return Result with output content.
|
|
174
|
+
*/
|
|
175
|
+
async(): Promise<Result>
|
|
176
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export type List = {
|
|
2
|
+
/**
|
|
3
|
+
* Safely splits values.
|
|
4
|
+
*
|
|
5
|
+
* ```js
|
|
6
|
+
* Once (root, { list }) {
|
|
7
|
+
* list.split('1px calc(10% + 1px)', [' ', '\n', '\t']) //=> ['1px', 'calc(10% + 1px)']
|
|
8
|
+
* }
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* @param string separated values.
|
|
12
|
+
* @param separators array of separators.
|
|
13
|
+
* @param last boolean indicator.
|
|
14
|
+
* @return Split values.
|
|
15
|
+
*/
|
|
16
|
+
split(string: string, separators: string[], last: boolean): string[]
|
|
17
|
+
/**
|
|
18
|
+
* Safely splits space-separated values (such as those for `background`,
|
|
19
|
+
* `border-radius`, and other shorthand properties).
|
|
20
|
+
*
|
|
21
|
+
* ```js
|
|
22
|
+
* Once (root, { list }) {
|
|
23
|
+
* list.space('1px calc(10% + 1px)') //=> ['1px', 'calc(10% + 1px)']
|
|
24
|
+
* }
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* @param str Space-separated values.
|
|
28
|
+
* @return Split values.
|
|
29
|
+
*/
|
|
30
|
+
space(str: string): string[]
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Safely splits comma-separated values (such as those for `transition-*`
|
|
34
|
+
* and `background` properties).
|
|
35
|
+
*
|
|
36
|
+
* ```js
|
|
37
|
+
* Once (root, { list }) {
|
|
38
|
+
* list.comma('black, linear-gradient(white, black)')
|
|
39
|
+
* //=> ['black', 'linear-gradient(white, black)']
|
|
40
|
+
* }
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* @param str Comma-separated values.
|
|
44
|
+
* @return Split values.
|
|
45
|
+
*/
|
|
46
|
+
comma(str: string): string[]
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
declare const list: List
|
|
50
|
+
|
|
51
|
+
export default list
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import Result, { Message, ResultOptions } from './result.js'
|
|
2
|
+
import { SourceMap } from './postcss.js'
|
|
3
|
+
import Processor from './processor.js'
|
|
4
|
+
import Warning from './warning.js'
|
|
5
|
+
import Root from './root.js'
|
|
6
|
+
import LazyResult from './lazy-result.js'
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* A Promise proxy for the result of PostCSS transformations.
|
|
10
|
+
* This lazy result instance doesn't parse css unless `NoWorkResult#root` or `Result#root`
|
|
11
|
+
* are accessed. See the example below for details.
|
|
12
|
+
* A `NoWork` instance is returned by `Processor#process` ONLY when no plugins defined.
|
|
13
|
+
*
|
|
14
|
+
* ```js
|
|
15
|
+
* const noWorkResult = postcss().process(css) // No plugins are defined.
|
|
16
|
+
* // CSS is not parsed
|
|
17
|
+
* let root = noWorkResult.root // now css is parsed because we accessed the root
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export default class NoWorkResult implements LazyResult {
|
|
21
|
+
then: Promise<Result>['then']
|
|
22
|
+
catch: Promise<Result>['catch']
|
|
23
|
+
finally: Promise<Result>['finally']
|
|
24
|
+
constructor(processor: Processor, css: string, opts: ResultOptions)
|
|
25
|
+
get [Symbol.toStringTag](): string
|
|
26
|
+
get processor(): Processor
|
|
27
|
+
get opts(): ResultOptions
|
|
28
|
+
get css(): string
|
|
29
|
+
get content(): string
|
|
30
|
+
get map(): SourceMap
|
|
31
|
+
get root(): Root
|
|
32
|
+
get messages(): Message[]
|
|
33
|
+
warnings(): Warning[]
|
|
34
|
+
toString(): string
|
|
35
|
+
sync(): Result
|
|
36
|
+
async(): Promise<Result>
|
|
37
|
+
}
|