Skip to content

Commit

Permalink
docs: update chunk type (#7552)
Browse files Browse the repository at this point in the history
  • Loading branch information
h-a-n-a authored Aug 13, 2024
1 parent 6174c50 commit 21dd3df
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 36 deletions.
36 changes: 18 additions & 18 deletions website/docs/en/types/chunk.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@

```ts
type Chunk = {
name?: string;
id?: string;
ids: string[];
idNameHints: string[];
filenameTemplate?: string;
cssFilenameTemplate?: string;
files: Set<string>;
runtime: Set<string>;
hash?: string;
contentHash: Record<string, string>;
renderedHash?: string;
chunkReason?: string;
auxiliaryFiles: Set<string>;
isOnlyInitial(): boolean;
auxiliaryFiles: ReadonlySet<string>;
canBeInitial(): boolean;
chunkReason?: Readonly<string>;
contentHash: Readonly<Record<string, string>>;
cssFilenameTemplate?: Readonly<string>;
filenameTemplate?: Readonly<string>;
files: ReadonlySet<string>;
getAllAsyncChunks(): Iterable<Chunk>;
getAllInitialChunks(): Iterable<Chunk>;
getAllReferencedChunks(): Iterable<Chunk>;
get groupsIterable(): Iterable<ChunkGroup>;
hash?: Readonly<string>;
hasRuntime(): boolean;
groupsIterable: Set<ChunkGroup>;
getAllAsyncChunks(): Set<Chunk>;
getAllInitialChunks(): Set<Chunk>;
getAllReferencedChunks(): Set<Chunk>;
id?: Readonly<string>;
idNameHints: ReadonlyArray<string>;
ids: ReadonlyArray<string>;
isOnlyInitial(): boolean;
name?: Readonly<string>;
renderedHash?: Readonly<string>;
runtime: ReadonlySet<string>;
};
```

Expand Down
36 changes: 18 additions & 18 deletions website/docs/zh/types/chunk.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@

```ts
type Chunk = {
name?: string;
id?: string;
ids: string[];
idNameHints: string[];
filenameTemplate?: string;
cssFilenameTemplate?: string;
files: Set<string>;
runtime: Set<string>;
hash?: string;
contentHash: Record<string, string>;
renderedHash?: string;
chunkReason?: string;
auxiliaryFiles: Set<string>;
isOnlyInitial(): boolean;
auxiliaryFiles: ReadonlySet<string>;
canBeInitial(): boolean;
chunkReason?: Readonly<string>;
contentHash: Readonly<Record<string, string>>;
cssFilenameTemplate?: Readonly<string>;
filenameTemplate?: Readonly<string>;
files: ReadonlySet<string>;
getAllAsyncChunks(): Iterable<Chunk>;
getAllInitialChunks(): Iterable<Chunk>;
getAllReferencedChunks(): Iterable<Chunk>;
get groupsIterable(): Iterable<ChunkGroup>;
hash?: Readonly<string>;
hasRuntime(): boolean;
groupsIterable: Set<ChunkGroup>;
getAllAsyncChunks(): Set<Chunk>;
getAllInitialChunks(): Set<Chunk>;
getAllReferencedChunks(): Set<Chunk>;
id?: Readonly<string>;
idNameHints: ReadonlyArray<string>;
ids: ReadonlyArray<string>;
isOnlyInitial(): boolean;
name?: Readonly<string>;
renderedHash?: Readonly<string>;
runtime: ReadonlySet<string>;
};
```

Expand Down

0 comments on commit 21dd3df

Please sign in to comment.