export type ResourceFetcher = ( method: ResourceFetchMethod, url: string, body?: Record | null ) => Promise export type ResourceFetchMethod = 'get' | 'post'