[ 
https://issues.apache.org/jira/browse/TINKERPOP-2027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16664796#comment-16664796
 ] 

Jorge Bay commented on TINKERPOP-2027:
--------------------------------------

I think it would be best for the definition files to live inside this project, 
using a {{index.ts.d}} file: 
[http://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html]

Most of the GLV is generated using a groovy script: 
[https://github.com/apache/tinkerpop/blob/3.3.4/gremlin-javascript/glv/generate.groovy]
 , specifically the [process 
API|http://tinkerpop.apache.org/docs/current/reference/#the-graph-process] 
(traversal, traversal source, enums, ...).

The structure API ({{Vertex}}, {{Edge}}, properties and other representations) 
and driver API ({{RemoteConnection}}) are not generated but changes to that API 
are rare.

We can use the groovy script to partially generate the index definition file 
and manually code the other ones.

 

> Add a Typescript definitions file to the project
> ------------------------------------------------
>
>                 Key: TINKERPOP-2027
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2027
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: javascript
>    Affects Versions: 3.3.3, 3.2.9
>            Reporter: Matthew Allen
>            Priority: Major
>
> For those using Typescript it would be great to provide a type definition 
> file for the glv. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to