GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Typescript definitions for add and multiply incorrectly allow 0 and 1 arguments · Issue #3499 · josdejong/mathjs Closed Labels DescriptionThe issues section is used only for bug reports. Please use the Discussions section to ask questions and share ideas and suggestions. Describe the bug add<T extends MathType>(...values: T[]): T add(...values: MathType[]): MathType multiply(...values: MathType[]): MathType To Reproduce echo 'import { add, multiply, subtract } from "mathjs"; try { console.log(add()); // No compile error, but runtime error } catch(err) { console.error("add() FAILED"); } try { console.log(add(1)); // No compile error, but runtime error } catch(err) { console.error("add(1) FAILED"); } try { console.log(multiply()); // No compile error, but runtime error } catch(err) { console.error("multiply() FAILED"); } try { console.log(multiply(2)); // No compile error, but runtime error } catch(err) { console.error("multiply(2) FAILED"); } subtract(); // This throws a TypeError as expected ' > math_test_add_and_multiply.ts deno math_test_add_and_multiply.ts Activity
MetadataMetadataAssigneesLabelsTypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |