.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / @typescript-eslint / experimental-utils / _ts3.4 / dist / eslint-utils / InferTypesFromRule.d.ts
1 import { RuleModule } from '../ts-eslint';\r
2 declare type InferOptionsTypeFromRuleNever<T> = T extends RuleModule<never, infer TOptions> ? TOptions : unknown;\r
3 /**\r
4  * Uses type inference to fetch the TOptions type from the given RuleModule\r
5  */\r
6 declare type InferOptionsTypeFromRule<T> = T extends RuleModule<string, infer TOptions> ? TOptions : InferOptionsTypeFromRuleNever<T>;\r
7 /**\r
8  * Uses type inference to fetch the TMessageIds type from the given RuleModule\r
9  */\r
10 declare type InferMessageIdsTypeFromRule<T> = T extends RuleModule<infer TMessageIds, unknown[]> ? TMessageIds : unknown;\r
11 export { InferOptionsTypeFromRule, InferMessageIdsTypeFromRule };\r
12 //# sourceMappingURL=InferTypesFromRule.d.ts.map\r