Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the Typescript template. #592

Merged
merged 3 commits into from
Feb 27, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions templates/app-ts/src/app.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
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 type AppOptions = FastifyServerOptions & Partial<AutoloadPluginOptions>;
meotimdihia marked this conversation as resolved.
Show resolved Hide resolved

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