File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1- /// <reference types="@cloudflare/workers-types" />
2-
31import type { AuthContext , Session , User } from "better-auth" ;
42import type { DrizzleAdapterConfig } from "better-auth/adapters/drizzle" ;
53import type { FieldAttribute } from "better-auth/db" ;
@@ -116,7 +114,13 @@ export interface WithCloudflareOptions<
116114/**
117115 * Cloudflare geolocation data
118116 */
119- export interface CloudflareGeolocation extends Partial < IncomingRequestCfProperties > { }
117+ /**
118+ * Ensures TypeScript loads `@cloudflare/workers-types` when consuming this
119+ * package's declaration files (required for `IncomingRequestCfProperties`).
120+ */
121+ export type CloudflareWorkersTypes = typeof import ( "@cloudflare/workers-types" ) ;
122+
123+ export interface CloudflareGeolocation extends Partial < IncomingRequestCfProperties > { }
120124
121125/**
122126 * Session type enhanced with Cloudflare geolocation data
You can’t perform that action at this time.
0 commit comments