Skip to content

Docs Issue: middleware Typescript errors #273

Description

@omonk

Docs listed here produce typescript errors - https://chanfana.pages.dev/advanced-topics-patterns#middleware-and-interceptors

No overload matches this call.
  The last overload gave the following error.
    Argument of type 'typeof ProtectedEndpoint' is not assignable to parameter of type 'H<{ Bindings: Env; }, "/protected", BlankInput, Promise<any>>'.ts(2769)
types.d.ts(774, 5): The last overload is declared here.

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions