// Typecheck shim for Kody-provided virtual modules. The platform and // `kody dev` resolve `kody:runtime` and `kody:@owner/pkg/...` at bundle time; // tsc cannot, so they are typed loosely here. Tighten as your package grows. declare module 'kody:runtime' { import type { createContextKey } from 'remix/router' export const kody: Record Promise> export const packageContext: Record | undefined export function packageStorage(): any /** Request-context key for the Kody runtime (`context.get(KodyRuntime)`). */ export const KodyRuntime: ReturnType> const runtime: any export default runtime } // Every other `kody:@owner/pkg/...` import is typed as `any`. declare module 'kody:*'