Files
memecoin-botV2/.pnpm-store/v10/files/14/d8aa5b0d125309bf8a7751d3062f5e9f8caa4edbc5d591c1a12a24417af3a168a07ff819bc52b2c8abc3cc000cc40e00edadd45dc9d0ba3a43cc1db50828ff

13 lines
688 B
Plaintext

import type { ParserServicesWithTypeInformation, TSESTree } from '@typescript-eslint/typescript-estree';
import type * as ts from 'typescript';
/**
* Resolves the given node's type. Will return the type's generic constraint, if it has one.
*
* Warning - if the type is generic and does _not_ have a constraint, the type will be
* returned as-is, rather than returning an `unknown` type. This can be checked
* for by checking for the type flag ts.TypeFlags.TypeParameter.
*
* @see https://github.com/typescript-eslint/typescript-eslint/issues/10438
*/
export declare function getConstrainedTypeAtLocation(services: ParserServicesWithTypeInformation, node: TSESTree.Node): ts.Type;