File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -326,6 +326,8 @@ const versionConstraintStrategy = {
326
326
expectType < void > ( server . addConstraintStrategy ( versionConstraintStrategy ) )
327
327
expectType < boolean > ( server . hasConstraintStrategy ( versionConstraintStrategy . name ) )
328
328
329
+ expectType < boolean > ( server . hasPlugin ( '' ) )
330
+
329
331
expectAssignable < DefaultRoute < RawRequestDefaultExpression , RawReplyDefaultExpression > > ( server . getDefaultRoute ( ) )
330
332
331
333
expectType < FastifySchemaCompiler < any > | undefined > ( server . validatorCompiler )
Original file line number Diff line number Diff line change @@ -131,6 +131,7 @@ export interface FastifyInstance<
131
131
hasDecorator ( decorator : string | symbol ) : boolean ;
132
132
hasRequestDecorator ( decorator : string | symbol ) : boolean ;
133
133
hasReplyDecorator ( decorator : string | symbol ) : boolean ;
134
+ hasPlugin ( name : string ) : boolean ;
134
135
135
136
addConstraintStrategy ( strategy : ConstraintStrategy < FindMyWayVersion < RawServer > , unknown > ) : void ;
136
137
hasConstraintStrategy ( strategyName : string ) : boolean ;
You can’t perform that action at this time.
0 commit comments