PopiiLocals
Popii / PopiiLocals
Interface: PopiiLocals
Section titled “Interface: 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.
Example
Section titled “Example”declare module "popii" { interface PopiiLocals { dbUser: { id: string; balance: number; premium: boolean }; guildConfig: Record<string, string>; }}