mirror of
https://github.com/appium/appium.git
synced 2026-02-22 03:08:47 -06:00
chore(typedoc-plugin-appium): tweak guard; avoid bad link
This commit is contained in:
@@ -288,11 +288,11 @@ export function isAsyncMethodDeclarationReflection(
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
const signatures =
|
||||
(value.type instanceof ReflectionType ? value.type.declaration.signatures : value.signatures) ??
|
||||
[];
|
||||
const signatures = isReflectionType(value.type)
|
||||
? value.type.declaration.getAllSignatures()
|
||||
: value.getAllSignatures();
|
||||
return Boolean(
|
||||
signatures.find((sig) => isReferenceType(sig.type) && sig.type.name === 'Promise')
|
||||
signatures?.find((sig) => isReferenceType(sig.type) && sig.type.name === 'Promise')
|
||||
);
|
||||
}
|
||||
|
||||
@@ -346,7 +346,7 @@ export function isConstructorDeclarationReflection(
|
||||
}
|
||||
|
||||
/**
|
||||
* Guard for the constructor of a class extending {@linkcode BasePlugin}
|
||||
* Guard for the constructor of a class extending `BasePlugin`
|
||||
* @param value
|
||||
*/
|
||||
export function isBasePluginConstructorDeclarationReflection(
|
||||
|
||||
Reference in New Issue
Block a user