File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ expectType<unknown>(server.getSchema('SchemaId'))
36
36
expectType < string > ( server . printRoutes ( ) )
37
37
expectType < string > ( server . printPlugins ( ) )
38
38
expectType < string > ( server . listeningOrigin )
39
+ expectType < string [ ] > ( server . supportedMethods )
39
40
40
41
expectAssignable < FastifyInstance > (
41
42
server . setErrorHandler ( function ( error , request , reply ) {
Original file line number Diff line number Diff line change @@ -548,6 +548,10 @@ export interface FastifyInstance<
548
548
* Remove all content type parsers, including the default ones
549
549
*/
550
550
removeAllContentTypeParsers : removeAllContentTypeParsers
551
+ /**
552
+ * Returns an array of strings containing the list of supported HTTP methods
553
+ */
554
+ supportedMethods : string [ ]
551
555
/**
552
556
* Add a non-standard HTTP method
553
557
*
You can’t perform that action at this time.
0 commit comments