Skip to content

Doesn't exist types/handler-logs.d.ts #4926

@Kazy1014

Description

@Kazy1014

Version

No response

Operating System

No response

Browser

No response

What are the steps to reproduce this bug?

Fixed the TypeScript error for @webiny/handler-logs by adding a type declaration file.
Changes Made:
Created type definition file: Added types/handler-logs.d.ts with a declaration for the @webiny/handler-logs module. The module exports a function that returns an array of plugins (currently an empty array, as the package is deprecated and will be removed in version 5.44.0).
Updated tsconfig.json: Modified apps/api/graphql/tsconfig.json to include the types directory in the include array, so TypeScript can find the type definition files.
Why This Was Needed:
The @webiny/handler-logs package doesn't include TypeScript type definitions. When TypeScript encounters a module without type definitions, it reports an error. Adding a declare module statement provides the necessary types and resolves the error.
The type definition file is now located at types/handler-logs.d.ts and follows the same pattern as other type definitions in your project (like types/emotion/index.d.ts).
The error should now be resolved, and TypeScript will recognize the module correctly.

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

Possible solution

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions