draftbit / twitter-lite

A tiny, full-featured, flexible client / server library for the Twitter API
https://npm.im/twitter-lite
MIT License
794 stars 95 forks source link

Add default import in twitter.js #139

Open kissarat opened 4 years ago

kissarat commented 4 years ago

There declaration in index.d.ts

export default class Twitter {

But without this PR it is impossible to import this way

import Twitter from 'twitter-lite'

Because for exporting

module.exports = Twitter

Import must looks like

import * as Twitter from 'twitter-lite'

But it's not described in index.d.ts

kissarat commented 3 years ago

@Fdebijl I'm not sure that I'm not sure that I understand you well, but I made an appropriate changes