csproj2ts

  • Version 1.1.0
  • Published
  • 50.7 kB
  • 4 dependencies
  • MIT license

Install

npm i csproj2ts
yarn add csproj2ts
pnpm add csproj2ts

Overview

Library to parse TypeScript config info from a Visual Studio Project file

Index

Variables

variable DEFAULT_TYPESCRIPT_VERSION

const DEFAULT_TYPESCRIPT_VERSION: string;

    Functions

    function fixVersion

    fixVersion: (version: string) => string;

      function getTypeScriptDefaultsFromPropsFileOrDefaults

      getTypeScriptDefaultsFromPropsFileOrDefaults: (
      settings: TypeScriptSettings
      ) => any;

        function getTypeScriptSettings

        getTypeScriptSettings: (projectInfo: VSProjectParams) => any;

          function normalizePath

          normalizePath: (path: string, settings: TypeScriptSettings) => string;

            function programFiles

            programFiles: () => string;

              function xml2jsReadXMLFile

              xml2jsReadXMLFile: (fileName: string) => any;

                Interfaces

                interface TypeScriptConfiguration

                interface TypeScriptConfiguration {}

                  property AdditionalFlags

                  AdditionalFlags?: string;

                    property AllowJS

                    AllowJS?: boolean;

                      property AllowSyntheticDefaultImports

                      AllowSyntheticDefaultImports?: boolean;

                        property AllowUnreachableCode

                        AllowUnreachableCode?: boolean;

                          property AllowUnusedLabels

                          AllowUnusedLabels?: boolean;

                            property AlwaysStrict

                            AlwaysStrict?: boolean;

                              property BaseUrl

                              BaseUrl?: string;

                                property Charset

                                Charset?: string;

                                  property CheckJs

                                  CheckJs?: boolean;

                                    property CodePage

                                    CodePage?: string;

                                      property CompileBlocked

                                      CompileBlocked?: boolean;

                                        property CompileOnSaveEnabled

                                        CompileOnSaveEnabled?: boolean;

                                          property DeclarationDir

                                          DeclarationDir?: string;

                                            property DownlevelIteration

                                            DownlevelIteration?: boolean;

                                              property EmitBOM

                                              EmitBOM?: boolean;

                                                property EmitDecoratorMetadata

                                                EmitDecoratorMetadata?: boolean;

                                                  property ESModuleInterop

                                                  ESModuleInterop?: boolean;

                                                    property ExperimentalAsyncFunctions

                                                    ExperimentalAsyncFunctions?: boolean;

                                                      property ExperimentalDecorators

                                                      ExperimentalDecorators?: boolean;

                                                        property ForceConsistentCasingInFileNames

                                                        ForceConsistentCasingInFileNames?: boolean;

                                                          property GeneratesDeclarations

                                                          GeneratesDeclarations?: boolean;

                                                            property ImportHelpers

                                                            ImportHelpers?: boolean;

                                                              property InlineSourceMap

                                                              InlineSourceMap?: boolean;

                                                                property InlineSources

                                                                InlineSources?: boolean;

                                                                  property IsolatedModules

                                                                  IsolatedModules?: boolean;

                                                                    property JSXEmit

                                                                    JSXEmit?: string;

                                                                      property JSXFactory

                                                                      JSXFactory?: string;

                                                                        property Lib

                                                                        Lib?: string;

                                                                          property MapRoot

                                                                          MapRoot?: string;

                                                                            property ModuleKind

                                                                            ModuleKind?: string;

                                                                              property ModuleResolution

                                                                              ModuleResolution?: string;

                                                                                property NewLine

                                                                                NewLine?: string;

                                                                                  property NoEmitHelpers

                                                                                  NoEmitHelpers?: boolean;

                                                                                    property NoEmitOnError

                                                                                    NoEmitOnError?: boolean;

                                                                                      property NoFallthroughCasesInSwitch

                                                                                      NoFallthroughCasesInSwitch?: boolean;

                                                                                        property NoImplicitAny

                                                                                        NoImplicitAny?: boolean;

                                                                                          property NoImplicitReturns

                                                                                          NoImplicitReturns?: boolean;

                                                                                            property NoImplicitThis

                                                                                            NoImplicitThis?: boolean;

                                                                                              property NoImplicitUseStrict

                                                                                              NoImplicitUseStrict?: boolean;

                                                                                                property NoLib

                                                                                                NoLib?: boolean;

                                                                                                  property NoResolve

                                                                                                  NoResolve?: boolean;

                                                                                                    property NoStrictGenericChecks

                                                                                                    NoStrictGenericChecks?: boolean;

                                                                                                      property NoUnusedLocals

                                                                                                      NoUnusedLocals?: boolean;

                                                                                                        property NoUnusedParameters

                                                                                                        NoUnusedParameters?: boolean;

                                                                                                          property OutDir

                                                                                                          OutDir?: string;

                                                                                                            property OutFile

                                                                                                            OutFile?: string;

                                                                                                              property PreferredUILang

                                                                                                              PreferredUILang?: string;

                                                                                                                property PreserveConstEnums

                                                                                                                PreserveConstEnums?: boolean;
                                                                                                                  PreserveSymlinks?: boolean;

                                                                                                                    property ReactNamespace

                                                                                                                    ReactNamespace?: string;

                                                                                                                      property RemoveComments

                                                                                                                      RemoveComments?: boolean;

                                                                                                                        property RootDir

                                                                                                                        RootDir?: boolean;

                                                                                                                          property SkipDefaultLibCheck

                                                                                                                          SkipDefaultLibCheck?: boolean;

                                                                                                                            property SkipLibCheck

                                                                                                                            SkipLibCheck?: boolean;

                                                                                                                              property SourceMap

                                                                                                                              SourceMap?: boolean;

                                                                                                                                property SourceRoot

                                                                                                                                SourceRoot?: string;

                                                                                                                                  property Strict

                                                                                                                                  Strict?: boolean;

                                                                                                                                    property StrictFunctionTypes

                                                                                                                                    StrictFunctionTypes?: boolean;

                                                                                                                                      property StrictNullChecks

                                                                                                                                      StrictNullChecks?: boolean;

                                                                                                                                        property StrictPropertyInitialization

                                                                                                                                        StrictPropertyInitialization?: boolean;

                                                                                                                                          property StripInternal

                                                                                                                                          StripInternal?: boolean;

                                                                                                                                            property SuppressExcessPropertyErrors

                                                                                                                                            SuppressExcessPropertyErrors?: boolean;

                                                                                                                                              property SuppressImplicitAnyIndexErrors

                                                                                                                                              SuppressImplicitAnyIndexErrors?: boolean;

                                                                                                                                                property Target

                                                                                                                                                Target?: string;

                                                                                                                                                  interface TypeScriptSettings

                                                                                                                                                  interface TypeScriptSettings extends TypeScriptConfiguration {}

                                                                                                                                                    property files

                                                                                                                                                    files?: string[];

                                                                                                                                                      property VSProjectDetails

                                                                                                                                                      VSProjectDetails?: VSProjectDetails;

                                                                                                                                                        interface VSProjectDetails

                                                                                                                                                        interface VSProjectDetails extends VSProjectParams {}

                                                                                                                                                          property DefaultProjectConfiguration

                                                                                                                                                          DefaultProjectConfiguration?: string;

                                                                                                                                                            property DefaultProjectPlatform

                                                                                                                                                            DefaultProjectPlatform?: string;

                                                                                                                                                              property DefaultVisualStudioVersion

                                                                                                                                                              DefaultVisualStudioVersion?: string;

                                                                                                                                                                property TypeScriptDefaultConfiguration

                                                                                                                                                                TypeScriptDefaultConfiguration?: TypeScriptConfiguration;

                                                                                                                                                                  property TypeScriptDefaultPropsFilePath

                                                                                                                                                                  TypeScriptDefaultPropsFilePath?: string;

                                                                                                                                                                    interface VSProjectParams

                                                                                                                                                                    interface VSProjectParams {}

                                                                                                                                                                      property ActiveConfiguration

                                                                                                                                                                      ActiveConfiguration?: string;

                                                                                                                                                                        property ActivePlatform

                                                                                                                                                                        ActivePlatform?: string;

                                                                                                                                                                          property MSBuildExtensionsPath32

                                                                                                                                                                          MSBuildExtensionsPath32?: string;

                                                                                                                                                                            property ProjectFileName

                                                                                                                                                                            ProjectFileName?: string;

                                                                                                                                                                              property TypeScriptVersion

                                                                                                                                                                              TypeScriptVersion?: string;

                                                                                                                                                                                property VisualStudioVersion

                                                                                                                                                                                VisualStudioVersion?: string;

                                                                                                                                                                                  Package Files (1)

                                                                                                                                                                                  Dependencies (4)

                                                                                                                                                                                  Dev Dependencies (10)

                                                                                                                                                                                  Peer Dependencies (0)

                                                                                                                                                                                  No peer dependencies.

                                                                                                                                                                                  Badge

                                                                                                                                                                                  To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                                                                                                                                                                  You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/csproj2ts.

                                                                                                                                                                                  • Markdown
                                                                                                                                                                                    [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/csproj2ts)
                                                                                                                                                                                  • HTML
                                                                                                                                                                                    <a href="https://www.jsdocs.io/package/csproj2ts"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>