import nodeFetch from "node-fetch" ; import { Client , createClient } from "../../generated/pagopa-proxy/client" ; export function PagoPAClient ( baseUrl , fetchApi = ( nodeFetch as unknown ) as typeof fetch ) { return createClient ( { basePath : "" , baseUrl , fetchApi } ) ; } export type PagoPAClient = typeof PagoPAClient ;