mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* 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
15 lines
267 B
TypeScript
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();
|