DefinitelyTyped/types/ts3-nodejs-library/ts3-nodejs-library-tests.ts
Pascal Sthamer 0bb06879d9 Add typings for ts3-nodejs-library (#34797)
* Add ts3-nodejs-library typings

* Use files instead of include

* Fix json error in tsconfig

* Require at least TypeScript Version 3.0

* Fix typescript version header

* Remove duplicate typings in subclasses of the abstract class

* Add constructor list typings
2019-04-18 15:44:35 -07:00

15 lines
267 B
TypeScript

import TeamSpeak3 = require('ts3-nodejs-library');
const ts3 = new TeamSpeak3({
username: 'serveradmin',
password: 'password',
nickname: 'My TS3 Bot'
});
async function main() {
const me = await ts3.whoami();
// Add other tests here.
}
main();