Skip to content

Commit

Permalink
added more storage types to getFileInfo (#1640)
Browse files Browse the repository at this point in the history
* added ipfs interface to getFileInfo

* added GraphqlQuery and Smartcontract interfaces to getFileInfo
  • Loading branch information
EnzoVezzaro committed Nov 1, 2022
1 parent a21671c commit cdb9f8e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/services/Provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ import {
ProviderComputeInitializeResults,
ServiceEndpoint,
UrlFile,
UserCustomParameters
UserCustomParameters,
Ipfs,
Smartcontract,
GraphqlQuery
} from '../@types'

export class Provider {
Expand Down Expand Up @@ -196,7 +199,7 @@ export class Provider {
* @return {Promise<FileInfo[]>} urlDetails
*/
public async getFileInfo(
file: UrlFile | Arweave,
file: UrlFile | Arweave | Ipfs | GraphqlQuery | Smartcontract,
providerUri: string,
signal?: AbortSignal
): Promise<FileInfo[]> {
Expand Down

0 comments on commit cdb9f8e

Please sign in to comment.