eslint-plugin-sonarjs
Version:
8 lines (7 loc) • 383 B
TypeScript
import type estree from 'estree';
export type ChaiPredicate = 'truthy' | 'falsy' | 'true' | 'false' | 'defined' | 'undefined' | 'null' | 'exists';
export declare function getChaiPropertyPredicate(name: string): {
predicate: ChaiPredicate;
negated: boolean;
} | null;
export declare function getArgumentAtIndex(node: estree.CallExpression, index: number): estree.Node | null;