Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

fix:fix types #357

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as https from 'https';
import { Tapable } from 'tapable';
import * as webpack from 'webpack';
import * as https from 'https';

export = Config;

Expand Down Expand Up @@ -133,12 +133,20 @@ declare namespace Config {
strictExportPresence(value: boolean): this;
}

type FileNameType = string | ((pathData: {
chunk?: {
name?: string
}&Record<string,any>
hash?: string
contentHash?:any
}&Record<string,any>)=> string)

class Output extends ChainedMap<Config> {
auxiliaryComment(value: string | { [comment: string]: string }): this;
chunkFilename(value: string): this;
chunkFilename(value: FileNameType): this;
chunkLoadTimeout(value: number): this;
crossOriginLoading(value: boolean | string): this;
filename(value: string): this;
filename(value: FileNameType): this;
library(value: string): this;
libraryExport(value: string | string[]): this;
libraryTarget(value: string): this;
Expand Down