UNPKG

fastify-cli

Version:

Run a fastify route with one command!

14 lines (12 loc) 253 B
import fastify from 'fastify' import example from '..' import { expectType } from 'tsd' let app try { app = fastify() await app.ready() app.register(example) expectType<() => string>(app.exampleDecorator) } catch (err) { console.error(err) }