Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add typings #1

Open
agalazis opened this issue Nov 24, 2017 · 4 comments
Open

add typings #1

agalazis opened this issue Nov 24, 2017 · 4 comments
Assignees

Comments

@agalazis
Copy link

add typings either in definitely typed or this project

@richardhyatt
Copy link
Contributor

Can you provide an example of how it would be used?

@richardhyatt richardhyatt self-assigned this Nov 24, 2017
@agalazis
Copy link
Author

agalazis commented Nov 24, 2017

They would support intellisense for typescript projects . An example project written in es6 and typed afterwards that I can think of is neo4j-javascript-driver. Have a look in types folder:
https://github.com/neo4j/neo4j-javascript-driver

also tsc configuration is in tsconfig.json

typings are configured in package.json with the entry:
"types": "types/index.d.ts"

then people are able to load that in their typescript projects using:
import * as Neo4J from "neo4j-driver";

@agalazis
Copy link
Author

@richardhyatt
Copy link
Contributor

Can you fork and create a pull request - thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants