mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-03 06:49:29 +08:00
11 lines
No EOL
757 B
Text
11 lines
No EOL
757 B
Text
import { RuleCreateFunction, RuleModule } from '../ts-eslint';
|
|
/**
|
|
* Uses type inference to fetch the TOptions type from the given RuleModule
|
|
*/
|
|
declare type InferOptionsTypeFromRule<T> = T extends RuleModule<infer _TMessageIds, infer TOptions> ? TOptions : T extends RuleCreateFunction<infer _TMessageIds, infer TOptions> ? TOptions : unknown;
|
|
/**
|
|
* Uses type inference to fetch the TMessageIds type from the given RuleModule
|
|
*/
|
|
declare type InferMessageIdsTypeFromRule<T> = T extends RuleModule<infer TMessageIds, infer _TOptions> ? TMessageIds : T extends RuleCreateFunction<infer TMessageIds, infer _TOptions> ? TMessageIds : unknown;
|
|
export { InferOptionsTypeFromRule, InferMessageIdsTypeFromRule };
|
|
//# sourceMappingURL=InferTypesFromRule.d.ts.map |