plot icon indicating copy to clipboard operation
plot copied to clipboard

Export types expected by the geo mark

Open nshiab opened this issue 1 year ago • 2 comments

Hi!

Would it be possible to export the type expected by the geo mark?

This would be helpful when working with TypeScript.

From what I understand, we currently need to install d3-geo to access the GeoPermissible type. If this type were exported directly from plot, explicitly installing d3-geo wouldn't be necessary.

Thank you!

nshiab avatar Feb 04 '25 20:02 nshiab

Would we use https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/geojson/index.d.ts rather than the d3 types here? (We might have to add the sphere object, but I can't really make sense of the additional definitions in GeoPermissible.)

Fil avatar Feb 07 '25 09:02 Fil

This is a great idea!

nshiab avatar Feb 07 '25 14:02 nshiab