Helper function to create a provider with proper type inference.
This is a simple identity function that helps TypeScript infer the correct types for the provider definition.
export const myProvider = createProvider({ name: "my-provider", config: { schema: z.object({ apiKey: z.string() }), envPrefix: "MY_SERVICE_", }, async setup({ config }) { return { ports: { myService: createMyService(config) } }; },}); Copy
export const myProvider = createProvider({ name: "my-provider", config: { schema: z.object({ apiKey: z.string() }), envPrefix: "MY_SERVICE_", }, async setup({ config }) { return { ports: { myService: createMyService(config) } }; },});
Helper function to create a provider with proper type inference.
This is a simple identity function that helps TypeScript infer the correct types for the provider definition.