@jay-framework/compiler 0.6.7 → 0.6.8
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/index.d.ts +5 -6
- package/dist/index.js +367 -217
- package/package.json +10 -9
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as ts from 'typescript';
|
|
2
|
-
import ts__default, { SourceFile } from 'typescript';
|
|
3
1
|
import { WithValidations, RuntimeMode, CompilerSourceFile, GenericTypescriptSourceFile, MainRuntimeModes, GenerateTarget } from '@jay-framework/compiler-shared';
|
|
2
|
+
import * as ts from 'typescript';
|
|
4
3
|
import { JayHtmlSourceFile } from '@jay-framework/compiler-jay-html';
|
|
5
4
|
export { generateElementDefinitionFile } from '@jay-framework/compiler-jay-html';
|
|
6
5
|
|
|
@@ -31,7 +30,7 @@ interface CompiledPattern {
|
|
|
31
30
|
targetEnvForStatement: JayTargetEnv;
|
|
32
31
|
name: string;
|
|
33
32
|
}
|
|
34
|
-
declare function compileFunctionSplitPatternsBlock(patternFiles: SourceFile[]): WithValidations<CompiledPattern[]>;
|
|
33
|
+
declare function compileFunctionSplitPatternsBlock(patternFiles: ts.SourceFile[]): WithValidations<CompiledPattern[]>;
|
|
35
34
|
|
|
36
35
|
interface FunctionRepositoryCodeFragment {
|
|
37
36
|
handlerCode: string;
|
|
@@ -53,9 +52,9 @@ declare class FunctionRepositoryBuilder {
|
|
|
53
52
|
generateGlobalFile(): GeneratedFunctionRepository;
|
|
54
53
|
}
|
|
55
54
|
|
|
56
|
-
declare function transformComponentBridge(importerMode: RuntimeMode, patterns: CompiledPattern[], globalFunctionRepository: FunctionRepositoryBuilder): (context:
|
|
55
|
+
declare function transformComponentBridge(importerMode: RuntimeMode, patterns: CompiledPattern[], globalFunctionRepository: FunctionRepositoryBuilder): (context: ts.TransformationContext) => ts.Transformer<ts.SourceFile>;
|
|
57
56
|
|
|
58
|
-
declare function transformComponent(patterns: CompiledPattern[], globalFunctionRepository: FunctionRepositoryBuilder): (context:
|
|
57
|
+
declare function transformComponent(patterns: CompiledPattern[], globalFunctionRepository: FunctionRepositoryBuilder): (context: ts.TransformationContext) => ts.Transformer<ts.SourceFile>;
|
|
59
58
|
|
|
60
59
|
declare function extractImportDeclarations(sourceFile: ts.SourceFile): ts.ImportDeclaration[];
|
|
61
60
|
declare function extractImportedModules(sourceFile: ts.SourceFile): string[];
|
|
@@ -70,7 +69,7 @@ declare function parseGenericTypescriptFile(filePath: string, code: string): Wit
|
|
|
70
69
|
|
|
71
70
|
declare function createTsSourceFileFromSource(filePath: string, sourceCode: string, scriptKind?: ts.ScriptKind): ts.SourceFile;
|
|
72
71
|
|
|
73
|
-
declare function transformComponentImports(needsHandler$: boolean, needsFunc$: boolean, needsFuncGlobal$: boolean, transformedSourceFile:
|
|
72
|
+
declare function transformComponentImports(needsHandler$: boolean, needsFunc$: boolean, needsFuncGlobal$: boolean, transformedSourceFile: ts.SourceFile, context: ts.TransformationContext, factory: ts.NodeFactory, sourceFile: ts.SourceFile): ts.SourceFile;
|
|
74
73
|
|
|
75
74
|
declare function generateElementFile(jayFile: JayHtmlSourceFile, importerMode: MainRuntimeModes, generateTarget?: GenerateTarget): WithValidations<string>;
|
|
76
75
|
|