diff --git a/packages/squiggle-lang/src/rescript/TypescriptInterface.res b/packages/squiggle-lang/src/rescript/TypescriptInterface.res index bcee094a..f096b233 100644 --- a/packages/squiggle-lang/src/rescript/TypescriptInterface.res +++ b/packages/squiggle-lang/src/rescript/TypescriptInterface.res @@ -32,11 +32,22 @@ type resultFloat = result_ @genType type resultString = result_ +//TODO: ForTS Interface module candid @genType -let makeSampleSetDist = SampleSetDist.make +let makeSampleSetDist: array => 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_ = GenericDist.toPointSet @genType type mixedShape = PointSetTypes.mixedShape