Create TypeScript definitions
Anyone interested?
@tomchentw Yes. Please create definition. I am using typescript on my project, but there are no .d.ts gile for maps. Thank you.
Should I create PR here or in https://github.com/DefinitelyTyped/DefinitelyTyped?
@mxl you can create PR here.
Any update on this?
I haven't used typescript in about a year, going to defer this to someone else thats more familiar and can crank it out without reading alot of docs
I'm almost done writing definitions and will submit PR this weekend.
@mxl you're awesome!
@tomchentw Sorry, I was busy on that weekend. I will finish the work this week.
No rush.
@mxl no rush, but please keep us posted regarding the progress on this issue.
also interested in this
PR's are welcomed!
Also, you may be interested to generate typed code from src/macro directly using jscodeshift API. That could save you lots of time.
Guys, sorry for late response. I've continued my work on definitions. See #646.
I've almost finished definitions. You can test them by installing react-google-maps with npm install github:mxl/react-google-maps#typescript-definitions.
also interested
Released v9.3.0
If you has an error like - Cannot find namespace 'google' or Cannot find name 'Calculator':
pay attention that in library in node_modules/react-google-maps/package.json it's a peerDependencies that you relay need:
npm i --save @types/googlemaps
npm i --save @types/markerclustererplus
and it's spouse to work.
Has anyone been able to get this to work that can share an example? Using examples from the documentation I'm still met with TS errors.
@afholderman What errors do you have?