29 lines
989 B
TypeScript
29 lines
989 B
TypeScript
/* TypeScript file generated from XYShape.res by genType. */
|
|
/* eslint-disable import/first */
|
|
|
|
|
|
// tslint:disable-next-line:interface-over-type-literal
|
|
export type xyShape = { readonly xs: number[]; readonly ys: number[] };
|
|
|
|
// tslint:disable-next-line:interface-over-type-literal
|
|
export type propertyName = string;
|
|
|
|
// tslint:disable-next-line:interface-over-type-literal
|
|
export type error =
|
|
{ tag: "NotSorted"; value: propertyName }
|
|
| { tag: "IsEmpty"; value: propertyName }
|
|
| { tag: "NotFinite"; value: [propertyName, number] }
|
|
| { tag: "DifferentLengths"; value: {
|
|
readonly p1Name: string;
|
|
readonly p2Name: string;
|
|
readonly p1Length: number;
|
|
readonly p2Length: number
|
|
} }
|
|
| { tag: "MultipleErrors"; value: error[] };
|
|
|
|
// tslint:disable-next-line:interface-over-type-literal
|
|
export type interpolationStrategy = "Stepwise" | "Linear";
|
|
|
|
// tslint:disable-next-line:interface-over-type-literal
|
|
export type extrapolationStrategy = "UseZero" | "UseOutermostPoints";
|