Skip to content

Commit

Permalink
fix: exported types to include parsed flow for consumers
Browse files Browse the repository at this point in the history
  • Loading branch information
junners committed Feb 2, 2025
1 parent a6bb052 commit 3a2afa7
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 41 deletions.
41 changes: 40 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,40 @@
export * from "./main/core";
import { Flow } from "./main/models/Flow";
import { FlowAttribute } from "./main/models/FlowAttribute";
import { FlowElement } from "./main/models/FlowElement";
import { FlowNode } from "./main/models/FlowNode";
import { FlowResource } from "./main/models/FlowResource";
import { ResultDetails } from "./main/models/ResultDetails";
import { RuleResult } from "./main/models/RuleResult";
import { ScanResult } from "./main/models/ScanResult";
import { FlowType } from "./main/models/FlowType";
import { FlowVariable } from "./main/models/FlowVariable";
import { ParsedFlow } from "./main/models/ParsedFlow";

import { Compiler } from "./main/libs/Compiler";
import { fix } from "./main/libs/FixFlows";
import { getRules } from "./main/libs/GetRuleDefinitions";
import { parse } from "./main/libs/ParseFlows";
import { scan } from "./main/libs/ScanFlows";

import type { IRulesConfig } from "./main/interfaces/IRulesConfig";
import type { IRuleDefinition } from "./main/interfaces/IRuleDefinition";

export {
Flow,
FlowAttribute,
FlowElement,
FlowNode,
FlowResource,
FlowType,
FlowVariable,
ScanResult,
RuleResult,
ResultDetails,
Compiler,
ParsedFlow,
getRules,
parse,
scan,
fix,
};
export type { IRuleDefinition, IRulesConfig };
38 changes: 0 additions & 38 deletions src/main/core.ts

This file was deleted.

4 changes: 2 additions & 2 deletions tsconfig.types.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"module": "CommonJS",
"module": "ES6",
"target": "es6",
"resolveJsonModule": true,
"moduleResolution": "node",
"outDir": "types",
"lib": ["es2020.string", "es6"],
"experimentalDecorators": true,
Expand Down

0 comments on commit 3a2afa7

Please sign in to comment.