Skip to content

Commit 24fffff

Browse files
fix: build problems when Symbol.asyncDispose type is not available. (#5096)
1 parent a9eea1c commit 24fffff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

types/instance.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ export interface FastifyInstance<
143143
close(closeListener: () => void): undefined;
144144

145145
/** Alias for {@linkcode FastifyInstance.close()} */
146+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
147+
// @ts-ignore - type only available for @types/node >=17 or typescript >= 5.2
146148
[Symbol.asyncDispose](): Promise<undefined>;
147149

148150
// should be able to define something useful with the decorator getter/setter pattern using Generics to enforce the users function returns what they expect it to

0 commit comments

Comments
 (0)