Skip to content

Commit 0265cfa

Browse files
authored
docs(astro): Remove typescript declaration step (#1808)
1 parent c949131 commit 0265cfa

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

docs/quickstarts/astro.mdx

-13
Original file line numberDiff line numberDiff line change
@@ -105,19 +105,6 @@ description: Add authentication and user management to your Astro app with Clerk
105105
```
106106
1. By default, `clerkMiddleware()` will not protect any routes. All routes are public and you must opt-in to protection for routes. See the [`clerkMiddleware()` reference](/docs/references/astro/clerk-middleware) to learn how to require authentication for specific routes.
107107

108-
## Add TypeScript declarations
109-
110-
Update the `env.d.ts` file in your `src/` directory to add type definitions for the `locals` added by the middleware.
111-
112-
```ts {{ prettier: false, filename: 'src/env.d.ts', mark: [3] }}
113-
// The line directly below will only be present if you've ran your app
114-
// Don't worry about adding it manually
115-
/// <reference path="../.astro/types.d.ts" />
116-
117-
/// <reference types="astro/client" />
118-
/// <reference types="@clerk/astro/env" />
119-
```
120-
121108
## Add Clerk components to your app
122109

123110
You can control which content signed-in and signed-out users can see with Clerk's [prebuilt control components](/docs/components/overview#what-are-control-components). Create a header using the following components:

0 commit comments

Comments
 (0)