Better Payment 0.11.1 API
    Preparing search index...

    Interface FastifyInstanceLike

    The parts of a Fastify instance the plugin uses

    interface FastifyInstanceLike {
        addContentTypeParser(
            contentType: string,
            options: { parseAs: "string" },
            parser: (
                request: unknown,
                body: string,
                done: (error: Error | null, body?: unknown) => void,
            ) => void,
        ): void;
        all(
            path: string,
            handler: (
                request: FastifyRequestLike,
                reply: FastifyReplyLike,
            ) => Promise<unknown>,
        ): unknown;
        hasContentTypeParser(contentType: string): boolean;
    }
    Index
    • Parameters

      • contentType: string
      • options: { parseAs: "string" }
      • parser: (
            request: unknown,
            body: string,
            done: (error: Error | null, body?: unknown) => void,
        ) => void

      Returns void

    • Parameters

      Returns unknown

    • Parameters

      • contentType: string

      Returns boolean