Skip to content

Commit

Permalink
Improve the Typescript template. (#592)
Browse files Browse the repository at this point in the history
  • Loading branch information
meotimdihia authored Feb 27, 2023
1 parent 1681f95 commit c2eae03
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions templates/app-ts/src/app.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import { join } from 'path';
import AutoLoad, {AutoloadPluginOptions} from '@fastify/autoload';
import { FastifyPluginAsync } from 'fastify';

export type AppOptions = {
// Place your custom options for app below here.
} & Partial<AutoloadPluginOptions>;
import { FastifyPluginAsync, FastifyServerOptions } from 'fastify';

export interface AppOptions extends FastifyServerOptions, Partial<AutoloadPluginOptions> {

}
// Pass --options via CLI arguments in command to enable these options.
const options: AppOptions = {
}
Expand Down

0 comments on commit c2eae03

Please sign in to comment.