Answersheet to 'Importing Clients from VTEX package'
//node/Clients/index.ts
import { IOClients } from '@vtex/api'
import { Catalog } from '@vtex/clients'
import Status from './status'
// Extend the default IOClients implementation with our own custom clients.
export class Clients extends IOClients {
public get status() {
return this.getOrSet('status', Status)
}
public get catalog() {
return this.getOrSet('catalog', Catalog)
}
}Updated over 1 year ago
