index.ts
This commit is contained in:
parent
610fa0227e
commit
3c1a49e44d
|
@ -1,14 +1,32 @@
|
||||||
|
/* Some of the types have moved to ForTS__Types.
|
||||||
|
Needs to be reimported here if necessary and distribution related
|
||||||
|
|
||||||
|
We only need distribution related extras for back compatibility. Umur
|
||||||
|
|
||||||
|
Instead of a global function namespace we should use modules under ForTS directly maybe renaming them for ease.
|
||||||
|
|
||||||
|
.e.g. Project.run(project)
|
||||||
|
.e.g. Distribution.makeSampleSetDist
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
import * as _ from "lodash";
|
import * as _ from "lodash";
|
||||||
import type {
|
import type {
|
||||||
environment,
|
environment,
|
||||||
|
expressionValue,
|
||||||
externalBindings,
|
externalBindings,
|
||||||
errorValue,
|
errorValue,
|
||||||
} from "../rescript/TypescriptInterface.gen";
|
} from "../rescript/TypescriptInterface.gen";
|
||||||
import {
|
import {
|
||||||
defaultEnvironment,
|
defaultEnvironment,
|
||||||
|
evaluatePartialUsingExternalBindings,
|
||||||
|
evaluateUsingOptions,
|
||||||
|
foreignFunctionInterface,
|
||||||
} from "../rescript/TypescriptInterface.gen";
|
} from "../rescript/TypescriptInterface.gen";
|
||||||
export {
|
export {
|
||||||
makeSampleSetDist,
|
makeSampleSetDist,
|
||||||
|
errorValueToString,
|
||||||
distributionErrorToString,
|
distributionErrorToString,
|
||||||
} from "../rescript/TypescriptInterface.gen";
|
} from "../rescript/TypescriptInterface.gen";
|
||||||
export type {
|
export type {
|
||||||
|
@ -18,7 +36,12 @@ export type {
|
||||||
} from "../rescript/TypescriptInterface.gen";
|
} from "../rescript/TypescriptInterface.gen";
|
||||||
export type { errorValue, externalBindings as bindings, jsImports };
|
export type { errorValue, externalBindings as bindings, jsImports };
|
||||||
import {
|
import {
|
||||||
|
jsValueToBinding,
|
||||||
|
jsValueToExpressionValue,
|
||||||
|
jsValue,
|
||||||
|
rescriptExport,
|
||||||
squiggleExpression,
|
squiggleExpression,
|
||||||
|
convertRawToTypescript,
|
||||||
lambdaValue,
|
lambdaValue,
|
||||||
} from "./rescript_interop";
|
} from "./rescript_interop";
|
||||||
import { result, resultMap, tag, tagged } from "./types";
|
import { result, resultMap, tag, tagged } from "./types";
|
||||||
|
@ -35,9 +58,8 @@ export let defaultSamplingInputs: environment = {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/*
|
/* Umur: All the functions below are invalid. ForTS_Reducer project is the new way to do this. */
|
||||||
All those functions below are invalid since the introduction of ReducerProject
|
|
||||||
*/
|
|
||||||
// export function run(
|
// export function run(
|
||||||
// squiggleString: string,
|
// squiggleString: string,
|
||||||
// bindings?: externalBindings,
|
// bindings?: externalBindings,
|
||||||
|
@ -72,7 +94,6 @@ export let defaultSamplingInputs: environment = {
|
||||||
// );
|
// );
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// jsValueToExpressionValue is invalid
|
|
||||||
// export function runForeign(
|
// export function runForeign(
|
||||||
// fn: lambdaValue,
|
// fn: lambdaValue,
|
||||||
// args: jsValue[],
|
// args: jsValue[],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user