Merge pull request #623 from quantified-uncertainty/move-declerations-to-type

Change import to import type when needed
This commit is contained in:
Ozzie Gooen 2022-05-31 04:58:28 -07:00 committed by GitHub
commit 55e59923a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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,