Skip to content

Commit aa3fda8

Browse files
authored
Merge pull request #134 from rcrdlbl/type-manifest
added findProvider to type declarations
2 parents 5e5a235 + 653b8f6 commit aa3fda8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

index.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ export function extract(url: string, params?: any): Promise<OembedData>;
99

1010
export function hasProvider(url: string): boolean
1111

12+
export function findProvider(url: string): FoundProvider
13+
1214
export function setProviderList(providers: Provider[]): void
1315

1416
export function setRequestOptions(options: object): void
@@ -27,6 +29,12 @@ export interface Provider {
2729
"provider_url": string;
2830
"endpoints": Endpoint[];
2931
}
32+
33+
export interface FindProviderResult {
34+
"fetchEndpoint": string;
35+
"provider_name": string;
36+
"provider_url": string;
37+
}
3038
/**
3139
* Basic data structure of every oembed response see https://oembed.com/
3240
*/

0 commit comments

Comments
 (0)