Skip to content

Commit

Permalink
rename Provisions ProvisionsStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
gobengo committed Mar 4, 2023
1 parent c1e37f9 commit 9b9a14d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/access-api/src/bindings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { loadConfig } from './config.js'
import { ConnectionView, Signer as EdSigner } from '@ucanto/principal/ed25519'
import { Accounts } from './models/accounts.js'
import { DelegationsStorage as Delegations } from './types/delegations.js'
import { Provisions } from './types/provisions.js'
import { ProvisionsStorage } from './types/provisions.js'

export {}

Expand Down Expand Up @@ -67,7 +67,7 @@ export interface RouteContext {
accounts: Accounts
delegations: Delegations
spaces: Spaces
provisions: Provisions
provisions: ProvisionsStorage
validations: Validations
}
uploadApi: ConnectionView
Expand Down
2 changes: 1 addition & 1 deletion packages/access-api/src/models/provisions.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable no-void */

/**
* @typedef {import("../types/provisions").Provisions} Provisions
* @typedef {import("../types/provisions").ProvisionsStorage} Provisions
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/access-api/src/service/provider-add.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import * as validator from '@ucanto/validator'

/**
* @param {object} options
* @param {import('../types/provisions').Provisions} options.provisions
* @param {import('../types/provisions').ProvisionsStorage} options.provisions
* @returns {ProviderAddHandler}
*/
export function createProviderAddHandler(options) {
Expand Down
2 changes: 1 addition & 1 deletion packages/access-api/src/types/provisions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface Provision {
/**
* stores instances of a storage provider being consumed by a consumer
*/
export interface Provisions {
export interface ProvisionsStorage {
hasStorageProvider: (consumer: Ucanto.DID<'key'>) => Promise<boolean>
/**
* write several items into storage
Expand Down

0 comments on commit 9b9a14d

Please sign in to comment.