mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Merge pull request #30141 from jfstephe/master
Added missing getAll() parser function
This commit is contained in:
commit
7beeff47e7
1
types/mathjs/index.d.ts
vendored
1
types/mathjs/index.d.ts
vendored
@ -2876,6 +2876,7 @@ declare namespace math {
|
||||
interface Parser {
|
||||
eval(expr: string): any;
|
||||
get(variable: string): any;
|
||||
getAll(): { [key: string]: any; };
|
||||
set: (variable: string, value: any) => void;
|
||||
clear: () => void;
|
||||
}
|
||||
|
||||
@ -179,6 +179,7 @@ Expressions examples
|
||||
|
||||
const x = parser.get('x');
|
||||
const f = parser.get('f');
|
||||
const y = parser.getAll();
|
||||
const g = f(3, 3);
|
||||
|
||||
parser.set('h', 500);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user