persona-community-5/.pnpm-store/v3/files/59/ef647fcf59b23006a337ed9ef92e0224945941a5c247f03f4985f4ab4c9d102211a0721f338c5d83bfcaef18a0807da7111f14cf4562a44ed670d4cf690738
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

17 lines
736 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 | {
sender: ts.Type;
receiver: ts.Type;
};
//# sourceMappingURL=isUnsafeAssignment.d.ts.map