ERROR: Property 'length' is missing in type 'AnalyticMeta'
Closed this issue · 0 comments
VargBurz commented
If you try to build server with typescript
version ~3.5.3
, you will get an error:
ERROR in /mnt/c/Users/VargB/git/hastic-server/server/src/services/notification_service.ts
./src/services/notification_service.ts
[tsl] ERROR in /mnt/c/Users/VargB/git/hastic-server/server/src/services/notification_service.ts(75,36)
TS2345: Argument of type 'Notification' is not assignable to parameter of type 'ParsedUrlQueryInput'.
Property 'meta' is incompatible with index signature.
Type 'AnalyticMeta | MetaInfo' is not assignable to type 'string | number | boolean | string[] | number[] | boolean[]'.
Type 'AnalyticMeta' is not assignable to type 'string | number | boolean | string[] | number[] | boolean[]'.
Type 'AnalyticMeta' is not assignable to type 'boolean[]'.
Property 'length' is missing in type 'AnalyticMeta'.