Files
memecoin-botV2/.pnpm-store/v10/files/4b/78e7b2e926ca264197b9bfe49e633683da942d46b02f67c3cca15e00d958c59e56f837c2c3591f3a1a2f867d34415010b791fdd231cf443bbb962b49e48920

14 lines
795 B
Plaintext

import type { ParserServicesWithTypeInformation } from '@typescript-eslint/utils';
import type { InterfaceType, Type } from 'typescript';
export declare function hasBaseTypes(type: Type): type is InterfaceType;
/**
* Recursively checks if a type or any of its base types matches the provided
* matcher function.
* @param services Parser services with type information
* @param matcher Function to test if a type matches the desired criteria
* @param type The type to check
* @param seen Set of already visited types to prevent infinite recursion
* @returns `true` if the type or any of its base types match the matcher
*/
export declare function matchesTypeOrBaseType(services: ParserServicesWithTypeInformation, matcher: (type: Type) => boolean, type: Type, seen?: Set<Type>): boolean;