orientechnologies / orientjs

The official fast, lightweight node.js client for OrientDB
http://orientdb.com
Other
327 stars 67 forks source link

Incorrect TypeScript def for create record #434

Open mebibou opened 4 years ago

mebibou commented 4 years ago

When trying to create a record like this:

const Player = await db.class.get('Player');
const record = await Player.create({ name: 'new player' });

typescript will fail with an error because the expected param for create is a ORecord although it should just be an Object

saeedtabrizi commented 3 years ago

Hi @mebibou Thanks to inform , i will try to patch it asap.

saeedtabrizi commented 3 years ago

I just push a new definition that embedded to orientjs package and resolve some typings problems. implemented issues in #438 , #439 @mebibou