Skip to content

PopiiLocals

Popii


Popii / PopiiLocals

Defined in: types.ts:113

Globally augmentable interface for strongly typing pop.locals.

Declare this in any .d.ts file in your project to add typed properties that are accessible on pop.locals inside every command, snap, and middleware.

src/types.d.ts
declare module "popii" {
interface PopiiLocals {
dbUser: { id: string; balance: number; premium: boolean };
guildConfig: Record<string, string>;
}
}