Skip to content

Commit dd56b65

Browse files
committed
improve configs & fix bundler errors
1 parent 88758be commit dd56b65

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

src/client/index.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
import {
2-
ApiFromModules,
2+
type ApiFromModules,
33
createFunctionHandle,
4-
Expand,
5-
FunctionReference,
6-
GenericActionCtx,
7-
GenericDataModel,
8-
GenericMutationCtx,
9-
GenericQueryCtx,
4+
type Expand,
5+
type FunctionReference,
6+
type GenericActionCtx,
7+
type GenericDataModel,
8+
type GenericMutationCtx,
9+
type GenericQueryCtx,
1010
internalMutationGeneric,
1111
mutationGeneric,
1212
paginationOptsValidator,
1313
queryGeneric,
1414
} from "convex/server";
15-
import { GenericId, Infer, v } from "convex/values";
15+
import { v, type GenericId, type Infer } from "convex/values";
1616
import type { ComponentApi } from "../component/_generated/component.js";
1717
import { GetObjectCommand, PutObjectCommand } from "@aws-sdk/client-s3";
1818
import { S3Client } from "@aws-sdk/client-s3";

src/component/lib.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
1919
import { asyncMap } from "convex-helpers";
2020
import { paginator } from "convex-helpers/server/pagination";
2121
import { ActionRetrier } from "@convex-dev/action-retrier";
22-
import { R2Callbacks } from "../client";
22+
import type { R2Callbacks } from "../client";
2323

2424
const DEFAULT_LIST_LIMIT = 100;
2525
const retrier = new ActionRetrier(components.actionRetrier);

src/react/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useMutation } from "convex/react";
22
import { useCallback } from "react";
3-
import { ClientApi } from "../client";
3+
import type { ClientApi } from "../client";
44

55
/**
66
* A hook that allows you to upload a file to R2.

src/shared.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { GenericValidator, Infer, v } from "convex/values";
1+
import { v, type GenericValidator, type Infer } from "convex/values";
22
import { S3Client } from "@aws-sdk/client-s3";
3-
import { Doc, TableNames } from "./component/_generated/dataModel";
3+
import type { Doc, TableNames } from "./component/_generated/dataModel";
44

55
export const r2ConfigValidator = v.object({
66
bucket: v.string(),

src/svelte/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ClientApi } from "../client";
1+
import type { ClientApi } from "../client";
22
import { useConvexClient } from "convex-svelte";
33

44
/**

0 commit comments

Comments
 (0)