shutterstock / gremlin-aws-sigv4

Extension for Apache's TinkerPop3 Gremlin JS driver compatible with IAM Database Authentication for Neptune
MIT License
29 stars 16 forks source link

Export TypeScript definitions #16

Open bhoudu opened 3 years ago

bhoudu commented 3 years ago

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.

glitchgirl commented 3 years ago

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'"?

bhoudu commented 3 years ago

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.

glitchgirl commented 3 years ago

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