Skip to content

Commit

Permalink
simplify PluginOptions type
Browse files Browse the repository at this point in the history
  • Loading branch information
achou11 committed Oct 17, 2024
1 parent bdf91b1 commit 4022ec2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ import { noop } from './utils/misc.js'
/** @import { FastifyPluginCallback, FastifyReply } from 'fastify' */
/** @import { Resource } from './reader.js' */

/**
* @typedef {object} PluginOptionsBase
* @property {string} [prefix]
*/
/**
* @typedef {object} PluginOptionsFilepath
* @property {string} filepath Path to styled map package (`.smp`) file
Expand All @@ -20,7 +16,7 @@ import { noop } from './utils/misc.js'
* @property {Pick<Reader, keyof Reader>} reader SMP Reader interface (also supports ReaderWatch)
*/
/**
* @typedef {(PluginOptionsBase & PluginOptionsFilepath) | (PluginOptionsBase & PluginOptionsReader)} PluginOptions
* @typedef {PluginOptionsFilepath | PluginOptionsReader} PluginOptions
*/

/**
Expand Down

0 comments on commit 4022ec2

Please sign in to comment.