traPtitech / node-traq

Node.js client library for the traQ API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ChannelListの型が誤っている

spaspa opened this issue · comments

commented
/**
 * GET /channelsレスポンス
 * @export
 * @interface ChannelList
 */
export interface ChannelList {
    /**
     * パブリックチャンネルの配列
     * @type {Array<Channel>}
     * @memberof ChannelList
     */
    _public?: Array<Channel>;
    /**
     * ダイレクトメッセージチャンネルの配列
     * @type {Array<DMChannel>}
     * @memberof ChannelList
     */
    dm?: Array<DMChannel>;
}

publicフィールドがキーワードと衝突しているので、先頭にアンダースコアがついてしまっています
--reserved-words-mappings public=publicとかで解決できるかもしれない