Skip to content

Commit f15435e

Browse files
author
Egor Didenko
authored
Merge pull request #67 from uploadcare/chore/update-deps-types
Chore/update deps types
2 parents 40432a9 + 0967e29 commit f15435e

File tree

7 files changed

+41
-14
lines changed

7 files changed

+41
-14
lines changed

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v4
1414
- uses: actions/setup-node@v4
1515
with:
16-
node-version: '16'
16+
node-version: "18"
1717
- name: Install dependencies
1818
working-directory: ./
1919
run: npm ci

package-lock.json

Lines changed: 26 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/react-adapter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"test": "vitest"
2323
},
2424
"peerDependencies": {
25-
"@types/react": "17 || 18"
25+
"@types/react": ">= 17.0.0"
2626
},
2727
"publishConfig": {
2828
"access": "public"

packages/react-uploader/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
},
1818
"./next": {
1919
"import": "./dist/nextjs.js",
20-
"require": "./dist/nextjs.cjs",
21-
"types": "./dist/nextjs.d.ts"
20+
"require": "./dist/nextjs.cjs"
2221
},
2322
"./core.css": "./dist/react-uploader.css"
2423
},
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import dynamic from "next/dynamic";
2+
import { TProps } from "../types";
3+
import { ComponentType } from "react";
24

3-
export const FileUploaderInline = dynamic(
5+
export const FileUploaderInline: ComponentType<TProps<"Inline">> = dynamic(
46
() => import("./FileUploaderInline").then((mod) => mod.FileUploaderInline),
5-
{ ssr: false },
7+
{ ssr: false }
68
);
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
import { ComponentType } from "react";
12
import dynamic from "next/dynamic";
3+
import { TProps } from "../types";
24

3-
export const FileUploaderMinimal = dynamic(
5+
export const FileUploaderMinimal: ComponentType<TProps<"Minimal">> = dynamic(
46
() => import("./FileUploaderMinimal").then((mod) => mod.FileUploaderMinimal),
5-
{ ssr: false },
7+
{ ssr: false }
68
);
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import dynamic from "next/dynamic";
2+
import { TProps } from "../types";
3+
import { ComponentType } from "react";
24

3-
export const FileUploaderRegular = dynamic(
5+
export const FileUploaderRegular: ComponentType<TProps<"Regular">> = dynamic(
46
() => import("./FileUploaderRegular").then((mod) => mod.FileUploaderRegular),
5-
{ ssr: false },
7+
{ ssr: false }
68
);

0 commit comments

Comments
 (0)