@kosmojs/lib 0.4.4 → 0.5.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.
@@ -0,0 +1,65 @@
1
+ export declare const generateTsconfig: ({ dependencies, devDependencies, }: Record<"dependencies" | "devDependencies", Record<string, string>>, sourceFolder?: string) => {
2
+ include: string[];
3
+ compilerOptions: {
4
+ moduleResolution: string;
5
+ module: string;
6
+ target: string;
7
+ strict: boolean;
8
+ exactOptionalPropertyTypes: boolean;
9
+ noImplicitAny: boolean;
10
+ noImplicitThis: boolean;
11
+ noImplicitOverride: boolean;
12
+ noImplicitReturns: boolean;
13
+ noUnusedLocals: boolean;
14
+ noUnusedParameters: boolean;
15
+ allowArbitraryExtensions: boolean;
16
+ allowImportingTsExtensions: boolean;
17
+ allowUnreachableCode: boolean;
18
+ allowUnusedLabels: boolean;
19
+ useUnknownInCatchVariables: boolean;
20
+ noFallthroughCasesInSwitch: boolean;
21
+ noUncheckedSideEffectImports: boolean;
22
+ resolveJsonModule: boolean;
23
+ esModuleInterop: boolean;
24
+ verbatimModuleSyntax: boolean;
25
+ skipLibCheck: boolean;
26
+ noEmit: boolean;
27
+ types: string[];
28
+ paths: {
29
+ [x: string]: string[];
30
+ };
31
+ };
32
+ exclude?: never;
33
+ } | {
34
+ include?: never;
35
+ exclude: string[];
36
+ compilerOptions: {
37
+ types: string[];
38
+ moduleResolution: string;
39
+ module: string;
40
+ target: string;
41
+ strict: boolean;
42
+ exactOptionalPropertyTypes: boolean;
43
+ noImplicitAny: boolean;
44
+ noImplicitThis: boolean;
45
+ noImplicitOverride: boolean;
46
+ noImplicitReturns: boolean;
47
+ noUnusedLocals: boolean;
48
+ noUnusedParameters: boolean;
49
+ allowArbitraryExtensions: boolean;
50
+ allowImportingTsExtensions: boolean;
51
+ allowUnreachableCode: boolean;
52
+ allowUnusedLabels: boolean;
53
+ useUnknownInCatchVariables: boolean;
54
+ noFallthroughCasesInSwitch: boolean;
55
+ noUncheckedSideEffectImports: boolean;
56
+ resolveJsonModule: boolean;
57
+ esModuleInterop: boolean;
58
+ verbatimModuleSyntax: boolean;
59
+ skipLibCheck: boolean;
60
+ noEmit: boolean;
61
+ paths: {
62
+ [x: string]: string[];
63
+ };
64
+ };
65
+ };
package/pkg/vite.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Plugin } from "vite";
2
- import { type ProjectSettings, type SourceFolder, type VirtualModule } from "@kosmojs/core";
2
+ import { type ProjectSettings, type SourceFolder } from "@kosmojs/core";
3
3
  /**
4
4
  * Resolves Kosmo's generated import prefixes to absolute file paths.
5
5
  *
@@ -68,7 +68,7 @@ declare const nodePrefix: () => Plugin;
68
68
  *
69
69
  * Generators declare their modules via `factory.virtualModules()`.
70
70
  * */
71
- export declare const virtualModules: (modules: Array<VirtualModule>, { kind, command, }: {
71
+ export declare const virtualModules: (sourceFolder: SourceFolder, { kind, command, }: {
72
72
  kind: "csr" | "ssr";
73
73
  command: ProjectSettings["command"];
74
74
  }) => Plugin;