The @runtime-edge/types package has the TypeScript global types for using Runtime Edge.
npm install @runtime-edge/types
If you need to have these types loaded as part of the global context, you can add them inside tsconfig.json:
{
"compilerOptions": {
"types": ["@runtime-edge/types"]
}
}
Alternatively, you can load them using triple-slash directive as well:
/// <reference types="@runtime-edge/types" />