@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
25 lines (24 loc) • 702 B
TypeScript
/**
* Returns the number at the end of a string
*
* @remarks
* It takes 1 arguments.
*
* `opdigits(word)`
*
* - `word` returns the number at the end of word
*
* ## Usage
*
* - `opdigits('/geo1')` - returns 1
* - `opdigits($OS)` - returns the number at the end of the name of the current node
*
*/
import { BaseMethodFindDependencyArgs } from './_Base';
import { BaseMethod } from './_Base';
import { MethodDependency } from '../MethodDependency';
export declare class OpdigitsExpression extends BaseMethod {
static requiredArguments(): string[][];
findDependency(args: BaseMethodFindDependencyArgs): MethodDependency | null;
processArguments(args: any[]): Promise<number>;
}