TypescriptInterface functions

This commit is contained in:
Umur Ozkul 2022-08-19 21:58:06 +02:00
parent d7ed875566
commit 5c75da4736

View File

@ -32,11 +32,22 @@ type resultFloat = result_<float, distributionError>
@genType
type resultString = result_<string, distributionError>
//TODO: ForTS Interface module candid
@genType
let makeSampleSetDist = SampleSetDist.make
let makeSampleSetDist: array<float> => result_<
sampleSetDist,
SampleSetDist.sampleSetError,
> = SampleSetDist.make
//TODO: ForTS Interface module candid
@genType
let toPointSet = GenericDist.toPointSet
let toPointSet: (
squiggleValue_Distribution,
~xyPointLength: int,
~sampleCount: int,
~xSelection: DistributionTypes.DistributionOperation.pointsetXSelection=?,
unit,
) => result_<PointSetTypes.pointSetDist, distributionError> = GenericDist.toPointSet
@genType
type mixedShape = PointSetTypes.mixedShape