Skip to content

Commit

Permalink
refactor(lib): add jsdoc to MXIKSearch
Browse files Browse the repository at this point in the history
  • Loading branch information
azabroflovski committed May 11, 2022
1 parent 8134e2e commit caafb90
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import { MXIKSearchSymbol } from '../api'
import { MXIKSearchOptionsObj, MXIKSearchResponseObj } from '../typings'

/**
* Search items by keyword
* @param keyword {string}
* @param limit {number}
* @returns {Promise<MXIKSearchResponseObj>}
*/
export async function MXIKSearch(keyword: string, { limit }: MXIKSearchOptionsObj): Promise<MXIKSearchResponseObj> {
try {
const { data: response } = await MXIKSearchSymbol({ keyword, limit })
Expand Down

0 comments on commit caafb90

Please sign in to comment.