intial
This commit is contained in:
16
node_modules/eslint-plugin-svelte/lib/rules/reference-helpers/svelte-store.d.ts
generated
vendored
Normal file
16
node_modules/eslint-plugin-svelte/lib/rules/reference-helpers/svelte-store.d.ts
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import type { TSESTree } from '@typescript-eslint/types';
|
||||
import type { RuleContext } from '../../types.js';
|
||||
type StoreName = 'writable' | 'readable' | 'derived';
|
||||
/** Extract 'svelte/store' references */
|
||||
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;
|
||||
/**
|
||||
* Creates a function that checks whether the given expression node is a store instance or not.
|
||||
*/
|
||||
export declare function createStoreChecker(context: RuleContext): StoreChecker;
|
||||
export {};
|
||||
Reference in New Issue
Block a user