Skip to content

Commit b2f8255

Browse files
author
nicosammito
committed
feat: streamline imports in getFlowValidation by removing unused types
1 parent 5776783 commit b2f8255

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

src/validation/getFlowValidation.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
import {flattenDiagnosticMessageText} from "typescript";
2-
import {
3-
DataType,
4-
Flow,
5-
FunctionDefinition,
6-
NodeFunction,
7-
NodeFunctionIdWrapper,
8-
NodeParameter,
9-
ReferenceValue
10-
} from "@code0-tech/sagittarius-graphql-types";
11-
import {createCompilerHost, generateFlowSourceCode, getSharedTypeDeclarations, ValidationResult} from "../utils";
12-
13-
const sanitizeId = (id: string) => id.replace(/[^a-zA-Z0-9]/g, '_');
2+
import {DataType, Flow, FunctionDefinition, NodeFunction} from "@code0-tech/sagittarius-graphql-types";
3+
import {createCompilerHost, generateFlowSourceCode, ValidationResult} from "../utils";
144

155
/**
166
* Validates a flow by generating virtual TypeScript code and running it through the TS compiler.

0 commit comments

Comments
 (0)