( type: 'anime' | 'manga', id: any, searchterm: string, )
| 215 | } |
| 216 | |
| 217 | export async function activeLinks( |
| 218 | type: 'anime' | 'manga', |
| 219 | id: any, |
| 220 | searchterm: string, |
| 221 | ): Promise<Quicklink[]> { |
| 222 | let combined = combinedLinks(); |
| 223 | |
| 224 | if (id) { |
| 225 | try { |
| 226 | combined = await fillFromApi(combined, type, id); |
| 227 | } catch (e) { |
| 228 | con.m('API Problem').error(e); |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | return simplifyObject(combined, type, searchterm, id); |
| 233 | } |
| 234 | |
| 235 | export function removeOptionKey(options, key) { |
| 236 | if (!key) return options; |
no test coverage detected