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 @genType
type resultString = result_<string, distributionError> type resultString = result_<string, distributionError>
//TODO: ForTS Interface module candid
@genType @genType
let makeSampleSetDist = SampleSetDist.make let makeSampleSetDist: array<float> => result_<
sampleSetDist,
SampleSetDist.sampleSetError,
> = SampleSetDist.make
//TODO: ForTS Interface module candid
@genType @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 @genType
type mixedShape = PointSetTypes.mixedShape type mixedShape = PointSetTypes.mixedShape