blob: b87b7e8368b8da4350d6b3712657b09a57a2fe0a [file] [log] [blame]
import { RuleModule } from '../ts-eslint';
declare type InferOptionsTypeFromRuleNever<T> = T extends RuleModule<never, infer TOptions> ? TOptions : unknown;
/**
* Uses type inference to fetch the TOptions type from the given RuleModule
*/
declare type InferOptionsTypeFromRule<T> = T extends RuleModule<string, infer TOptions> ? TOptions : InferOptionsTypeFromRuleNever<T>;
/**
* Uses type inference to fetch the TMessageIds type from the given RuleModule
*/
declare type InferMessageIdsTypeFromRule<T> = T extends RuleModule<infer TMessageIds, unknown[]> ? TMessageIds : unknown;
export { InferOptionsTypeFromRule, InferMessageIdsTypeFromRule };
//# sourceMappingURL=InferTypesFromRule.d.ts.map