Skip to content

[BUG]:Fix TypeScript implicit error in newsletter_subscription.ts #5077

@Sourya07

Description

@Sourya07

The variable interest in
netlify/functions/newsletter_subscription.ts
and for github_discussion
is currently treated as any. This causes a TypeScript error when it is used to index config.interests, which has a strict type definition and also for err.

Error Message:Element implicitly has an 'any' type because expression of type 'any' can't be used to index type '{ Newsletter: string; Meetings: string; "TSC Voting": string; }'.ts(7053)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions