gremlin-aws-sigv4 icon indicating copy to clipboard operation
gremlin-aws-sigv4 copied to clipboard

Export TypeScript definitions

Open bhoudu opened this issue 3 years ago • 3 comments

This is more of a feature request than a bug. It would be great to support TypeScript and produce index.d.ts so importing and using this lib would be easier.

bhoudu avatar Apr 26 '21 15:04 bhoudu

Were you able to get it to work with typescript? I am currently getting an error that says "Property AwsSigV4DriverRemoteConnection does not exist on type 'typeof driver'"?

glitchgirl avatar May 04 '21 13:05 glitchgirl

Basically you can do without the types, but would be better if it was included. I just ended up reading this short useful lib and import * as gremlin to fallback.

import * as gremlin from 'gremlin-aws-sigv4';
import RemoteConnection = gremlin.driver.RemoteConnection;
import DriverRemoteConnection = gremlin.driver.DriverRemoteConnection;
import AwsSigV4DriverRemoteConnection = gremlin.driver.AwsSigV4DriverRemoteConnection

This lib gremlin-aws-sigv4 exports all that is included in vanilla gremlin lib.

bhoudu avatar May 04 '21 13:05 bhoudu

Thank you that helped a lot. Now I am just working on getting my queries to play nicely with Neptune. thanks!

glitchgirl avatar May 04 '21 18:05 glitchgirl