Globally augmentable interface for strongly typing pop.locals.
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.
.d.ts
// src/types.d.tsdeclare module "popii" { interface PopiiLocals { dbUser: { id: string; balance: number; premium: boolean }; guildConfig: Record<string, string>; }} Copy
// src/types.d.tsdeclare module "popii" { interface PopiiLocals { dbUser: { id: string; balance: number; premium: boolean }; guildConfig: Record<string, string>; }}
Globally augmentable interface for strongly typing
pop.locals.Declare this in any
.d.tsfile in your project to add typed properties that are accessible onpop.localsinside every command, snap, and middleware.Example