import type { RuleCreateFunction, RuleModule } from '../ts-eslint'; /** * Uses type inference to fetch the Options type from the given RuleModule */ export type InferOptionsTypeFromRule = T extends RuleModule ? Options : T extends RuleCreateFunction ? Options : unknown; /** * Uses type inference to fetch the MessageIds type from the given RuleModule */ export type InferMessageIdsTypeFromRule = T extends RuleModule ? MessageIds : T extends RuleCreateFunction ? MessageIds : unknown;