Skip to content

Commit 34da23f

Browse files
authored
Merge pull request #163 from docsbydoxdox/hotfix/added-method-type
[hotfix] Added Method type to parser method.
2 parents c92cb16 + 34430a7 commit 34da23f

File tree

1 file changed

+2
-2
lines changed
  • packages/doxdox-parser-jsdoc/src

1 file changed

+2
-2
lines changed

packages/doxdox-parser-jsdoc/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import temp from 'temp';
1010

1111
import { findParentNodeModules, sanitizePath, slugify } from 'doxdox-core';
1212

13-
import { File } from 'doxdox-core';
13+
import { File, Method } from 'doxdox-core';
1414

1515
import { Jsdoc } from './types';
1616

@@ -81,7 +81,7 @@ const parser = async (cwd: string, path: string): Promise<File> => {
8181
params,
8282
returns,
8383
private: isPrivate
84-
};
84+
} as Method;
8585
})
8686
.sort((a, b) => {
8787
if (a.name.toLocaleLowerCase() < b.name.toLocaleLowerCase()) {

0 commit comments

Comments
 (0)