We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efba477 commit 0d16df9Copy full SHA for 0d16df9
site/src/api/api.ts
@@ -1,10 +1,15 @@
1
+/**
2
+ * @fileoverview This file is imported externally by things like vscode-coder so
3
+ * it must not import anything using aliases otherwise it will break when being
4
+ * imported by those external consumers. For example, `utils/delay` must be
5
+ * imported using `../utils/delay` instead.
6
+ */
7
+
8
import axios, { isAxiosError } from "axios";
9
import type dayjs from "dayjs";
10
import userAgentParser from "ua-parser-js";
-import { delay } from "utils/delay";
11
+import { delay } from "../utils/delay";
12
import * as TypesGen from "./typesGenerated";
-// This needs to include the `../`, otherwise it breaks when importing into
-// vscode-coder.
13
14
// Adds 304 for the default axios validateStatus function
15
// https://github.com/axios/axios#handling-errors Check status here
0 commit comments