Skip to content

Commit

Permalink
chore(dash): adjust types
Browse files Browse the repository at this point in the history
  • Loading branch information
slowlydev committed Mar 8, 2024
1 parent dfcf2a0 commit a17ecbf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dash/src/components/SessionInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
import { utc, duration } from "moment";

import { ExtrapolatedClock } from "../types/extrapolated-clock.type";
import { SessionInfo } from "../types/session.type";
import { SessionInfo as SessionInfoType } from "../types/session.type";

import Flag from "./Flag";

import { useSocket } from "../context/SocketContext";

type Props = {
session: SessionInfo | undefined;
session: SessionInfoType | undefined;
clock: ExtrapolatedClock | undefined;
};

Expand Down
2 changes: 1 addition & 1 deletion dash/src/components/TeamRadioMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type Props = {

export default function TeamRadioMessage({ teamRadio }: Props) {
const audioRef = useRef<HTMLAudioElement | null>(null);
const intervalRef = useRef<NodeJS.Timer | null>(null);
const intervalRef = useRef<NodeJS.Timeout | null>(null);

const [playing, setPlaying] = useState<boolean>(false);
const [duration, setDuration] = useState<number>(0);
Expand Down
2 changes: 0 additions & 2 deletions dash/src/env.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@ const server = z.object({

const client = z.object({
NEXT_PUBLIC_SERVER_URL: z.string().min(1).includes("http"),
NEXT_PUBLIC_SOCKET_SERVER_URL: z.string().min(1).includes("ws"),
NEXT_PUBLIC_DISABLE_TRACKING: z.string().optional(),
});

const processEnv = {
NODE_ENV: process.env.NODE_ENV,
NEXT_PUBLIC_SERVER_URL: process.env.NEXT_PUBLIC_SERVER_URL,
NEXT_PUBLIC_SOCKET_SERVER_URL: process.env.NEXT_PUBLIC_SOCKET_SERVER_URL,
NEXT_PUBLIC_DISABLE_TRACKING: process.env.NEXT_PUBLIC_DISABLE_TRACKING,
};

Expand Down

0 comments on commit a17ecbf

Please sign in to comment.