Doesn't look like the types for the recording appender are defined maybe?
import * as recording from "log4js/lib/appenders/recording";
Outputs:
TSError: TypeScript diagnostics (customize using `[jest-config].globals.ts-jest.diagnostics` option):
src/utils/logging.ts:2:27 - error TS7016: Could not find a declaration file for module 'log4js/lib/appenders/recording'. '/project/node_modules/log4js/lib/appenders/recording.js' implicitly has an 'any' type.
Try `npm install @types/log4js` if it exists or add a new declaration (.d.ts) file containing `declare module 'log4js/lib/appenders/recording';`
2 import { recording } from 'log4js/lib/appenders/recording';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Is there a way for me to import this appender in typescript?
Doesn't look like the types for the recording appender are defined maybe?
Outputs:
Is there a way for me to import this appender in typescript?