UNPKG

757 BTypeScriptView Raw
1import { RuleCreateFunction, RuleModule } from '../ts-eslint';
2/**
3 * Uses type inference to fetch the TOptions type from the given RuleModule
4 */
5declare type InferOptionsTypeFromRule<T> = T extends RuleModule<infer _TMessageIds, infer TOptions> ? TOptions : T extends RuleCreateFunction<infer _TMessageIds, infer TOptions> ? TOptions : unknown;
6/**
7 * Uses type inference to fetch the TMessageIds type from the given RuleModule
8 */
9declare type InferMessageIdsTypeFromRule<T> = T extends RuleModule<infer TMessageIds, infer _TOptions> ? TMessageIds : T extends RuleCreateFunction<infer TMessageIds, infer _TOptions> ? TMessageIds : unknown;
10export { InferOptionsTypeFromRule, InferMessageIdsTypeFromRule };
11//# sourceMappingURL=InferTypesFromRule.d.ts.map
\No newline at end of file