Skip to content

Commit

Permalink
fix: fix sdk6 types
Browse files Browse the repository at this point in the history
  • Loading branch information
pviti committed Apr 11, 2024
1 parent 0028db2 commit 31cb08c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { clUpdate, clColor, clToken, type ApiMode, clUtil, clApi, type Method }
import { isRemotePath, pathJoin } from './common'
import { type BusinessModel, readModelData } from './data'
import { loadSchema } from './schema'
import type { CommerceLayerClient, ListResponse, ResourceId, QueryParamsList } from '@commercelayer/sdk'
import type { CommerceLayerClient, ListResponse, ResourceId, QueryParamsList, Resource } from '@commercelayer/sdk'
import type { CommandError } from '@oclif/core/lib/interfaces'
import type { CLIError } from '@oclif/core/lib/errors'

Expand Down Expand Up @@ -129,7 +129,7 @@ export default abstract class extends Command {
await this.applyRequestDelay(type, 'GET')

const resSdk = this.cl[type as keyof CommerceLayerClient] as any
const list = await resSdk.list(params) as ListResponse<ResourceId>
const list = await resSdk.list(params) as ListResponse<Resource>

return list.first()

Expand Down

0 comments on commit 31cb08c

Please sign in to comment.