@@ -32,7 +32,7 @@ console.log(1);
3232
3333As oak middleware:
3434
35- ``` ts
35+ ``` ts ignore
3636import { Application } from " @oak/oak" ;
3737import { tsMiddleware } from " @ayame113/ts-serve" ;
3838
@@ -56,7 +56,7 @@ As a replacement for the
5656[ serveDir
] ( https://doc.deno.land/https://deno.land/[email protected] /http/file_server.ts/~/serveDir ) 5757function in the Deno standard library:
5858
59- ``` ts
59+ ``` ts ignore
6060import { serveDirWithTs } from " @ayame113/ts-serve" ;
6161
6262Deno .serve ((request ) => serveDirWithTs (request ));
@@ -66,15 +66,15 @@ As a replacement for the
6666[ serveFile
] ( https://doc.deno.land/https://deno.land/[email protected] /http/file_server.ts/~/serveFile ) 6767function in the Deno standard library:
6868
69- ``` ts
69+ ``` ts ignore
7070import { serveFileWithTs } from " @ayame113/ts-serve" ;
7171
7272Deno .serve ((request ) => serveFileWithTs (request , " ./mod.ts" ));
7373```
7474
7575As [ Hono] ( https://honojs.dev/ ) 's handler:
7676
77- ``` ts
77+ ``` ts ignore
7878import { Hono } from " @hono/hono" ;
7979import { serveDirWithTs } from " @ayame113/ts-serve" ;
8080
@@ -95,7 +95,7 @@ However, performance can be an issue on the server as loading the wasm file
9595takes time. In that case, calling this function in advance can speed up later
9696calls to the transpile function.
9797
98- ``` ts
98+ ``` ts ignore
9999import { forceInstantiateWasm , serveDirWithTs } from " @ayame113/ts-serve" ;
100100
101101// load the wasm file in the background when the server starts.
0 commit comments