Skip to content

Commit 5756fa2

Browse files
authored
Small improvement to pygments example. (#85)
1 parent d916a14 commit 5756fa2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

13-js-api-pygments/ts/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import templateHtml from './template.html';
22

33
interface Env {
4-
PYTHON_RPC: Service;
4+
PYTHON_RPC: HighlighterRpcService;
55
}
66

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

1717
// Sample code to highlight
1818
const sampleCode = `

0 commit comments

Comments
 (0)