mailerlite / mailerlite-nodejs

MIT License
32 stars 7 forks source link

export object intefaces #38

Closed volodyad closed 1 year ago

volodyad commented 1 year ago

Would be good to use response objects in custom types, e.g

private async getGroup(groupName: string): Promise { }

but no interfaces are exported, so I cannot import GroupObject from '@mailerlite/mailerlite-nodejs'

Mantas97 commented 1 year ago

MailerLite remains as the default export.

import MailerLite from '@mailerlite/mailerlite-nodejs';

All types are named exports now

import { GroupObject } from '@mailerlite/mailerlite-nodejs';

Released in v1.2.0