Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit553af86

Browse files
committed
fix: importing api into vscode-coder
1 parente45d511 commit553af86

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

‎site/src/api/api.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
importaxios,{isAxiosError}from"axios";
22
importtypedayjsfrom"dayjs";
33
importuserAgentParserfrom"ua-parser-js";
4-
import{delay}from"utils/delay";
4+
import{delay}from"../utils/delay";
55
import*asTypesGenfrom"./typesGenerated";
6-
// This needs to include the `../`, otherwise it breaks when importing into
7-
// vscode-coder.
6+
7+
// This file is imported externally by things like vscode-coder so it must not
8+
// import anything using aliases otherwise it will break when being imported in
9+
// those external consumers. For example, utils/delay must be imported using
10+
// ../utils/delay.
811

912
// Adds 304 for the default axios validateStatus function
1013
// https://github.com/axios/axios#handling-errors Check status here

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp