fastify
Version:
Fast and low overhead web framework, for Node.js
15 lines (12 loc) • 483 B
text/typescript
import { expectAssignable, expectType } from 'tsd'
import fastify, { FastifyInstance } from '../../fastify'
async function hasSymbolDisposeWithUsing () {
await using app = fastify()
expectAssignable<FastifyInstance>(app)
expectAssignable<FastifyInstance[typeof Symbol.asyncDispose]>(app.close)
}
async function hasSymbolDispose () {
const app = fastify()
expectAssignable<FastifyInstance>(app)
expectAssignable<FastifyInstance[typeof Symbol.asyncDispose]>(app.close)
}