Files
memecoin-botV2/.pnpm-store/v10/files/c2/82f9a053a80c31d45ef87b237eb100cb200fe3832995687a1aa917337e96da1afcfe77ea679db9f7b095596e790355f2231dfbf90b860685b20e2ed481bb60

17 lines
688 B
Plaintext

import type { TSESTree } from '@typescript-eslint/utils';
import type * as ts from 'typescript';
/**
* Does a simple check to see if there is an any being assigned to a non-any type.
*
* This also checks generic positions to ensure there's no unsafe sub-assignments.
* Note: in the case of generic positions, it makes the assumption that the two types are the same.
*
* @example See tests for examples
*
* @returns false if it's safe, or an object with the two types if it's unsafe
*/
export declare function isUnsafeAssignment(type: ts.Type, receiver: ts.Type, checker: ts.TypeChecker, senderNode: TSESTree.Node | null): false | {
receiver: ts.Type;
sender: ts.Type;
};