persona-community-5/.pnpm-store/v3/files/61/ef61b7baf5bc1302d3e8b6da939ebb6fc0543b79693e110a909adff40a95d4b92f31db7a92593c87d87c19b8486cfd58004368e7a1988fe262c9842fd39ac0
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

11 lines
734 B
Plaintext

import type { RuleCreateFunction, RuleModule } from '../ts-eslint';
/**
* Uses type inference to fetch the Options type from the given RuleModule
*/
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
*/
type InferMessageIdsTypeFromRule<T> = T extends RuleModule<infer MessageIds, infer _TOptions> ? MessageIds : T extends RuleCreateFunction<infer MessageIds, infer _TOptions> ? MessageIds : unknown;
export { InferOptionsTypeFromRule, InferMessageIdsTypeFromRule };
//# sourceMappingURL=InferTypesFromRule.d.ts.map