Move types to lib directory for better organization
- Move types/location.ts to lib/types.ts - Update all imports from @/types/location to @/lib/types - Remove empty types/ directory - Better aligns with Next.js conventions 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
import { useEffect, useState } from "react";
|
||||
import { useSession } from "next-auth/react";
|
||||
import { LocationResponse } from "@/types/location";
|
||||
import { LocationResponse } from "@/lib/types";
|
||||
|
||||
interface DeviceInfo {
|
||||
id: string;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { NextRequest, NextResponse } from "next/server";
|
||||
import type { LocationResponse } from "@/types/location";
|
||||
import type { LocationResponse } from "@/lib/types";
|
||||
import { locationDb, Location, deviceDb, userDb } from "@/lib/db";
|
||||
import { auth } from "@/lib/auth";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user