UNPKG

routeros-api

Version:

Mikrotik Routerboard RouterOS API for NodeJS

35 lines (34 loc) 1.07 kB
export declare const debounce: (callback: any, timeout?: number) => { run: (...args: any) => void; cancel: () => void; }; /** * For for any .id search on the query and return it * * @param queries array of transformed query */ export declare function lookForIdParameterAndReturnItsValue(queries: string[]): string; /** * Transform camelCase or snake_case to dashed-case, * so the routerboard can understand the parameters used * on this wrapper * * @param val to string to transform */ export declare function camelCaseOrSnakeCaseToDashedCase(val: string): string; /** * Transform routerboard's dashed-case to camelCase * so we can use objects properties without having to wrap * around quotes * * @param val the string to transform */ export declare function dashedCaseToCamelCase(val: string): string; /** * Transform routerboard's dashed-case to snake_case * so we can use objects properties without having to wrap * around quotes * * @param val the string to transform */ export declare function dashedCaseToSnakeCase(val: string): string;