-
Notifications
You must be signed in to change notification settings - Fork 764
Closed
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request