Skip to content

Commit

Permalink
fix: types for the extractComments option (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Sep 3, 2021
1 parent c314e33 commit 14e5cbf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ import { minify as minimize } from "./minify";

/**
* @typedef {Object} ExtractCommentsObject
* @property {ExtractCommentsCondition} condition
* @property {ExtractCommentsFilename} filename
* @property {ExtractCommentsBanner} banner
* @property {ExtractCommentsCondition} [condition]
* @property {ExtractCommentsFilename} [filename]
* @property {ExtractCommentsBanner} [banner]
*/

/**
Expand Down
12 changes: 6 additions & 6 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ export type ExtractCommentsBanner =
| boolean
| ((commentsFile: string) => string);
export type ExtractCommentsObject = {
condition: ExtractCommentsCondition;
filename: ExtractCommentsFilename;
banner: ExtractCommentsBanner;
condition?: ExtractCommentsCondition | undefined;
filename?: ExtractCommentsFilename | undefined;
banner?: ExtractCommentsBanner | undefined;
};
export type ExtractCommentsOptions =
| ExtractCommentsCondition
Expand Down Expand Up @@ -129,9 +129,9 @@ export type DefinedDefaultMinimizerAndOptions<T> =
*/
/**
* @typedef {Object} ExtractCommentsObject
* @property {ExtractCommentsCondition} condition
* @property {ExtractCommentsFilename} filename
* @property {ExtractCommentsBanner} banner
* @property {ExtractCommentsCondition} [condition]
* @property {ExtractCommentsFilename} [filename]
* @property {ExtractCommentsBanner} [banner]
*/
/**
* @typedef {ExtractCommentsCondition | ExtractCommentsObject} ExtractCommentsOptions
Expand Down

0 comments on commit 14e5cbf

Please sign in to comment.