-
Notifications
You must be signed in to change notification settings - Fork 0
/
ponder-env.d.ts
27 lines (23 loc) · 1022 Bytes
/
ponder-env.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// This file enables type checking and editor autocomplete for this Ponder project.
// After upgrading, you may find that changes have been made to this file.
// If this happens, please commit the changes. Do not manually edit this file.
// See https://ponder.sh/docs/guides/typescript for more information.
declare module "@/generated" {
import type { Virtual } from "@ponder/core";
type config = typeof import("./ponder.config.ts").default;
type schema = typeof import("./ponder.schema.ts").default;
export const ponder: Virtual.Registry<config, schema>;
export type EventNames = Virtual.EventNames<config>;
export type Event<name extends EventNames = EventNames> = Virtual.Event<
config,
name
>;
export type Context<name extends EventNames = EventNames> = Virtual.Context<
config,
schema,
name
>;
export type IndexingFunctionArgs<name extends EventNames = EventNames> =
Virtual.IndexingFunctionArgs<config, schema, name>;
export type Schema = Virtual.Schema<schema>;
}