Skip to content

Commit 25811de

Browse files
Fix error: Client Functions cannot be passed directly to Server Functions (GH-91)
Co-authored-by: IRediTOTO <goddeadbb@gmail.com> Co-authored-by: ArtyomVancyan <44609997+ArtyomVancyan@users.noreply.github.com>
2 parents e71e0e5 + f2a48af commit 25811de

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

src/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use client";
2+
13
import {
24
ChangeEvent,
35
forwardRef,

src/styles.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use client";
2+
13
import {injectStyles, jsonToCss} from "react-phone-hooks/styles";
24
import commonStyles from "react-phone-hooks/stylesheet.json";
35
import {defaultPrefixCls} from "antd/es/config-provider";

src/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use client";
2+
13
import {ChangeEvent, KeyboardEvent, ReactNode} from "react";
24
import types from "react-phone-hooks/types";
35
import {InputProps} from "antd/es/input";

tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
"noImplicitAny": true,
44
"noUnusedLocals": true,
55
"noUnusedParameters": true,
6+
"noImplicitUseStrict": true,
67
"strictNullChecks": true,
78
"module": "esnext",
89
"moduleResolution": "node",
10+
"ignoreDeprecations": "5.0",
911
"resolveJsonModule": true,
1012
"outDir": ".",
1113
"esModuleInterop": true,

0 commit comments

Comments
 (0)