Skip to content

Commit

Permalink
Merge pull request #11 from willmanduffy/move-env-types
Browse files Browse the repository at this point in the history
Move Env type to types folder
  • Loading branch information
willmanduffy authored Dec 1, 2024
2 parents ad9d358 + 168fab3 commit cfb93f1
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/api-wrappers/bluesky.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
AtpSessionData,
} from "@atproto/api";

import { Env } from "../types";
import { Env } from "../types/env";
import { RateLimitError } from "../errors";
import { BlueskyRateLimitExceededError } from "../types/bluesky";

Expand Down
2 changes: 1 addition & 1 deletion src/api-wrappers/lastfm.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { LastFm } from "@imikailoby/lastfm-ts";
import { RecentTrack } from "./lastfm.types";
import { Env } from "../types";
import { Env } from "../types/env";
import { NormalizedTrack } from "../types/track";

export class LastFM {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { sync } from "./services/sync";
import { Env } from "./types";
import { Env } from "./types/env";

export default {
async scheduled(event: ScheduledEvent, env: Env): Promise<void> {
Expand Down
2 changes: 1 addition & 1 deletion src/services/latest-track-fetcher.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { LastFM } from "../api-wrappers/lastfm";
import { NoEnabledServicesError } from "../errors";
import { Env } from "../types";
import { Env } from "../types/env";
import { NormalizedTrack } from "../types/track";

type EnabledServices = "lastfm";
Expand Down
2 changes: 1 addition & 1 deletion src/services/sync.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Env } from "../types";
import { Env } from "../types/env";
import { BlueSky } from "../api-wrappers/bluesky";
import { LatestTrackFetcher } from "./latest-track-fetcher";
import { ProfileDescriptionGenerator } from "./profile-description-generator";
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/fixtures/env.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { vi } from "vitest";
import { Env } from "../../src/types";
import { Env } from "../../src/types/env";

export const mockEnv: Env = {
BLUESKY_SESSION_STORAGE: {
Expand Down

0 comments on commit cfb93f1

Please sign in to comment.