Dev Build / cleanup (push) Canceled after 0s
Dev Build / typecheck (push) Canceled after 0s
Dev Build / build (linux-arm64, ubuntu-24.04-arm, linux-arm64) (push) Canceled after 0s
Dev Build / build (linux-x64, ubuntu-latest, linux-x64) (push) Canceled after 0s
Dev Build / build (win-x64, windows-latest, win32-x64) (push) Canceled after 0s
Dev Build / dispatch-dev-docker (push) Canceled after 0s
17 lines
834 B
Plaintext
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;
|