Skip to content

Commit

Permalink
fix: update type
Browse files Browse the repository at this point in the history
  • Loading branch information
9aoy committed Nov 12, 2024
1 parent 8de7d96 commit dabdba8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export = wdm;
* @template {IncomingMessage} [RequestInternal = IncomingMessage]
* @template {ServerResponse} [ResponseInternal = ServerResponse]
* @typedef {Object} Options
* @property {boolean | ((targetPath: string) => boolean)} [writeToDisk]
* @property {boolean | ((targetPath: string, compilationName?: string) => boolean)} [writeToDisk]
* @property {NonNullable<Configuration["output"]>["publicPath"]} [publicPath]
* @property {boolean | string} [index]
* @property {boolean} [lastModified]
Expand Down Expand Up @@ -256,7 +256,10 @@ type Options<
RequestInternal extends IncomingMessage = import("http").IncomingMessage,
ResponseInternal extends ServerResponse = ServerResponse,
> = {
writeToDisk?: boolean | ((targetPath: string) => boolean) | undefined;
writeToDisk?:
| boolean
| ((targetPath: string, compilationName?: string) => boolean)
| undefined;
publicPath?: NonNullable<Configuration["output"]>["publicPath"];
index?: string | boolean | undefined;
lastModified?: boolean | undefined;
Expand Down

0 comments on commit dabdba8

Please sign in to comment.