mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
* Added @types/vndb * removed unnecessary reference to node * Removed package.json * Removed JSDoc type annotations * Removed unnecessary namespace from @types/vndb
15 lines
316 B
TypeScript
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();
|