@vue.ts/complex-types 0.5.0 → 1.0.0-beta.1
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 +21 -21
- package/README.md +35 -16
- package/dist/astro.d.ts +8 -10
- package/dist/astro.js +14 -0
- package/dist/esbuild.d.ts +7 -8
- package/dist/esbuild.js +8 -0
- package/dist/farm.d.ts +8 -0
- package/dist/farm.js +8 -0
- package/dist/index.d.ts +8 -8
- package/dist/index.js +3 -0
- package/dist/nuxt.d.ts +7 -8
- package/dist/nuxt.js +20 -0
- package/dist/rolldown.d.ts +8 -0
- package/dist/rolldown.js +8 -0
- package/dist/rollup.d.ts +7 -8
- package/dist/rollup.js +8 -0
- package/dist/rspack.d.ts +5 -6
- package/dist/rspack.js +8 -0
- package/dist/src-CI8-WIu4.js +354 -0
- package/dist/types-CFmCIAvs.d.ts +51 -0
- package/dist/types-u_Hr5uXA.d.ts +1 -0
- package/dist/types.d.ts +3 -30
- package/dist/types.js +0 -0
- package/dist/vite-Dyi1m2wg.js +8 -0
- package/dist/vite.d.ts +7 -8
- package/dist/vite.js +4 -0
- package/dist/webpack-CFfuQfGw.js +8 -0
- package/dist/webpack.d.ts +7 -8
- package/dist/webpack.js +4 -0
- package/package.json +67 -53
- package/dist/astro.cjs +0 -22
- package/dist/astro.d.cts +0 -13
- package/dist/astro.d.mts +0 -13
- package/dist/astro.mjs +0 -20
- package/dist/esbuild.cjs +0 -13
- package/dist/esbuild.d.cts +0 -9
- package/dist/esbuild.d.mts +0 -9
- package/dist/esbuild.mjs +0 -11
- package/dist/index.cjs +0 -228
- package/dist/index.d.cts +0 -9
- package/dist/index.d.mts +0 -9
- package/dist/index.mjs +0 -221
- package/dist/nuxt.cjs +0 -35
- package/dist/nuxt.d.cts +0 -9
- package/dist/nuxt.d.mts +0 -9
- package/dist/nuxt.mjs +0 -33
- package/dist/rollup.cjs +0 -13
- package/dist/rollup.d.cts +0 -9
- package/dist/rollup.d.mts +0 -9
- package/dist/rollup.mjs +0 -11
- package/dist/rspack.cjs +0 -13
- package/dist/rspack.d.cts +0 -8
- package/dist/rspack.d.mts +0 -8
- package/dist/rspack.mjs +0 -11
- package/dist/types.cjs +0 -2
- package/dist/types.d.cts +0 -30
- package/dist/types.d.mts +0 -30
- package/dist/types.mjs +0 -1
- package/dist/vite.cjs +0 -13
- package/dist/vite.d.cts +0 -9
- package/dist/vite.d.mts +0 -9
- package/dist/vite.mjs +0 -11
- package/dist/webpack.cjs +0 -13
- package/dist/webpack.d.cts +0 -9
- package/dist/webpack.d.mts +0 -9
- package/dist/webpack.mjs +0 -11
package/dist/rollup.cjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const index = require('./index.cjs');
|
|
4
|
-
require('@vue.ts/common');
|
|
5
|
-
require('@vue.ts/language');
|
|
6
|
-
require('unplugin');
|
|
7
|
-
require('magic-string');
|
|
8
|
-
require('typescript');
|
|
9
|
-
require('node:path');
|
|
10
|
-
|
|
11
|
-
const rollup = index.rollup;
|
|
12
|
-
|
|
13
|
-
module.exports = rollup;
|
package/dist/rollup.d.cts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as rollup from 'rollup';
|
|
2
|
-
import { Options } from './types.cjs';
|
|
3
|
-
import '@vue.ts/common';
|
|
4
|
-
import 'magic-string';
|
|
5
|
-
import 'typescript';
|
|
6
|
-
|
|
7
|
-
declare const _default: (options?: Options | undefined) => rollup.Plugin<any> | rollup.Plugin<any>[];
|
|
8
|
-
|
|
9
|
-
export { _default as default };
|
package/dist/rollup.d.mts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as rollup from 'rollup';
|
|
2
|
-
import { Options } from './types.mjs';
|
|
3
|
-
import '@vue.ts/common';
|
|
4
|
-
import 'magic-string';
|
|
5
|
-
import 'typescript';
|
|
6
|
-
|
|
7
|
-
declare const _default: (options?: Options | undefined) => rollup.Plugin<any> | rollup.Plugin<any>[];
|
|
8
|
-
|
|
9
|
-
export { _default as default };
|
package/dist/rollup.mjs
DELETED
package/dist/rspack.cjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const index = require('./index.cjs');
|
|
4
|
-
require('@vue.ts/common');
|
|
5
|
-
require('@vue.ts/language');
|
|
6
|
-
require('unplugin');
|
|
7
|
-
require('magic-string');
|
|
8
|
-
require('typescript');
|
|
9
|
-
require('node:path');
|
|
10
|
-
|
|
11
|
-
const rspack = index.rspack;
|
|
12
|
-
|
|
13
|
-
module.exports = rspack;
|
package/dist/rspack.d.cts
DELETED
package/dist/rspack.d.mts
DELETED
package/dist/rspack.mjs
DELETED
package/dist/types.cjs
DELETED
package/dist/types.d.cts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { BaseOptions } from '@vue.ts/common';
|
|
2
|
-
import MagicString from 'magic-string';
|
|
3
|
-
import ts from 'typescript';
|
|
4
|
-
|
|
5
|
-
declare class Printer {
|
|
6
|
-
private checker;
|
|
7
|
-
constructor(checker: ts.TypeChecker);
|
|
8
|
-
private getBaseType;
|
|
9
|
-
private printIntersectionTypeNode;
|
|
10
|
-
private printUnionTypeNode;
|
|
11
|
-
private printTypeLiteralNode;
|
|
12
|
-
private printByType;
|
|
13
|
-
printTypeArg(node: ts.Node): string;
|
|
14
|
-
private printEventsByCallSignatures;
|
|
15
|
-
private printEventsByMembers;
|
|
16
|
-
printEventsRuntimeArg(node: ts.Node): string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
type ValidTransforms = "defineEmits" | "defineProps";
|
|
20
|
-
type Options = {
|
|
21
|
-
tsconfigPath?: string;
|
|
22
|
-
} & {
|
|
23
|
-
[Transform in ValidTransforms]?: boolean;
|
|
24
|
-
} & BaseOptions;
|
|
25
|
-
type ResolvedOptions = Required<Options>;
|
|
26
|
-
type TransformOptions = Pick<ResolvedOptions, ValidTransforms>;
|
|
27
|
-
type Transformer = (printer: Printer, s: MagicString, id: string) => void;
|
|
28
|
-
type Transformers = [ValidTransforms, Transformer][];
|
|
29
|
-
|
|
30
|
-
export type { Options, ResolvedOptions, TransformOptions, Transformer, Transformers, ValidTransforms };
|
package/dist/types.d.mts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { BaseOptions } from '@vue.ts/common';
|
|
2
|
-
import MagicString from 'magic-string';
|
|
3
|
-
import ts from 'typescript';
|
|
4
|
-
|
|
5
|
-
declare class Printer {
|
|
6
|
-
private checker;
|
|
7
|
-
constructor(checker: ts.TypeChecker);
|
|
8
|
-
private getBaseType;
|
|
9
|
-
private printIntersectionTypeNode;
|
|
10
|
-
private printUnionTypeNode;
|
|
11
|
-
private printTypeLiteralNode;
|
|
12
|
-
private printByType;
|
|
13
|
-
printTypeArg(node: ts.Node): string;
|
|
14
|
-
private printEventsByCallSignatures;
|
|
15
|
-
private printEventsByMembers;
|
|
16
|
-
printEventsRuntimeArg(node: ts.Node): string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
type ValidTransforms = "defineEmits" | "defineProps";
|
|
20
|
-
type Options = {
|
|
21
|
-
tsconfigPath?: string;
|
|
22
|
-
} & {
|
|
23
|
-
[Transform in ValidTransforms]?: boolean;
|
|
24
|
-
} & BaseOptions;
|
|
25
|
-
type ResolvedOptions = Required<Options>;
|
|
26
|
-
type TransformOptions = Pick<ResolvedOptions, ValidTransforms>;
|
|
27
|
-
type Transformer = (printer: Printer, s: MagicString, id: string) => void;
|
|
28
|
-
type Transformers = [ValidTransforms, Transformer][];
|
|
29
|
-
|
|
30
|
-
export type { Options, ResolvedOptions, TransformOptions, Transformer, Transformers, ValidTransforms };
|
package/dist/types.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/dist/vite.cjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const index = require('./index.cjs');
|
|
4
|
-
require('@vue.ts/common');
|
|
5
|
-
require('@vue.ts/language');
|
|
6
|
-
require('unplugin');
|
|
7
|
-
require('magic-string');
|
|
8
|
-
require('typescript');
|
|
9
|
-
require('node:path');
|
|
10
|
-
|
|
11
|
-
const VitePlugin = index.vite;
|
|
12
|
-
|
|
13
|
-
module.exports = VitePlugin;
|
package/dist/vite.d.cts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as vite from 'vite';
|
|
2
|
-
import { Options } from './types.cjs';
|
|
3
|
-
import '@vue.ts/common';
|
|
4
|
-
import 'magic-string';
|
|
5
|
-
import 'typescript';
|
|
6
|
-
|
|
7
|
-
declare const _default: (options?: Options | undefined) => vite.Plugin<any> | vite.Plugin<any>[];
|
|
8
|
-
|
|
9
|
-
export { _default as default };
|
package/dist/vite.d.mts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as vite from 'vite';
|
|
2
|
-
import { Options } from './types.mjs';
|
|
3
|
-
import '@vue.ts/common';
|
|
4
|
-
import 'magic-string';
|
|
5
|
-
import 'typescript';
|
|
6
|
-
|
|
7
|
-
declare const _default: (options?: Options | undefined) => vite.Plugin<any> | vite.Plugin<any>[];
|
|
8
|
-
|
|
9
|
-
export { _default as default };
|
package/dist/vite.mjs
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import unplugin from './index.mjs';
|
|
2
|
-
import '@vue.ts/common';
|
|
3
|
-
import '@vue.ts/language';
|
|
4
|
-
import 'unplugin';
|
|
5
|
-
import 'magic-string';
|
|
6
|
-
import 'typescript';
|
|
7
|
-
import 'node:path';
|
|
8
|
-
|
|
9
|
-
const VitePlugin = unplugin.vite;
|
|
10
|
-
|
|
11
|
-
export { VitePlugin as default };
|
package/dist/webpack.cjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const index = require('./index.cjs');
|
|
4
|
-
require('@vue.ts/common');
|
|
5
|
-
require('@vue.ts/language');
|
|
6
|
-
require('unplugin');
|
|
7
|
-
require('magic-string');
|
|
8
|
-
require('typescript');
|
|
9
|
-
require('node:path');
|
|
10
|
-
|
|
11
|
-
const WebpackPlugin = index.webpack;
|
|
12
|
-
|
|
13
|
-
module.exports = WebpackPlugin;
|
package/dist/webpack.d.cts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { WebpackPluginInstance } from 'unplugin';
|
|
2
|
-
import { Options } from './types.cjs';
|
|
3
|
-
import '@vue.ts/common';
|
|
4
|
-
import 'magic-string';
|
|
5
|
-
import 'typescript';
|
|
6
|
-
|
|
7
|
-
declare const _default: (options: Options) => WebpackPluginInstance;
|
|
8
|
-
|
|
9
|
-
export { _default as default };
|
package/dist/webpack.d.mts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { WebpackPluginInstance } from 'unplugin';
|
|
2
|
-
import { Options } from './types.mjs';
|
|
3
|
-
import '@vue.ts/common';
|
|
4
|
-
import 'magic-string';
|
|
5
|
-
import 'typescript';
|
|
6
|
-
|
|
7
|
-
declare const _default: (options: Options) => WebpackPluginInstance;
|
|
8
|
-
|
|
9
|
-
export { _default as default };
|
package/dist/webpack.mjs
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import unplugin from './index.mjs';
|
|
2
|
-
import '@vue.ts/common';
|
|
3
|
-
import '@vue.ts/language';
|
|
4
|
-
import 'unplugin';
|
|
5
|
-
import 'magic-string';
|
|
6
|
-
import 'typescript';
|
|
7
|
-
import 'node:path';
|
|
8
|
-
|
|
9
|
-
const WebpackPlugin = unplugin.webpack;
|
|
10
|
-
|
|
11
|
-
export { WebpackPlugin as default };
|