providers/.docs/content/2.Api/4.ProviderControlslistSourc...

26 lines
435 B
Markdown
Raw Normal View History

2023-09-27 17:00:40 +00:00
# `ProviderControls.listSources`
List all source scrapers that applicable for the target.
They are sorted by rank, highest first
## Example
```ts
const sourceScrapers = providers.listSources();
2023-09-27 18:51:54 +00:00
// Guaranteed to only return type: 'source'
2023-09-27 17:00:40 +00:00
```
## Type
```ts
function listSources(): MetaOutput[];
type MetaOutput = {
type: 'embed' | 'source';
id: string;
rank: number;
name: string;
mediaTypes?: Array<MediaTypes>;
};
```