printer-notifications/node_modules/eslint-plugin-svelte/lib/rules/reference-helpers/svelte-store.d.ts

13 lines
530 B
TypeScript
Raw Permalink Normal View History

2023-11-13 21:10:04 +00:00
import type { TSESTree } from '@typescript-eslint/types';
import type { RuleContext } from '../../types';
type StoreName = 'writable' | 'readable' | 'derived';
export declare function extractStoreReferences(context: RuleContext, storeNames?: StoreName[]): Generator<{
node: TSESTree.CallExpression;
name: string;
}, void>;
export type StoreChecker = (node: TSESTree.Expression, options?: {
consistent?: boolean;
}) => boolean;
export declare function createStoreChecker(context: RuleContext): StoreChecker;
export {};