hyperformula-dc
Version:
HyperFormula is a JavaScript engine for efficient processing of spreadsheet-like data and formulas
40 lines (39 loc) • 1.34 kB
TypeScript
/**
* @license
* Copyright (c) 2021 Handsoncode. All rights reserved.
*/
import { ProcedureAst } from '../../parser';
import { InterpreterState } from '../InterpreterState';
import { InterpreterValue } from '../InterpreterValue';
import { ArgumentTypes, FunctionPlugin, FunctionPluginTypecheck } from './FunctionPlugin';
export declare class LogarithmPlugin extends FunctionPlugin implements FunctionPluginTypecheck<LogarithmPlugin> {
static implementedFunctions: {
LOG10: {
method: string;
parameters: {
argumentType: ArgumentTypes;
}[];
};
LOG: {
method: string;
parameters: ({
argumentType: ArgumentTypes;
greaterThan: number;
defaultValue?: undefined;
} | {
argumentType: ArgumentTypes;
defaultValue: number;
greaterThan: number;
})[];
};
LN: {
method: string;
parameters: {
argumentType: ArgumentTypes;
}[];
};
};
log10(ast: ProcedureAst, state: InterpreterState): InterpreterValue;
log(ast: ProcedureAst, state: InterpreterState): InterpreterValue;
ln(ast: ProcedureAst, state: InterpreterState): InterpreterValue;
}