@powerlines/deepkit 0.6.62 → 0.6.64

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.
@@ -1,7 +1,21 @@
1
1
  import { OnLoadOptions, Plugin } from 'esbuild';
2
2
  import { Context } from 'powerlines/types/context';
3
- import { ReflectionConfig } from '@deepkit/type-compiler/config';
3
+ import { Mode, Level } from '@deepkit/type-compiler/config';
4
4
 
5
+ interface ReflectionConfig {
6
+ /**
7
+ * Allows to exclude type definitions/TS files from being included in the type compilation step. When a global .d.ts is matched, their types won't be embedded (useful to exclude DOM for example)
8
+ */
9
+ exclude?: string[];
10
+ /**
11
+ * Either a boolean indication general reflection mode, or a list of globs to match against.
12
+ */
13
+ reflection?: string[] | Mode;
14
+ /**
15
+ * Defines the level of reflection to be used during the transpilation process.
16
+ */
17
+ reflectionLevel?: Level;
18
+ }
5
19
  interface ESBuildPluginOptions extends Partial<ReflectionConfig> {
6
20
  onLoad?: Partial<OnLoadOptions>;
7
21
  }
@@ -13,6 +27,7 @@ interface ESBuildPluginOptions extends Partial<ReflectionConfig> {
13
27
  * @returns An esbuild plugin instance.
14
28
  */
15
29
  declare const esbuildPlugin: (context: Context, options?: ESBuildPluginOptions) => Plugin;
30
+ declare type __ΩReflectionConfig = any[];
16
31
  declare type __ΩESBuildPluginOptions = any[];
17
32
 
18
- export { type ESBuildPluginOptions, type __ΩESBuildPluginOptions, esbuildPlugin };
33
+ export { type ESBuildPluginOptions, type ReflectionConfig, type __ΩESBuildPluginOptions, type __ΩReflectionConfig, esbuildPlugin };
@@ -1,7 +1,21 @@
1
1
  import { OnLoadOptions, Plugin } from 'esbuild';
2
2
  import { Context } from 'powerlines/types/context';
3
- import { ReflectionConfig } from '@deepkit/type-compiler/config';
3
+ import { Mode, Level } from '@deepkit/type-compiler/config';
4
4
 
5
+ interface ReflectionConfig {
6
+ /**
7
+ * Allows to exclude type definitions/TS files from being included in the type compilation step. When a global .d.ts is matched, their types won't be embedded (useful to exclude DOM for example)
8
+ */
9
+ exclude?: string[];
10
+ /**
11
+ * Either a boolean indication general reflection mode, or a list of globs to match against.
12
+ */
13
+ reflection?: string[] | Mode;
14
+ /**
15
+ * Defines the level of reflection to be used during the transpilation process.
16
+ */
17
+ reflectionLevel?: Level;
18
+ }
5
19
  interface ESBuildPluginOptions extends Partial<ReflectionConfig> {
6
20
  onLoad?: Partial<OnLoadOptions>;
7
21
  }
@@ -13,6 +27,7 @@ interface ESBuildPluginOptions extends Partial<ReflectionConfig> {
13
27
  * @returns An esbuild plugin instance.
14
28
  */
15
29
  declare const esbuildPlugin: (context: Context, options?: ESBuildPluginOptions) => Plugin;
30
+ declare type __ΩReflectionConfig = any[];
16
31
  declare type __ΩESBuildPluginOptions = any[];
17
32
 
18
- export { type ESBuildPluginOptions, type __ΩESBuildPluginOptions, esbuildPlugin };
33
+ export { type ESBuildPluginOptions, type ReflectionConfig, type __ΩESBuildPluginOptions, type __ΩReflectionConfig, esbuildPlugin };
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { WithIndexAccessOrigin, WithTagsReflection, __ΩWithIndexAccessOrigin, __ΩWithTagsReflection, convertFromCapnp, convertFromCapnpArray, convertFromCapnpBase, convertFromCapnpClassType, convertFromCapnpDefault, convertFromCapnpEnum, convertFromCapnpFunction, convertFromCapnpIndexAccessOrigin, convertFromCapnpInfer, convertFromCapnpIntersection, convertFromCapnpLiteral, convertFromCapnpMethodSignature, convertFromCapnpObjectLiteral, convertFromCapnpOther, convertFromCapnpParameter, convertFromCapnpProperty, convertFromCapnpPropertySignature, convertFromCapnpSimple, convertFromCapnpTagsReflection, convertFromCapnpTuple, convertFromCapnpTupleMember, convertFromCapnpUnion, convertToCapnp, convertToCapnpArray, convertToCapnpBase, convertToCapnpClassType, convertToCapnpDefault, convertToCapnpEnum, convertToCapnpFunction, convertToCapnpIndexAccessOrigin, convertToCapnpInfer, convertToCapnpIntersection, convertToCapnpLiteral, convertToCapnpMethod, convertToCapnpMethodSignature, convertToCapnpObjectLiteral, convertToCapnpOther, convertToCapnpParameter, convertToCapnpProperty, convertToCapnpPropertySignature, convertToCapnpSimple, convertToCapnpTagsReflection, convertToCapnpTuple, convertToCapnpTupleMember, convertToCapnpUnion } from './capnp.cjs';
2
- export { ESBuildPluginOptions, __ΩESBuildPluginOptions, esbuildPlugin } from './esbuild-plugin.cjs';
2
+ export { ESBuildPluginOptions, ReflectionConfig, __ΩESBuildPluginOptions, __ΩReflectionConfig, esbuildPlugin } from './esbuild-plugin.cjs';
3
3
  export { reflectType } from './reflect-type.cjs';
4
4
  export { getReflectionsPath } from './resolve-reflections.cjs';
5
5
  export { rolldownPlugin } from './rolldown-plugin.cjs';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { WithIndexAccessOrigin, WithTagsReflection, __ΩWithIndexAccessOrigin, __ΩWithTagsReflection, convertFromCapnp, convertFromCapnpArray, convertFromCapnpBase, convertFromCapnpClassType, convertFromCapnpDefault, convertFromCapnpEnum, convertFromCapnpFunction, convertFromCapnpIndexAccessOrigin, convertFromCapnpInfer, convertFromCapnpIntersection, convertFromCapnpLiteral, convertFromCapnpMethodSignature, convertFromCapnpObjectLiteral, convertFromCapnpOther, convertFromCapnpParameter, convertFromCapnpProperty, convertFromCapnpPropertySignature, convertFromCapnpSimple, convertFromCapnpTagsReflection, convertFromCapnpTuple, convertFromCapnpTupleMember, convertFromCapnpUnion, convertToCapnp, convertToCapnpArray, convertToCapnpBase, convertToCapnpClassType, convertToCapnpDefault, convertToCapnpEnum, convertToCapnpFunction, convertToCapnpIndexAccessOrigin, convertToCapnpInfer, convertToCapnpIntersection, convertToCapnpLiteral, convertToCapnpMethod, convertToCapnpMethodSignature, convertToCapnpObjectLiteral, convertToCapnpOther, convertToCapnpParameter, convertToCapnpProperty, convertToCapnpPropertySignature, convertToCapnpSimple, convertToCapnpTagsReflection, convertToCapnpTuple, convertToCapnpTupleMember, convertToCapnpUnion } from './capnp.js';
2
- export { ESBuildPluginOptions, __ΩESBuildPluginOptions, esbuildPlugin } from './esbuild-plugin.js';
2
+ export { ESBuildPluginOptions, ReflectionConfig, __ΩESBuildPluginOptions, __ΩReflectionConfig, esbuildPlugin } from './esbuild-plugin.js';
3
3
  export { reflectType } from './reflect-type.js';
4
4
  export { getReflectionsPath } from './resolve-reflections.js';
5
5
  export { rolldownPlugin } from './rolldown-plugin.js';