ngageoint / geopackage-js

GeoPackage JavaScript Library
http://ngageoint.github.io/geopackage-js/
MIT License
304 stars 78 forks source link

Error wih typescript 4 #167

Open aprilmay opened 3 years ago

aprilmay commented 3 years ago

In an attempt to use geopackage.js with Angular 11, which depends on typescript 4, the following error is shown:

Error: node_modules/@ngageoint/geopackage/built/lib/extension/style/styleMappingDao.d.ts:22:5 - error TS2610: 'table' is defined as an accessor in class 'UserMappingDao<StyleMappingRow>', but is overridden here in 'StyleMappingDao' as an instance property.

I'm not a typescript expert, but this seems to be relevant: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-0.html#properties-overriding-accessors-and-vice-versa-is-an-error