Skip to content

Commit

Permalink
Merge pull request #134 from rcrdlbl/type-manifest
Browse files Browse the repository at this point in the history
added findProvider to type declarations
  • Loading branch information
ndaidong committed Apr 19, 2022
2 parents 5e5a235 + 653b8f6 commit aa3fda8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export function extract(url: string, params?: any): Promise<OembedData>;

export function hasProvider(url: string): boolean

export function findProvider(url: string): FoundProvider

export function setProviderList(providers: Provider[]): void

export function setRequestOptions(options: object): void
Expand All @@ -27,6 +29,12 @@ export interface Provider {
"provider_url": string;
"endpoints": Endpoint[];
}

export interface FindProviderResult {
"fetchEndpoint": string;
"provider_name": string;
"provider_url": string;
}
/**
* Basic data structure of every oembed response see https://oembed.com/
*/
Expand Down

0 comments on commit aa3fda8

Please sign in to comment.