Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 13-js-api-pygments/ts/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import templateHtml from './template.html';

interface Env {
PYTHON_RPC: Service;
PYTHON_RPC: HighlighterRpcService;
}

// Type definition for the Python RPC service methods
Expand All @@ -12,7 +12,7 @@ interface HighlighterRpcService {
export default {
async fetch(request, env, ctx): Promise<Response> {
// Get the RPC stub from the Python worker
const rpc = env.PYTHON_RPC as any as HighlighterRpcService;
const rpc = env.PYTHON_RPC;

// Sample code to highlight
const sampleCode = `
Expand Down
Loading