DefinitelyTyped/types/vndb/vndb-tests.ts
Pragun Saini 79545c9942
Added @types/vndb (#42039)
* Added @types/vndb

* removed unnecessary reference to node

* Removed package.json

* Removed JSDoc type annotations

* Removed unnecessary namespace from @types/vndb
2020-02-07 10:06:42 -08:00

15 lines
316 B
TypeScript

import VNDB = require('vndb');
async function connect() {
try {
const vndb = await VNDB.start();
console.log('Connected !');
await vndb.end();
console.log('Ended Connection !');
} catch (e) {
console.log('Error while connecting to the VNDB API');
}
}
connect();