You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/ts-next-plugin/README.md
+8-4
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,9 @@ This is a TypeScript Language Server plugin for the Next.js app directory.
9
9
- Error ts(71016): the `'use client'` directive is used at the same time as `'use server'` directive
10
10
- Error ts(71015): the `'use server'` directive must be above all other expressions
11
11
- Error ts(71011): validates that server files can only export async functions
12
-
- Error ts(71001): the following `react` and `react-dom` APIs are not allowed in Server Components: `useState`, `useEffect`, `useLayoutEffect`, `useDeferredValue`, `useImperativeHandle`, `useInsertionEffect`, `useReducer`, `useRef`, `useSyncExternalStore`, `useTransition`, `Component`, `PureComponent`, `createContext`, `createFactory`, `experimental_useOptimistic`, `useOptimistic`, and `useActionState`.
13
-
- Hide autocompletions for disallowed APIs such as `useState`
14
-
-Show errors if disallowed APIs such as `useState` are used
12
+
- Error ts(71001): [`DISALLOWED_SERVER_REACT_APIS`](#glossary)are not allowed in Server Components.
13
+
- Hide autocompletions for [`DISALLOWED_SERVER_REACT_APIS`](#glossary).
14
+
-Modify completions for Next.js metadata (and show it higher up).
15
15
16
16
### 📺 Client Layer
17
17
@@ -32,5 +32,9 @@ This is a TypeScript Language Server plugin for the Next.js app directory.
32
32
- Error ts(71002): config files can only export the values: `config`, `generateStaticParams`, `metadata`, `generateMetadata`, `viewport`, and `generateViewport`.
33
33
- Error ts(71012): config values must match the schema
34
34
- Error ts(71013): config values must be serializable
0 commit comments