Skip to content

Commit

Permalink
fix internal type declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
Kingwl committed Apr 25, 2018
1 parent e677be2 commit 64185f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/compiler/emitter.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace ts {
const brackets = createBracketsMap();

/*@internal*/
/**
* Iterates over the source files that are expected to have an emit output.
*
Expand All @@ -11,6 +10,7 @@ namespace ts {
* If an array, the full list of source files to emit.
* Else, calls `getSourceFilesToEmit` with the (optional) target source file to determine the list of source files to emit.
*/
/*@internal*/
export function forEachEmittedFile<T>(
host: EmitHost, action: (emitFileNames: EmitFileNames, sourceFileOrBundle: SourceFile | Bundle) => T,
sourceFilesOrTargetSourceFile?: ReadonlyArray<SourceFile> | SourceFile,
Expand Down Expand Up @@ -80,8 +80,8 @@ namespace ts {
return Extension.Js;
}

/*@internal*/
// targetSourceFile is when users only want one file in entire project to be emitted. This is used in compileOnSave feature
/*@internal*/
export function emitFiles(resolver: EmitResolver, host: EmitHost, targetSourceFile: SourceFile, emitOnlyDtsFiles?: boolean, transformers?: TransformerFactory<SourceFile>[]): EmitResult {
const compilerOptions = host.getCompilerOptions();
const sourceMapDataList: SourceMapData[] = (compilerOptions.sourceMap || compilerOptions.inlineSourceMap || getAreDeclarationMapsEnabled(compilerOptions)) ? [] : undefined;
Expand Down
8 changes: 4 additions & 4 deletions src/compiler/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -760,8 +760,8 @@ namespace ts {
name: ComputedPropertyName;
}

/* @internal */
// A declaration that supports late-binding (used in checker)
/* @internal */
export interface LateBoundDeclaration extends DynamicNamedDeclaration {
name: LateBoundName;
}
Expand All @@ -775,8 +775,8 @@ namespace ts {
expression: Expression;
}

/* @internal */
// A name that supports late-binding (used in checker)
/* @internal */
export interface LateBoundName extends ComputedPropertyName {
expression: EntityNameExpression;
}
Expand Down Expand Up @@ -3781,8 +3781,8 @@ namespace ts {

export type StructuredType = ObjectType | UnionType | IntersectionType;

/* @internal */
// An instantiated anonymous type has a target and a mapper
/* @internal */
export interface AnonymousType extends ObjectType {
target?: AnonymousType; // Instantiation target
mapper?: TypeMapper; // Instantiation mapper
Expand All @@ -3808,8 +3808,8 @@ namespace ts {
mappedType: MappedType;
}

/* @internal */
// Resolved object, union, or intersection type
/* @internal */
export interface ResolvedType extends ObjectType, UnionOrIntersectionType {
members: SymbolTable; // Properties by name
properties: Symbol[]; // Properties
Expand Down

0 comments on commit 64185f3

Please sign in to comment.