From 03b65ffa983508e69750d5687d12ecfc82538f65 Mon Sep 17 00:00:00 2001 From: phillips1012 Date: Mon, 18 May 2015 20:45:38 -0600 Subject: [PATCH] fix es6 usage in node-irc --- node-irc/node-irc-tests.ts | 2 +- node-irc/node-irc.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/node-irc/node-irc-tests.ts b/node-irc/node-irc-tests.ts index 1ea58c2dd..07137b876 100644 --- a/node-irc/node-irc-tests.ts +++ b/node-irc/node-irc-tests.ts @@ -1,7 +1,7 @@ // https://github.com/martynsmith/node-irc/blob/master/example/bot.js import irc = require('irc'); -let bot = new irc.Client('irc.dollyfish.net.nz', 'nodebot', { +var bot = new irc.Client('irc.dollyfish.net.nz', 'nodebot', { debug: true, channels: ['#blah', '#test'] }); diff --git a/node-irc/node-irc.d.ts b/node-irc/node-irc.d.ts index a5a366643..6831ece82 100644 --- a/node-irc/node-irc.d.ts +++ b/node-irc/node-irc.d.ts @@ -868,7 +868,7 @@ declare module 'irc' { * This contains the set of colors available and a function to wrap * text in a color. */ - export const codes: { + export var codes: { [index: string]: string; }; }