Skip to content

Document generic types available in the envio packageΒ #630

@PaulRBerg

Description

@PaulRBerg

I wanted to import the Envio generic types (e.g. genericEvent) not from my auto-generated types but from the envio package (the goal is to make code reuse easier between different indexers).

I looked up this information in the docs but it looks like this feature is not documented:

Image

But the feature exists β€” the envio package exports generic types, as I can see on npmjs.com.

The types can be imported like so:

import type { genericEvent } from "envio/src/Internal.gen";

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