Files
med-notes/.pnpm-store/v10/files/da/baf73e6dde7a838df70c73cccca6ba66af1ff2bbeb30fa325b7ceebfb1e3adb6c889464587853115f7c091c14098282bd416384fc24aba5bbe4bfdd0da3ea7
2025-05-09 05:30:08 +02:00

22 lines
698 B
Plaintext

/**
* An object of unknown type for route loaders and actions provided by the
* server's `getLoadContext()` function. This is defined as an empty interface
* specifically so apps can leverage declaration merging to augment this type
* globally: https://www.typescriptlang.org/docs/handbook/declaration-merging.html
*/
interface AppLoadContext {
[key: string]: unknown;
}
/**
* An augmentable interface users can modify in their app-code to opt into
* future-flag-specific types
*/
interface Future {
}
type MiddlewareEnabled = Future extends {
unstable_middleware: infer T extends boolean;
} ? T : false;
export type { AppLoadContext as A, Future as F, MiddlewareEnabled as M };