Function: isWithinDocusaurusTranslate()
function isWithinDocusaurusTranslate<MessageIds, Options>(
context: Readonly<TSESLint.RuleContext<MessageIds, Options>>,
child: Readonly<JSXChild>,
bindings: DocusaurusTranslateBindings
): boolean;
Defined in: _internal/docusaurus-translation-ast.ts:133
Check whether a child is nested anywhere inside imported Translate.
Type Parametersโ
MessageIdsโ
MessageIds extends string
Optionsโ
Options extends readonly unknown[]
Parametersโ
contextโ
Readonly<TSESLint.RuleContext<MessageIds, Options>>
childโ
Readonly<JSXChild>
bindingsโ
Returnsโ
boolean