Seeking Improved Method to Fetch Packages in Typescript

Is there a better way to do this?

const fetchPackages = Effect.flatten(
    Effect.once(Effect.tryPromise(() => fetch(QUOTE_PACKAGES_URL).then((res) => res.json()))),
)
Was this page helpful?