8000 chore: switch to generated types by code-asher · Pull Request #1394 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

chore: switch to generated types #1394

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
May 12, 2022
Merged
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'origin/main' into asher/generated-types
  • Loading branch information
code-asher committed May 11, 2022
commit 22de9073b55b061d52ecdf21480dd42f596a14a9
2 changes: 1 addition & 1 deletion site/src/api/api.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import axios from "axios"
import { getApiKey, login, logout } from "."
import { getApiKey, login, logout } from "./api"
import * as TypesGen from "./typesGenerated"

// Mock the axios module so that no real network requests are made, but rather
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useSelector } from "@xstate/react"
import React, { useCallback, useContext } from "react"
import { useNavigate, useParams } from "react-router-dom"
import useSWR from "swr"
import * as API from "../../../../api"
import * as API from "../../../../api/api"
import * as TypesGen from "../../../../api/typesGenerated"
impo 8000 rt { ErrorSummary } from "../../../../components/ErrorSummary/ErrorSummary"
import { FullScreenLoader } from "../../../../components/Loader/FullScreenLoader"
Expand Down
2 changes: 1 addition & 1 deletion site/src/xServices/auth/authXService.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assign, createMachine } from "xstate"
import * as API from "../../api"
import * as API from "../../api/api"
import * as TypesGen from "../../api/typesGenerated"
import { displaySuccess } from "../../components/GlobalSnackbar/utils"

Expand Down
2 changes: 1 addition & 1 deletion site/src/xServices/buildInfo/buildInfoXService.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assign, createMachine } from "xstate"
import * as API from "../../api"
import * as API from "../../api/api"
import * as TypesGen from "../../api/typesGenerated"

export interface BuildInfoContext {
Expand Down
2 changes: 1 addition & 1 deletion site/src/xServices/workspace/workspaceXService.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assign, createMachine } from "xstate"
import * as API from "../../api"
import * as API from "../../api/api"
import * as TypesGen from "../../api/typesGenerated"

interface WorkspaceContext {
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0