Wraps a function that creates a custom provider from the shared settings.
export const myPos = (config: MyPosConfig) => defineProvider((ctx) => new MyPos({ ...config, logger: config.logger ?? ctx.logger })); Copy
export const myPos = (config: MyPosConfig) => defineProvider((ctx) => new MyPos({ ...config, logger: config.logger ?? ctx.logger }));
Wraps a function that creates a custom provider from the shared settings.