Change import to import type when needed

This commit is contained in:
Sam Nolan 2022-05-31 04:16:04 +00:00
parent fd96759ec9
commit 23bc41d61c
2 changed files with 11 additions and 15 deletions

View File

@ -1,18 +1,22 @@
import * as _ from "lodash"; import * as _ from "lodash";
import { import type {
environment, environment,
expressionValue,
externalBindings,
errorValue,
} from "../rescript/TypescriptInterface.gen";
import {
defaultEnvironment, defaultEnvironment,
evaluatePartialUsingExternalBindings, evaluatePartialUsingExternalBindings,
evaluateUsingOptions, evaluateUsingOptions,
externalBindings,
expressionValue,
errorValue,
foreignFunctionInterface, foreignFunctionInterface,
} from "../rescript/TypescriptInterface.gen"; } from "../rescript/TypescriptInterface.gen";
export { export {
makeSampleSetDist, makeSampleSetDist,
errorValueToString, errorValueToString,
distributionErrorToString, distributionErrorToString,
} from "../rescript/TypescriptInterface.gen";
export type {
distributionError, distributionError,
declarationArg, declarationArg,
declaration, declaration,
@ -30,16 +34,8 @@ import {
import { result, resultMap, tag, tagged } from "./types"; import { result, resultMap, tag, tagged } from "./types";
import { Distribution, shape } from "./distribution"; import { Distribution, shape } from "./distribution";
export { export { Distribution, resultMap, defaultEnvironment };
Distribution, export type { result, shape, environment, lambdaValue, squiggleExpression };
squiggleExpression,
result,
resultMap,
shape,
lambdaValue,
environment,
defaultEnvironment,
};
export let defaultSamplingInputs: environment = { export let defaultSamplingInputs: environment = {
sampleCount: 10000, sampleCount: 10000,

View File

@ -1,5 +1,5 @@
import * as _ from "lodash"; import * as _ from "lodash";
import { import type {
expressionValue, expressionValue,
mixedShape, mixedShape,
sampleSetDist, sampleSetDist,