simple module:
declare module 'nodejs-sdk' {
import { Customers } from "./resources/customers";
export class Client {
constructor(clientId: string, clientSecret: string, sandbox?: boolean)
customers(): Customers
}
export default Client;
}
I would like to access to all Customers properties, the problem's that the Customers instance is located inside the Client class with a getter:
get customers() {
return new Customers();
}
so how can I tell to the d.ts file that customers() is part of client?
get customers(): Customers should be enough I think
Обсуждают сегодня