Currently the types field targets to types/bmapgl/index.d.ts where defines GL JSAPI types in BMapGL namespace. There is a problem when we import this package:
Because of the types field, TypeScript can only find the BMapGL namespace in this package, all the types from the src are not exposed.
I think the types field should be dist/index.d.ts (not the previous dist/types/index.d.ts). If users complain they cannot get the type declarations for BMapGL, they should install @types/bmapgl.
This doc in this repo talks about the relations between types/bmapgl and @types/bmapgl. Users can just get BMapGL type definitions from @types/bmapgl, not from this project.
Currently the
types
field targets totypes/bmapgl/index.d.ts
where defines GL JSAPI types inBMapGL
namespace. There is a problem when we import this package:Because of the
types
field, TypeScript can only find theBMapGL
namespace in this package, all the types from the src are not exposed.I think the
types
field should bedist/index.d.ts
(not the previousdist/types/index.d.ts
). If users complain they cannot get the type declarations forBMapGL
, they should install@types/bmapgl
.This doc in this repo talks about the relations between
types/bmapgl
and@types/bmapgl
. Users can just getBMapGL
type definitions from@types/bmapgl
, not from this project.