defuss-astro 1.0.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.
@@ -0,0 +1,31 @@
1
+ import { AstroIntegration, ContainerRenderer } from 'astro';
2
+
3
+ /**
4
+ * A valid `picomatch` glob pattern, or array of patterns.
5
+ */
6
+ type FilterPattern = ReadonlyArray<string | RegExp> | string | RegExp | null;
7
+
8
+ type BabelOptions = Omit<any, "ast" | "filename" | "root" | "sourceFileName" | "sourceMaps" | "inputSourceMap">;
9
+ interface SpringtypePluginOptions {
10
+ /**
11
+ * RegExp or glob to match files to be transformed
12
+ */
13
+ include?: FilterPattern;
14
+ /**
15
+ * RegExp or glob to match files to NOT be transformed
16
+ */
17
+ exclude?: FilterPattern;
18
+ /**
19
+ * Babel configuration applied in both dev and prod.
20
+ */
21
+ babel?: BabelOptions;
22
+ }
23
+ interface Options extends Pick<SpringtypePluginOptions, 'include' | 'exclude'> {
24
+ compat?: boolean;
25
+ devtools?: boolean;
26
+ }
27
+
28
+ declare const getContainerRenderer: () => ContainerRenderer;
29
+ declare function export_default({ include, exclude }?: Options): AstroIntegration;
30
+
31
+ export { export_default as default, getContainerRenderer };
@@ -0,0 +1,31 @@
1
+ import { AstroIntegration, ContainerRenderer } from 'astro';
2
+
3
+ /**
4
+ * A valid `picomatch` glob pattern, or array of patterns.
5
+ */
6
+ type FilterPattern = ReadonlyArray<string | RegExp> | string | RegExp | null;
7
+
8
+ type BabelOptions = Omit<any, "ast" | "filename" | "root" | "sourceFileName" | "sourceMaps" | "inputSourceMap">;
9
+ interface SpringtypePluginOptions {
10
+ /**
11
+ * RegExp or glob to match files to be transformed
12
+ */
13
+ include?: FilterPattern;
14
+ /**
15
+ * RegExp or glob to match files to NOT be transformed
16
+ */
17
+ exclude?: FilterPattern;
18
+ /**
19
+ * Babel configuration applied in both dev and prod.
20
+ */
21
+ babel?: BabelOptions;
22
+ }
23
+ interface Options extends Pick<SpringtypePluginOptions, 'include' | 'exclude'> {
24
+ compat?: boolean;
25
+ devtools?: boolean;
26
+ }
27
+
28
+ declare const getContainerRenderer: () => ContainerRenderer;
29
+ declare function export_default({ include, exclude }?: Options): AstroIntegration;
30
+
31
+ export { export_default as default, getContainerRenderer };