Merge pull request #623 from quantified-uncertainty/move-declerations-to-type
Change import to import type when needed
This commit is contained in:
commit
55e59923a1
|
@ -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,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import * as _ from "lodash";
|
import * as _ from "lodash";
|
||||||
import {
|
import type {
|
||||||
expressionValue,
|
expressionValue,
|
||||||
mixedShape,
|
mixedShape,
|
||||||
sampleSetDist,
|
sampleSetDist,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user