@@ -39,8 +39,11 @@ export interface ReusableDiagnosticRelatedInformation {
3939/** @internal */
4040export type ReusableDiagnosticMessageChain = DiagnosticMessageChain ;
4141
42- /** @internal */
43- /** Signature (Hash of d.ts emitted), is string if it was emitted using same d.ts.map option as what compilerOptions indicate, otherwise tuple of string */
42+ /**
43+ * Signature (Hash of d.ts emitted), is string if it was emitted using same d.ts.map option as what compilerOptions indicate, otherwise tuple of string
44+ *
45+ * @internal
46+ */
4447export type EmitSignature = string | [ signature : string ] ;
4548
4649/** @internal */
@@ -105,9 +108,10 @@ export const enum BuilderFileEmit {
105108 All = AllJs | AllDts ,
106109}
107110
108- /** @internal */
109111/**
110112 * State to store the changed files, affected files and cache semantic diagnostics
113+ *
114+ * @internal
111115 */
112116// TODO: GH#18217 Properties of this interface are frequently asserted to be defined.
113117export interface BuilderProgramState extends BuilderState , ReusableBuilderProgramState {
@@ -174,8 +178,11 @@ export type SavedBuildProgramEmitState = Pick<BuilderProgramState,
174178 "hasChangedEmitSignature"
175179> & { changedFilesSet : BuilderProgramState [ "changedFilesSet" ] | undefined } ;
176180
177- /** @internal */
178- /** Get flags determining what all needs to be emitted */
181+ /**
182+ * Get flags determining what all needs to be emitted
183+ *
184+ * @internal
185+ */
179186export function getBuilderFileEmit ( options : CompilerOptions ) {
180187 let result = BuilderFileEmit . Js ;
181188 if ( options . sourceMap ) result = result | BuilderFileEmit . JsMap ;
@@ -186,8 +193,11 @@ export function getBuilderFileEmit(options: CompilerOptions) {
186193 return result ;
187194}
188195
189- /** @internal */
190- /** Determing what all is pending to be emitted based on previous options or previous file emit flags */
196+ /**
197+ * Determing what all is pending to be emitted based on previous options or previous file emit flags
198+ *
199+ * @internal
200+ */
191201export function getPendingEmitKind ( optionsOrEmitKind : CompilerOptions | BuilderFileEmit , oldOptionsOrEmitKind : CompilerOptions | BuilderFileEmit | undefined ) : BuilderFileEmit {
192202 const oldEmitKind = oldOptionsOrEmitKind && ( isNumber ( oldOptionsOrEmitKind ) ? oldOptionsOrEmitKind : getBuilderFileEmit ( oldOptionsOrEmitKind ) ) ;
193203 const emitKind = isNumber ( optionsOrEmitKind ) ? optionsOrEmitKind : getBuilderFileEmit ( optionsOrEmitKind ) ;
@@ -821,11 +831,12 @@ export type ProgramBuildInfoFileId = number & { __programBuildInfoFileIdBrand: a
821831export type ProgramBuildInfoFileIdListId = number & { __programBuildInfoFileIdListIdBrand : any } ;
822832/** @internal */
823833export type ProgramBuildInfoDiagnostic = ProgramBuildInfoFileId | [ fileId : ProgramBuildInfoFileId , diagnostics : readonly ReusableDiagnostic [ ] ] ;
824- /** @internal */
825834/**
826835 * fileId if pending emit is same as what compilerOptions suggest
827836 * [fileId] if pending emit is only dts file emit
828837 * [fileId, emitKind] if any other type emit is pending
838+ *
839+ * @internal
829840 */
830841export type ProgramBuilderInfoFilePendingEmit = ProgramBuildInfoFileId | [ fileId : ProgramBuildInfoFileId ] | [ fileId : ProgramBuildInfoFileId , emitKind : BuilderFileEmit ] ;
831842/** @internal */
@@ -840,15 +851,17 @@ export type ProgramMultiFileEmitBuildInfoBuilderStateFileInfo = Omit<BuilderStat
840851 */
841852 signature : string | false | undefined ;
842853} ;
843- /** @internal */
844854/**
845855 * [fileId, signature] if different from file's signature
846856 * fileId if file wasnt emitted
857+ *
858+ * @internal
847859 */
848860export type ProgramBuildInfoEmitSignature = ProgramBuildInfoFileId | [ fileId : ProgramBuildInfoFileId , signature : EmitSignature | [ ] ] ;
849- /** @internal */
850861/**
851862 * ProgramMultiFileEmitBuildInfoFileInfo is string if FileInfo.version === FileInfo.signature && !FileInfo.affectsGlobalScope otherwise encoded FileInfo
863+ *
864+ * @internal
852865 */
853866export type ProgramMultiFileEmitBuildInfoFileInfo = string | ProgramMultiFileEmitBuildInfoBuilderStateFileInfo ;
854867/** @internal */
@@ -866,15 +879,17 @@ export interface ProgramMultiFileEmitBuildInfo {
866879 // Because this is only output file in the program, we dont need fileId to deduplicate name
867880 latestChangedDtsFile ?: string | undefined ;
868881}
869- /** @internal */
870882/**
871883 * ProgramBundleEmitBuildInfoFileInfo is string if !FileInfo.impliedFormat otherwise encoded FileInfo
884+ *
885+ * @internal
872886 */
873887export type ProgramBundleEmitBuildInfoFileInfo = string | BuilderState . FileInfo ;
874- /** @internal */
875888/**
876889 * false if it is the emit corresponding to compilerOptions
877890 * value otherwise
891+ *
892+ * @internal
878893 */
879894export type ProgramBuildInfoBundlePendingEmit = BuilderFileEmit | false ;
880895/** @internal */
0 commit comments