You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a timeline for types to be provided for judoscale-express?
Getting this error:
Could not find a declaration file for module 'judoscale-express'.
'node_modules/judoscale-express/dist/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/judoscale-express` if it exists or add a new declaration (.d.ts) file containing `declare module 'judoscale-express';`
The text was updated successfully, but these errors were encountered:
I temporarily added this for my local, but it could be improved:
// src: https://github.com/judoscale/judoscale-node/tree/main/expressdeclare module "judoscale-express"{import{RequestHandler}from"express";functioninitialize({
report_interval_seconds =10,}: {// Specify how frequently data is sent to Judoscale.// Default: 10report_interval_seconds?: number;// Specify the API endpoint.// Default: process.env.JUDOSCALE_URLapi_base_url?: string;// Use a custom logger instance// Default: Winston logger instance (simple format)logger?: any;// todo: make this type better// Override the log level of the default logger (ignored if logger is overridden)// Default: process.env.JUDOSCALE_LOG_LEVEL || 'info'log_level?: string;// todo: make this type better}): RequestHandler;export=initialize;}
Is there a timeline for types to be provided for
judoscale-express
?Getting this error:
The text was updated successfully, but these errors were encountered: