Factory function that creates extension methods from a context.
The shape of the methods object returned by this factory.
const factory: ExtensionFactory<{ approve(id: string): Promise<void>;}> = (ctx) => ({ async approve(id: string) { await ctx.handler.click({ id }); },}); Copy
const factory: ExtensionFactory<{ approve(id: string): Promise<void>;}> = (ctx) => ({ async approve(id: string) { await ctx.handler.click({ id }); },});
Factory function that creates extension methods from a context.