hastic-zzz / hastic-server

Hastic data management server for analyzing patterns and anomalies from Grafana
GNU General Public License v3.0
330 stars 23 forks source link

ERROR: Property 'length' is missing in type 'AnalyticMeta' #823

Closed VargBurz closed 4 years ago

VargBurz commented 4 years ago

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'.

image