Skip to content

Commit

Permalink
fix: implementation types (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
RAX7 authored Sep 13, 2022
1 parent c45d9db commit a57fcdf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const {
* @callback BasicTransformerImplementation
* @param {WorkerResult} original
* @param {BasicTransformerOptions<T>} [options]
* @returns {Promise<WorkerResult>}
* @returns {Promise<WorkerResult | null>}
*/

/**
Expand Down
4 changes: 2 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export = ImageMinimizerPlugin;
* @callback BasicTransformerImplementation
* @param {WorkerResult} original
* @param {BasicTransformerOptions<T>} [options]
* @returns {Promise<WorkerResult>}
* @returns {Promise<WorkerResult | null>}
*/
/**
* @typedef {Object} BasicTransformerHelpers
Expand Down Expand Up @@ -306,7 +306,7 @@ type BasicTransformerOptions<T> = InferDefaultType<T> | undefined;
type BasicTransformerImplementation<T> = (
original: WorkerResult,
options?: BasicTransformerOptions<T>
) => Promise<WorkerResult>;
) => Promise<WorkerResult | null>;
type BasicTransformerHelpers = {
setup?: (() => void) | undefined;
teardown?: (() => void) | undefined;
Expand Down

0 comments on commit a57fcdf

Please sign in to comment.