File tree Expand file tree Collapse file tree 5 files changed +13
-13
lines changed Expand file tree Collapse file tree 5 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 11import {
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" ;
1616import type { ComponentApi } from "../component/_generated/component.js" ;
1717import { GetObjectCommand , PutObjectCommand } from "@aws-sdk/client-s3" ;
1818import { S3Client } from "@aws-sdk/client-s3" ;
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
1919import { asyncMap } from "convex-helpers" ;
2020import { paginator } from "convex-helpers/server/pagination" ;
2121import { ActionRetrier } from "@convex-dev/action-retrier" ;
22- import { R2Callbacks } from "../client" ;
22+ import type { R2Callbacks } from "../client" ;
2323
2424const DEFAULT_LIST_LIMIT = 100 ;
2525const retrier = new ActionRetrier ( components . actionRetrier ) ;
Original file line number Diff line number Diff line change 11import { useMutation } from "convex/react" ;
22import { 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.
Original file line number Diff line number Diff line change 1- import { GenericValidator , Infer , v } from "convex/values" ;
1+ import { v , type GenericValidator , type Infer } from "convex/values" ;
22import { S3Client } from "@aws-sdk/client-s3" ;
3- import { Doc , TableNames } from "./component/_generated/dataModel" ;
3+ import type { Doc , TableNames } from "./component/_generated/dataModel" ;
44
55export const r2ConfigValidator = v . object ( {
66 bucket : v . string ( ) ,
Original file line number Diff line number Diff line change 1- import { ClientApi } from "../client" ;
1+ import type { ClientApi } from "../client" ;
22import { useConvexClient } from "convex-svelte" ;
33
44/**
You can’t perform that action at this time.
0 commit comments