Files
agency/.pnpm-store/v3/files/e9/34ecb3ad49053e44e22fc22ea5604093ad8d06116761800b4f25701574bd0cd5a9b5a6bc0534b43d785afcb5c75481858c87b44ba51b3809ebb541ca32da0c
hanzo-agent 5af6960b87 run project
Run: sess_f37640604ae254cb4d11dc6217f7b721
2026-09-30 00:04:56 +00:00

10 lines
634 B
Plaintext

import type { RuleCreateFunction, RuleModule } from '../ts-eslint';
/**
* Uses type inference to fetch the Options type from the given RuleModule
*/
export type InferOptionsTypeFromRule<T> = T extends RuleModule<infer _MessageIds, infer Options> ? Options : T extends RuleCreateFunction<infer _MessageIds, infer Options> ? Options : unknown;
/**
* Uses type inference to fetch the MessageIds type from the given RuleModule
*/
export type InferMessageIdsTypeFromRule<T> = T extends RuleModule<infer MessageIds, infer _TOptions> ? MessageIds : T extends RuleCreateFunction<infer MessageIds, infer _TOptions> ? MessageIds : unknown;