Files
memecoin-botV2/.pnpm-store/v10/files/a3/44c89216a3c14c54fe8c96d4091d56008f7402d6e2b4f63a00d783898c58ef251f730f70cde77a03798713c2cf49e84298a1984decec0cbeafef0de1c1af98

17 lines
834 B
Plaintext

import type { ParserServicesWithTypeInformation, TSESTree } from '@typescript-eslint/utils';
import * as ts from 'typescript';
/**
* Inspect a call expression to see if it's a call to an assertion function.
* If it is, return the node of the argument that is asserted.
*/
export declare function findTruthinessAssertedArgument(services: ParserServicesWithTypeInformation, node: TSESTree.CallExpression): TSESTree.Expression | undefined;
/**
* Inspect a call expression to see if it's a call to an assertion function.
* If it is, return the node of the argument that is asserted and other useful info.
*/
export declare function findTypeGuardAssertedArgument(services: ParserServicesWithTypeInformation, node: TSESTree.CallExpression): {
argument: TSESTree.Expression;
asserts: boolean;
type: ts.Type;
} | undefined;