react-google-maps icon indicating copy to clipboard operation
react-google-maps copied to clipboard

Create TypeScript definitions

Open tomchentw opened this issue 10 years ago • 37 comments

tomchentw avatar Oct 14 '16 15:10 tomchentw

Anyone interested?

tomchentw avatar Apr 20 '17 06:04 tomchentw

@tomchentw Yes. Please create definition. I am using typescript on my project, but there are no .d.ts gile for maps. Thank you.

gochi-dot avatar Apr 24 '17 06:04 gochi-dot

Should I create PR here or in https://github.com/DefinitelyTyped/DefinitelyTyped?

mxl avatar May 26 '17 20:05 mxl

@mxl you can create PR here.

tomchentw avatar Jul 06 '17 02:07 tomchentw

Any update on this?

AAllport avatar Aug 24 '17 16:08 AAllport

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

oshalygin avatar Aug 24 '17 17:08 oshalygin

I'm almost done writing definitions and will submit PR this weekend.

mxl avatar Aug 24 '17 17:08 mxl

@mxl you're awesome!

tomchentw avatar Sep 06 '17 14:09 tomchentw

@tomchentw Sorry, I was busy on that weekend. I will finish the work this week.

mxl avatar Sep 06 '17 14:09 mxl

No rush.

tomchentw avatar Sep 06 '17 14:09 tomchentw

@mxl no rush, but please keep us posted regarding the progress on this issue.

kenjiru avatar Sep 24 '17 21:09 kenjiru

also interested in this

simran5 avatar Oct 03 '17 05:10 simran5

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.

tomchentw avatar Oct 05 '17 07:10 tomchentw

Guys, sorry for late response. I've continued my work on definitions. See #646.

mxl avatar Oct 05 '17 15:10 mxl

I've almost finished definitions. You can test them by installing react-google-maps with npm install github:mxl/react-google-maps#typescript-definitions.

mxl avatar Oct 06 '17 23:10 mxl

also interested

ChuckJonas avatar Oct 30 '17 22:10 ChuckJonas

Released v9.3.0

tomchentw avatar Nov 24 '17 03:11 tomchentw

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.

israellev avatar Jan 04 '18 17:01 israellev

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 avatar Jan 10 '18 17:01 afholderman

@afholderman What errors do you have?

mxl avatar Jan 10 '18 18:01 mxl