From fc4ceef607abfcf3c0076155dd69254d19efab0a Mon Sep 17 00:00:00 2001 From: Kenny Date: Sat, 8 Apr 2023 10:33:01 -0700 Subject: [PATCH] fix(modeling): arcLengthToT first argument is required Also add tsd:test to CI --- .github/workflows/node.yml | 1 + packages/modeling/src/curves/bezier/arcLengthToT.d.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index 747dee243..465729713 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -20,3 +20,4 @@ jobs: node-version: ${{ matrix.node }} - run: npm install - run: npm test + - run: npm run test:tsd diff --git a/packages/modeling/src/curves/bezier/arcLengthToT.d.ts b/packages/modeling/src/curves/bezier/arcLengthToT.d.ts index 225df5a2f..a5294f61b 100644 --- a/packages/modeling/src/curves/bezier/arcLengthToT.d.ts +++ b/packages/modeling/src/curves/bezier/arcLengthToT.d.ts @@ -7,4 +7,4 @@ export interface ArcLengthToTOptions { segments?: Number } -declare function arcLengthToT(options?: ArcLengthToTOptions, bezier: Bezier): number \ No newline at end of file +declare function arcLengthToT(options: ArcLengthToTOptions, bezier: Bezier): number