Skip to content

context assert error "Assertions require every name in the call target to be declared with an explicit type annotation" #445

@nameOfUser0236

Description

@nameOfUser0236

oak's context's assert function generates the following error:
Assertions require every name in the call target to be declared with an explicit type annotation
as shown by this example:

import * as oak from "https://deno.land/x/oak/mod.ts";

const app = new oak.Application();

app.use((ctx) => {
    ctx.assert(true);
});

await app.listen({ port: 8000 });

I suspect that it is because the condition is any.
Some help would be appreciated as my current workaround is very painful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions