Skip to content

Commit 74a89a9

Browse files
committed
Restore exports incorrectly detected & removed by Knip
1 parent 6967487 commit 74a89a9

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/compiler/commandLineParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ export const targetOptionDeclaration: CommandLineOptionOfCustomType = {
540540
};
541541

542542
/** @internal */
543-
const moduleOptionDeclaration: CommandLineOptionOfCustomType = {
543+
export const moduleOptionDeclaration: CommandLineOptionOfCustomType = {
544544
name: "module",
545545
shortName: "m",
546546
type: new Map(Object.entries({

src/compiler/path.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ export function comparePathsCaseSensitive(a: string, b: string) {
811811
*
812812
* @internal
813813
*/
814-
function comparePathsCaseInsensitive(a: string, b: string) {
814+
export function comparePathsCaseInsensitive(a: string, b: string) {
815815
return comparePathsWorker(a, b, compareStringsCaseInsensitive);
816816
}
817817

src/compiler/sys.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1469,7 +1469,7 @@ interface DirectoryWatcher extends FileWatcher {
14691469
}
14701470

14711471
// TODO: GH#18217 this is used as if it's certainly defined in many places.
1472-
export let sys: System = (() => {
1472+
export const sys: System = (() => {
14731473
// NodeJS detects "\uFEFF" at the start of the string and *replaces* it with the actual
14741474
// byte order mark from the specified encoding. Using any other byte order mark does
14751475
// not actually work.

src/compiler/utilitiesPublic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ function getNodeFlags(node: Node) {
620620
}
621621

622622
/** @internal */
623-
const supportedLocaleDirectories = ["cs", "de", "es", "fr", "it", "ja", "ko", "pl", "pt-br", "ru", "tr", "zh-cn", "zh-tw"];
623+
export const supportedLocaleDirectories = ["cs", "de", "es", "fr", "it", "ja", "ko", "pl", "pt-br", "ru", "tr", "zh-cn", "zh-tw"];
624624

625625
/**
626626
* Checks to see if the locale is in the appropriate format,

src/jsTyping/jsTyping.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ const prefixedNodeCoreModuleList = unprefixedNodeCoreModuleList.map(name => `nod
120120
export const nodeCoreModuleList: readonly string[] = [...unprefixedNodeCoreModuleList, ...prefixedNodeCoreModuleList];
121121

122122
/** @internal */
123-
const nodeCoreModules = new Set(nodeCoreModuleList);
123+
export const nodeCoreModules = new Set(nodeCoreModuleList);
124124

125125
/** @internal */
126126
export function nonRelativeModuleNameForTypingCache(moduleName: string) {

src/services/textChanges.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1834,7 +1834,7 @@ namespace deleteDeclaration {
18341834
*
18351835
* @internal
18361836
*/
1837-
function deleteNode(changes: ChangeTracker, sourceFile: SourceFile, node: Node, options: ConfigurableStartEnd = { leadingTriviaOption: LeadingTriviaOption.IncludeAll }): void {
1837+
export function deleteNode(changes: ChangeTracker, sourceFile: SourceFile, node: Node, options: ConfigurableStartEnd = { leadingTriviaOption: LeadingTriviaOption.IncludeAll }): void {
18381838
const startPosition = getAdjustedStartPosition(sourceFile, node, options);
18391839
const endPosition = getAdjustedEndPosition(sourceFile, node, options);
18401840
changes.deleteRange(sourceFile, { pos: startPosition, end: endPosition });

0 commit comments

Comments
 (0)