Skip to content

Commit 99fed3e

Browse files
committed
chore: remove FutureContext now that waitUntil type is defined
1 parent fe49b93 commit 99fed3e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/run/handlers/request-context.cts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ import type { NetlifyCachedRouteValue } from '../../shared/cache-types.cjs'
77

88
type SystemLogger = typeof systemLogger
99

10-
// TODO: remove once public types are updated
11-
export interface FutureContext extends Context {
12-
waitUntil?: (promise: Promise<unknown>) => void
13-
}
14-
1510
export type RequestContext = {
1611
/**
1712
* Determine if this request is for CDN SWR background revalidation
@@ -43,7 +38,7 @@ export type RequestContext = {
4338

4439
type RequestContextAsyncLocalStorage = AsyncLocalStorage<RequestContext>
4540

46-
export function createRequestContext(request?: Request, context?: FutureContext): RequestContext {
41+
export function createRequestContext(request?: Request, context?: Context): RequestContext {
4742
const backgroundWorkPromises: Promise<unknown>[] = []
4843

4944
const isDebugRequest =

0 commit comments

Comments
 (0)