← Public packages
@kentcdodds/package-app-kit
Design tokens, PWA install/update, About/version, cache helpers, and optional realtime notes sync for Kody package apps.
// 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<string, (input?: any) => Promise<any>>
export const packageContext: Record<string, any> | undefined
export function packageStorage(): any
/** Request-context key for the Kody runtime (`context.get(KodyRuntime)`). */
export const KodyRuntime: ReturnType<typeof createContextKey<any>>
const runtime: any
export default runtime
}
// Every other `kody:@owner/pkg/...` import is typed as `any`.
declare module 'kody:*'