#Deno.serve().shutdown doesn't exist?

1 messages · Page 1 of 1 (latest)

paper crescent
#
const server = Deno.serve({
  hostname,
  port,
})
server.shutdown()
error: TS2339 [ERROR]: Property 'shutdown' does not exist on type 'Server'.
server.shutdown()

Running Deno 1.37.2

coarse bane
#

It's unstable

#

It does exist if you use --unstable as far as I know

paper crescent
#

okay

#

Ok, it works with unstable