Skip to content

Commit 34fdd27

Browse files
committed
docs: fix
1 parent aad65ef commit 34fdd27

2 files changed

Lines changed: 24 additions & 46 deletions

File tree

website/docs/en/config/filename-placeholders.mdx

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -187,31 +187,20 @@ The function is invoked during the build process and receives an object that con
187187

188188
```ts
189189
type PathData = {
190-
hash: string;
191-
hashWithLength: (number) => string;
192-
chunk: Chunk | ChunkPathData;
193-
module: Module | ModulePathData;
194-
contentHashType: string;
195-
contentHash: string;
196-
contentHashWithLength: (number) => string;
197-
filename: string;
198-
url: string;
199-
runtime: string | SortableSet<string>;
200-
chunkGraph: ChunkGraph;
190+
filename?: string;
191+
hash?: string;
192+
contentHash?: string;
193+
runtime?: string;
194+
url?: string;
195+
id?: string;
196+
chunk?: Chunk | ChunkPathData;
197+
contentHashType?: string;
201198
};
202199

203200
type ChunkPathData = {
204-
id: string | number;
205-
name: string;
206-
hash: string;
207-
hashWithLength: (number) => string;
208-
contentHash: Record<string, string>;
209-
contentHashWithLength: Record<string, (number) => string>;
210-
};
211-
212-
type ModulePathData = {
213-
id: string | number;
214-
hash: string;
215-
hashWithLength: (number) => string;
201+
id?: string;
202+
name?: string;
203+
hash?: string;
204+
contentHash?: Record<string, string>;
216205
};
217206
```

website/docs/zh/config/filename-placeholders.mdx

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -187,31 +187,20 @@ export default {
187187

188188
```ts
189189
type PathData = {
190-
hash: string;
191-
hashWithLength: (number) => string;
192-
chunk: Chunk | ChunkPathData;
193-
module: Module | ModulePathData;
194-
contentHashType: string;
195-
contentHash: string;
196-
contentHashWithLength: (number) => string;
197-
filename: string;
198-
url: string;
199-
runtime: string | SortableSet<string>;
200-
chunkGraph: ChunkGraph;
190+
filename?: string;
191+
hash?: string;
192+
contentHash?: string;
193+
runtime?: string;
194+
url?: string;
195+
id?: string;
196+
chunk?: Chunk | ChunkPathData;
197+
contentHashType?: string;
201198
};
202199

203200
type ChunkPathData = {
204-
id: string | number;
205-
name: string;
206-
hash: string;
207-
hashWithLength: (number) => string;
208-
contentHash: Record<string, string>;
209-
contentHashWithLength: Record<string, (number) => string>;
210-
};
211-
212-
type ModulePathData = {
213-
id: string | number;
214-
hash: string;
215-
hashWithLength: (number) => string;
201+
id?: string;
202+
name?: string;
203+
hash?: string;
204+
contentHash?: Record<string, string>;
216205
};
217206
```

0 commit comments

Comments
 (0)