ai-tube / src /app /api /parsers /parseBasicSearchResult.ts
jbilcke-hf's picture
jbilcke-hf HF staff
upgraded to @aitube/client 0.0.12
f24ad59
raw
history blame
No virus
265 Bytes
import { decode } from "js-base64"
import { BasicSearchResult } from "../v1/search/types"
export function parseBasicSearchResult(input?: any): BasicSearchResult {
let basicResult = JSON.parse(decode(`${input || ""}`)) as BasicSearchResult
return basicResult
}