Skip to content

Commit 4afe82b

Browse files
committed
fix(docs): add missing member indicator type
* MethodSignature was missing, only Method was considered resolves #238
1 parent ff3eee0 commit 4afe82b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/functions/autocomplete/docsAutoComplete.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@ export async function djsMeiliSearch(query: string, version: string) {
207207
...docsResult,
208208
hits: hits.map((hit: any) => {
209209
const parsed = parseDocsPath(hit.path);
210-
const isMember = ['Property', 'Method', 'Event', 'PropertySignature', 'EnumMember'].includes(hit.kind);
210+
const isMember = ['Property', 'Method', 'Event', 'PropertySignature', 'EnumMember', 'MethodSignature'].includes(
211+
hit.kind,
212+
);
211213
const parts = [parsed.package, parsed.item.toLocaleLowerCase(), parsed.kind];
212214

213215
if (isMember && parsed.method) {

0 commit comments

Comments
 (0)