Skip to content

Commit

Permalink
Remove dependency on lib.dom.d.ts (#204)
Browse files Browse the repository at this point in the history
* Remove dependency on lib.dom.d.ts

* Remove domNode option
  • Loading branch information
smartinio authored Jan 30, 2025
1 parent fda244f commit 91cb210
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference lib="dom" />

import {
FastifyPluginCallback,
FastifyReply,
Expand Down Expand Up @@ -166,15 +164,10 @@ declare namespace fastifySwaggerUi {
configUrl?: string | undefined;

/**
* REQUIRED if domNode is not provided. The ID of a DOM element inside which SwaggerUI will put its user interface.
* The ID of a DOM element inside which SwaggerUI will put its user interface.
*/
dom_id?: string | undefined;

/**
* REQUIRED if dom_id is not provided. The HTML DOM element inside which SwaggerUI will put its user interface. Overrides dom_id.
*/
domNode?: HTMLElement | null | undefined;

/**
* A JavaScript object describing the OpenAPI definition. When used, the url parameter will not be parsed. This is useful for testing manually-generated definitions without hosting them
*/
Expand Down

0 comments on commit 91cb210

Please sign in to comment.