eslint-plugin-obsidian
Version:
ESLint rules for Obsidian
16 lines • 1.51 kB
TypeScript
import { type TSESTree } from '@typescript-eslint/types';
import type { ArrayExpressionElement } from '../types';
export declare function isClassLike(node: TSESTree.Node): node is TSESTree.ClassDeclaration;
export declare function isTypeReference(node?: TSESTree.Node): node is TSESTree.TSTypeReference;
export declare function isTypeLiteral(node: TSESTree.Node): node is TSESTree.TSTypeLiteral;
export declare function isImportDeclaration(node: TSESTree.Node): node is TSESTree.ImportDeclaration;
export declare function isMethodDefinition(node: TSESTree.Node): node is TSESTree.MethodDefinition;
export declare function getClassDeclaration(node: TSESTree.Node): TSESTree.ClassDeclaration | undefined;
export declare function requireProgram(node: TSESTree.Node | undefined): TSESTree.Program;
export declare function getDecoratorProperty(decorator: TSESTree.Decorator, propertyName: string): TSESTree.Property | undefined;
export declare function mapArrayExpression<T>(array: TSESTree.ArrayExpression, map: (el: ArrayExpressionElement) => T): T[];
export declare function isTypeIntersection(node: TSESTree.Node | undefined): node is TSESTree.TSIntersectionType;
export declare function isTypeAnnotation(node: TSESTree.Node | undefined): node is TSESTree.TSTypeAnnotation;
export declare function isAnyType(node: TSESTree.Node | undefined): node is TSESTree.TSAnyKeyword;
export declare function isVariableDeclaration(node: TSESTree.Node): node is TSESTree.VariableDeclaration;
//# sourceMappingURL=ast.d.ts.map