Skip to content

Commit

Permalink
fix: EXT-3073 typings (#960)
Browse files Browse the repository at this point in the history
* fix: create uploads return type

* fix: use correct typings for create upload

* chore: revert unwanted changes
  • Loading branch information
shikaan authored Sep 13, 2021
1 parent 2292217 commit e66f421
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/types/entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export type {
QueryOptions,
TagVisibility,
MetadataProps as Metadata,
UploadProps as Upload,
} from 'contentful-management/types'

export interface CanonicalRequest {
Expand Down
3 changes: 2 additions & 1 deletion lib/types/space.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
KeyValueMap,
Entry,
QueryOptions,
Upload,
} from './entities'
import { CollectionResponse, ContentEntityType, Link, WithOptionalId, SearchQuery } from './utils'

Expand Down Expand Up @@ -87,7 +88,7 @@ export interface SpaceAPI {
getPublishedAssets: <Query extends SearchQuery = SearchQuery>(
query?: Query
) => Promise<CollectionResponse<Asset>>
createUpload: (base64data: string) => Promise<void>
createUpload: (base64data: string) => Promise<Upload>
waitUntilAssetProcessed: (assetId: string, locale: string) => Promise<Asset>

/** Returns all users who belong to the space. */
Expand Down

0 comments on commit e66f421

Please sign in to comment.