12345678910111213 |
- import { __awaiter, __generator } from "tslib";
- import { fetchOrThrow } from './fetchOrThrow';
- export function fetchJson(uri) {
- return __awaiter(this, void 0, void 0, function () {
- return __generator(this, function (_a) {
- switch (_a.label) {
- case 0: return [4 /*yield*/, fetchOrThrow(uri)];
- case 1: return [2 /*return*/, (_a.sent()).json()];
- }
- });
- });
- }
- //# sourceMappingURL=fetchJson.js.map
|