Skip to content

Getting typeError with R2Callbacks #11

@ahmed-deftoner

Description

@ahmed-deftoner

Getting type error when trying to run the example code

here's the error:

Type '{ insertImage: FunctionReference<"mutation", "internal", { key: string; }, null, string | undefined>; }' has no properties in common with type 'R2Callbacks'.

for the code

const callbacks: R2Callbacks = internal.storage;

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