Skip to content

Commit

Permalink
fix: export UsageStorage (#1334)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw authored Mar 20, 2024
1 parent 7a6385b commit d466211
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/upload-api/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import { ServiceContext as FilecoinServiceContext } from '@web3-storage/filecoin
import { DelegationsStorage as Delegations } from './types/delegations.js'
import { ProvisionsStorage as Provisions } from './types/provisions.js'
import { RateLimitsStorage as RateLimits } from './types/rate-limits.js'
import { UsageStorage } from './types/usage.js'

export type ValidationEmailSend = {
to: string
Expand Down Expand Up @@ -160,6 +159,8 @@ import { PlansStorage } from './types/plans.js'
export type { PlansStorage } from './types/plans.js'
import { SubscriptionsStorage } from './types/subscriptions.js'
export type { SubscriptionsStorage }
import { UsageStorage } from './types/usage.js'
export type { UsageStorage }

export interface Service extends StorefrontService {
store: {
Expand Down
4 changes: 3 additions & 1 deletion packages/upload-api/src/types/usage.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { Failure, Result } from '@ucanto/interface'
import { ProviderDID, SpaceDID, UsageData } from '../types.js'
import { ProviderDID, SpaceDID, UsageData } from '@web3-storage/capabilities/types'

export type { UsageData }

export interface UsageStorage {
report: (
Expand Down

0 comments on commit d466211

Please sign in to comment.