We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5e5a235 + 653b8f6 commit aa3fda8Copy full SHA for aa3fda8
index.d.ts
@@ -9,6 +9,8 @@ export function extract(url: string, params?: any): Promise<OembedData>;
9
10
export function hasProvider(url: string): boolean
11
12
+export function findProvider(url: string): FoundProvider
13
+
14
export function setProviderList(providers: Provider[]): void
15
16
export function setRequestOptions(options: object): void
@@ -27,6 +29,12 @@ export interface Provider {
27
29
"provider_url": string;
28
30
"endpoints": Endpoint[];
31
}
32
33
+export interface FindProviderResult {
34
+ "fetchEndpoint": string;
35
+ "provider_name": string;
36
+ "provider_url": string;
37
+}
38
/**
39
* Basic data structure of every oembed response see https://oembed.com/
40
*/
0 commit comments