Closed LukaTchubabria closed 2 years ago
D3 does not maintain TypeScript declarations but some are maintained by the community as part of the DefinitelyTyped project.
As a workaround one can declare the needed exports in an ambient declaration (.d.ts file) as follows:
declare module "d3-geo-projection" {
import { GeoProjection } from "d3-geo"
export function geoPatterson(): GeoProjection
}
Does this library have no types? How to solve this problem?
import { geoCylindricalStereographic } from "d3-geo-projectio ] Could not find a declaration file for module 'd3-geo-projection'.