Versions in this module Expand all Collapse all v0 v0.0.2 Apr 25, 2026 v0.0.1 Apr 11, 2026 Changes in this version + var BuildNameMap = GetNameMapFromList(BuildOpts) + var BuildOpts = slices.Concat(commonOptionsWithBuild, OptionsForBuild) + var CompilerNameMap = GetNameMapFromList(OptionsDeclarations) + var CompilerOptionsDidYouMeanDiagnostics = getParseCommandLineWorkerDiagnostics(OptionsDeclarations) + var InverseJsxOptionMap = collections.NewOrderedMapFromList(func() []collections.MapEntry[core.JsxEmit, string] { ... }()) + var LibFilesSet = collections.NewSetFromItems(core.Map(slices.Collect(LibMap.Values()), func(s any) string { ... })) + var LibMap = collections.NewOrderedMapFromList([]collections.MapEntry[string, any]{ ... }) + var Libs = slices.Collect(LibMap.Keys()) + var OptionsDeclarations = slices.Concat(commonOptionsWithBuild, optionsForCompiler) + var OptionsForBuild = []*CommandLineOption + var OptionsForWatch = []*CommandLineOption + var TscBuildOption = CommandLineOption + var WatchNameMap = GetNameMapFromList(OptionsForWatch) + func CompilerOptionsAffectDeclarationPath(oldOptions *core.CompilerOptions, newOptions *core.CompilerOptions) bool + func CompilerOptionsAffectEmit(oldOptions *core.CompilerOptions, newOptions *core.CompilerOptions) bool + func CompilerOptionsAffectSemanticDiagnostics(oldOptions *core.CompilerOptions, newOptions *core.CompilerOptions) bool + func ConvertOptionToAbsolutePath(o string, v any, optionMap CommandLineOptionNameMap, cwd string) (any, bool) + func CreateDiagnosticAtReferenceSyntax(config *ParsedCommandLine, index int, message *diagnostics.Message, ...) *ast.Diagnostic + func CreateDiagnosticForNodeInSourceFile(sourceFile *ast.SourceFile, node *ast.Node, message *diagnostics.Message, ...) *ast.Diagnostic + func CreateDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile *ast.SourceFile, node *ast.Node, message *diagnostics.Message, ...) *ast.Diagnostic + func ForEachCompilerOptionValue(options *core.CompilerOptions, declFilter func(*CommandLineOption) bool, ...) bool + func ForEachPropertyAssignment[T any](objectLiteral *ast.ObjectLiteralExpression, key string, ...) *T + func ForEachTsConfigPropArray[T any](tsConfigSourceFile *ast.SourceFile, propKey string, ...) *T + func GetCallbackForFindingPropertyAssignmentByValue(value string) func(property *ast.PropertyAssignment) *ast.Node + func GetDefaultLibFileName(options *core.CompilerOptions) string + func GetLibFileName(libName string) (string, bool) + func GetOptionsSyntaxByArrayElementValue(objectLiteral *ast.ObjectLiteralExpression, propKey string, ...) *ast.Node + func GetSupportedExtensions(compilerOptions *core.CompilerOptions, extraFileExtensions []FileExtensionInfo) [][]string + func GetSupportedExtensionsWithJsonIfResolveJsonModule(compilerOptions *core.CompilerOptions, supportedExtensions [][]string) [][]string + func GetTsConfigPropArrayElementValue(tsConfigSourceFile *ast.SourceFile, propKey string, elementValue string) *ast.StringLiteral + func ParseBuildOptions(key string, value any, allOptions *core.BuildOptions) []*ast.Diagnostic + func ParseCompilerOptions(key string, value any, allOptions *core.CompilerOptions) []*ast.Diagnostic + func ParseConfigFileTextToJson(fileName string, path tspath.Path, jsonText string) (any, []*ast.Diagnostic) + func ParseListTypeOption(opt *CommandLineOption, value string) ([]any, []*ast.Diagnostic) + func ParseString(value any) string + func ParseStringArray(value any) []string + func ParseTristate(value any) core.Tristate + func ParseTypeAcquisition(key string, value any, allOptions *core.TypeAcquisition) []*ast.Diagnostic + func ParseWatchOptions(key string, value any, allOptions *core.WatchOptions) []*ast.Diagnostic + func TargetToLibMap() map[core.ScriptTarget]string + type AlternateModeDiagnostics struct + type CommandLineOption struct + AffectsBindDiagnostics bool + AffectsBuildInfo bool + AffectsDeclarationPath bool + AffectsEmit bool + AffectsModuleResolution bool + AffectsProgramStructure bool + AffectsSemanticDiagnostics bool + AffectsSourceFile bool + Category *diagnostics.Message + DefaultValueDescription any + Description *diagnostics.Message + ElementOptions CommandLineOptionNameMap + IsCommandLineOnly bool + IsFilePath bool + IsTSConfigOnly bool + Kind CommandLineOptionKind + Name string + ShortName string + ShowInSimplifiedHelpView bool + func (o *CommandLineOption) DeprecatedKeys() *collections.Set[string] + func (o *CommandLineOption) DisallowNullOrUndefined() bool + func (o *CommandLineOption) Elements() *CommandLineOption + func (o *CommandLineOption) EnumMap() *collections.OrderedMap[string, any] + type CommandLineOptionKind string + const CommandLineOptionTypeBoolean + const CommandLineOptionTypeEnum + const CommandLineOptionTypeList + const CommandLineOptionTypeListOrElement + const CommandLineOptionTypeNumber + const CommandLineOptionTypeObject + const CommandLineOptionTypeString + type CommandLineOptionNameMap map[string]*CommandLineOption + var CommandLineCompilerOptionsMap CommandLineOptionNameMap = commandLineOptionsToMap(OptionsDeclarations) + func (m CommandLineOptionNameMap) Get(name string) *CommandLineOption + type CompilerOptionsValue any + type DidYouMeanOptionsDiagnostics struct + OptionDeclarations []*CommandLineOption + UnknownDidYouMeanDiagnostic *diagnostics.Message + UnknownOptionDiagnostic *diagnostics.Message + type ExtendedConfigCache interface + GetExtendedConfig func(fileName string, path tspath.Path, resolutionStack []string, ...) *ExtendedConfigCacheEntry + type ExtendedConfigCacheEntry struct + func ParseExtendedConfig(fileName string, path tspath.Path, resolutionStack []string, ...) *ExtendedConfigCacheEntry + func (e *ExtendedConfigCacheEntry) ExtendedFileNames() []string + type FileExtensionInfo struct + Extension string + IsMixedContent bool + ScriptKind core.ScriptKind + type NameMap struct + func GetNameMapFromList(optDecls []*CommandLineOption) *NameMap + func (nm *NameMap) Get(name string) *CommandLineOption + func (nm *NameMap) GetFromShort(shortName string) *CommandLineOption + func (nm *NameMap) GetOptionDeclarationFromName(optionName string, allowShort bool) *CommandLineOption + type ParseCommandLineWorkerDiagnostics struct + OptionTypeMismatchDiagnostic *diagnostics.Message + type ParseConfigHost interface + FS func() vfs.FS + GetCurrentDirectory func() string + type ParsedBuildCommandLine struct + BuildOptions *core.BuildOptions + CompilerOptions *core.CompilerOptions + Errors []*ast.Diagnostic + Projects []string + Raw any + WatchOptions *core.WatchOptions + func ParseBuildCommandLine(commandLine []string, host ParseConfigHost) *ParsedBuildCommandLine + func (p *ParsedBuildCommandLine) Locale() locale.Locale + func (p *ParsedBuildCommandLine) ResolvedProjectPaths() []string + type ParsedCommandLine struct + CompileOnSave *bool + ConfigFile *TsConfigSourceFile + Errors []*ast.Diagnostic + ParsedConfig *core.ParsedOptions + Raw any + func GetParsedCommandLineOfConfigFile(configFileName string, options *core.CompilerOptions, ...) (*ParsedCommandLine, []*ast.Diagnostic) + func GetParsedCommandLineOfConfigFilePath(configFileName string, path tspath.Path, options *core.CompilerOptions, ...) (*ParsedCommandLine, []*ast.Diagnostic) + func NewParsedCommandLine(compilerOptions *core.CompilerOptions, rootFileNames []string, ...) *ParsedCommandLine + func ParseCommandLine(commandLine []string, host ParseConfigHost) *ParsedCommandLine + func ParseJsonConfigFileContent(json any, host ParseConfigHost, basePath string, ...) *ParsedCommandLine + func ParseJsonSourceFileConfigFileContent(sourceFile *TsConfigSourceFile, host ParseConfigHost, basePath string, ...) *ParsedCommandLine + func (p *ParsedCommandLine) CommonSourceDirectory() string + func (p *ParsedCommandLine) CompilerOptions() *core.CompilerOptions + func (p *ParsedCommandLine) ConfigName() string + func (p *ParsedCommandLine) ExtendedSourceFiles() []string + func (p *ParsedCommandLine) FileNames() []string + func (p *ParsedCommandLine) FileNamesByPath() map[tspath.Path]string + func (p *ParsedCommandLine) GetBuildInfoFileName() string + func (p *ParsedCommandLine) GetConfigFileParsingDiagnostics() []*ast.Diagnostic + func (p *ParsedCommandLine) GetCurrentDirectory() string + func (p *ParsedCommandLine) GetMatchedFileSpec(fileName string) string + func (p *ParsedCommandLine) GetMatchedIncludeSpec(fileName string) (string, bool) + func (p *ParsedCommandLine) GetOutputFileNames() iter.Seq[string] + func (p *ParsedCommandLine) LiteralFileNames() []string + func (p *ParsedCommandLine) Locale() locale.Locale + func (p *ParsedCommandLine) OutputDtsToProjectReference() map[tspath.Path]*SourceOutputAndProjectReference + func (p *ParsedCommandLine) ParseInputOutputNames() + func (p *ParsedCommandLine) PossiblyMatchesDirectoryName(directoryPath tspath.Path) bool + func (p *ParsedCommandLine) PossiblyMatchesFileName(fileName string) bool + func (p *ParsedCommandLine) ProjectReferences() []*core.ProjectReference + func (p *ParsedCommandLine) ReloadFileNamesOfParsedCommandLine(fs vfs.FS) *ParsedCommandLine + func (p *ParsedCommandLine) ResolvedProjectReferencePaths() []string + func (p *ParsedCommandLine) SetCompilerOptions(o *core.CompilerOptions) + func (p *ParsedCommandLine) SetParsedOptions(o *core.ParsedOptions) + func (p *ParsedCommandLine) SetTypeAcquisition(o *core.TypeAcquisition) + func (p *ParsedCommandLine) SourceToProjectReference() map[tspath.Path]*SourceOutputAndProjectReference + func (p *ParsedCommandLine) TypeAcquisition() *core.TypeAcquisition + func (p *ParsedCommandLine) UseCaseSensitiveFileNames() bool + func (p *ParsedCommandLine) WildcardDirectories() map[string]bool + func (p *ParsedCommandLine) WildcardDirectoryGlobs() []*glob.Glob + type SourceOutputAndProjectReference struct + OutputDts string + Resolved *ParsedCommandLine + Source string + type TSConfig struct + CompileOnSave *bool + CompilerOptions *collections.OrderedMap[string, any] + Exclude []string + Files []string + Include []string + References []any + func ConvertToTSConfig(configParseResult *ParsedCommandLine, configFileName string) *TSConfig + type TsConfigSourceFile struct + ExtendedSourceFiles []string + SourceFile *ast.SourceFile + func NewTsconfigSourceFileFromFilePath(configFileName string, configPath tspath.Path, configSourceText string) *TsConfigSourceFile