Urara-Blog/node_modules/.pnpm-store/v3/files/1e/30f3c40701f78befc9a91de14c07e955e15ae8e3e8a9544b8120eb059fe06eb7d0de0179974c130815f483d67ca2aabb4497535e22e5cdce9e818cb607e93b
2022-08-14 01:14:53 +08:00

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