diff --git a/website/docs/en/types/chunk.mdx b/website/docs/en/types/chunk.mdx index 4f1ce0012e3..4aeb025416d 100644 --- a/website/docs/en/types/chunk.mdx +++ b/website/docs/en/types/chunk.mdx @@ -2,26 +2,26 @@ ```ts type Chunk = { - name?: string; - id?: string; - ids: string[]; - idNameHints: string[]; - filenameTemplate?: string; - cssFilenameTemplate?: string; - files: Set; - runtime: Set; - hash?: string; - contentHash: Record; - renderedHash?: string; - chunkReason?: string; - auxiliaryFiles: Set; - isOnlyInitial(): boolean; + auxiliaryFiles: ReadonlySet; canBeInitial(): boolean; + chunkReason?: Readonly; + contentHash: Readonly>; + cssFilenameTemplate?: Readonly; + filenameTemplate?: Readonly; + files: ReadonlySet; + getAllAsyncChunks(): Iterable; + getAllInitialChunks(): Iterable; + getAllReferencedChunks(): Iterable; + get groupsIterable(): Iterable; + hash?: Readonly; hasRuntime(): boolean; - groupsIterable: Set; - getAllAsyncChunks(): Set; - getAllInitialChunks(): Set; - getAllReferencedChunks(): Set; + id?: Readonly; + idNameHints: ReadonlyArray; + ids: ReadonlyArray; + isOnlyInitial(): boolean; + name?: Readonly; + renderedHash?: Readonly; + runtime: ReadonlySet; }; ``` diff --git a/website/docs/zh/types/chunk.mdx b/website/docs/zh/types/chunk.mdx index 4f1ce0012e3..4aeb025416d 100644 --- a/website/docs/zh/types/chunk.mdx +++ b/website/docs/zh/types/chunk.mdx @@ -2,26 +2,26 @@ ```ts type Chunk = { - name?: string; - id?: string; - ids: string[]; - idNameHints: string[]; - filenameTemplate?: string; - cssFilenameTemplate?: string; - files: Set; - runtime: Set; - hash?: string; - contentHash: Record; - renderedHash?: string; - chunkReason?: string; - auxiliaryFiles: Set; - isOnlyInitial(): boolean; + auxiliaryFiles: ReadonlySet; canBeInitial(): boolean; + chunkReason?: Readonly; + contentHash: Readonly>; + cssFilenameTemplate?: Readonly; + filenameTemplate?: Readonly; + files: ReadonlySet; + getAllAsyncChunks(): Iterable; + getAllInitialChunks(): Iterable; + getAllReferencedChunks(): Iterable; + get groupsIterable(): Iterable; + hash?: Readonly; hasRuntime(): boolean; - groupsIterable: Set; - getAllAsyncChunks(): Set; - getAllInitialChunks(): Set; - getAllReferencedChunks(): Set; + id?: Readonly; + idNameHints: ReadonlyArray; + ids: ReadonlyArray; + isOnlyInitial(): boolean; + name?: Readonly; + renderedHash?: Readonly; + runtime: ReadonlySet; }; ```