Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • TsCheck

Index

Constructors

constructor

Properties

Private cacheFilePath

cacheFilePath: string = 'node_modules/.cache/flh/tscheckcache.json'

检测缓存文件的路径。不应提交至 git 仓库: 默认为 <config.rootDir>/node_modules/.cache/flh/tsCheckCache.json

Private logger

logger: Logger

Private stats

stats: { allDiagnosticsCategory: Record<"Warning" | "Error" | "Suggestion" | "Message", number>; allDiagnosticsFileMap: {}; startTime: number; success: boolean; totalDiagnostics: number; totalFiles: number; tsCache: { tsCheckFilesPassed: {} }; tsCheckFilesPassedChanged: boolean } = ...

Type declaration

  • allDiagnosticsCategory: Record<"Warning" | "Error" | "Suggestion" | "Message", number>
  • allDiagnosticsFileMap: {}
    • [file: string]: ts.Diagnostic
  • startTime: number
  • success: boolean
  • totalDiagnostics: number
  • totalFiles: number
  • tsCache: { tsCheckFilesPassed: {} }
    • tsCheckFilesPassed: {}
      • [filepath: string]: { md5: string; updateTime: number }
        • md5: string
        • updateTime: number
  • tsCheckFilesPassedChanged: boolean

Private whiteList

whiteList: Record<string, "Warning" | "Error" | "Suggestion" | "Message"> = ...

白名单列表

Accessors

statsInfo

  • get statsInfo(): { allDiagnosticsCategory: Record<"Warning" | "Error" | "Suggestion" | "Message", number>; allDiagnosticsFileMap: {}; startTime: number; success: boolean; totalDiagnostics: number; totalFiles: number; tsCache: { tsCheckFilesPassed: {} }; tsCheckFilesPassedChanged: boolean }
  • 返回执行结果统计信息

    Returns { allDiagnosticsCategory: Record<"Warning" | "Error" | "Suggestion" | "Message", number>; allDiagnosticsFileMap: {}; startTime: number; success: boolean; totalDiagnostics: number; totalFiles: number; tsCache: { tsCheckFilesPassed: {} }; tsCheckFilesPassedChanged: boolean }

    • allDiagnosticsCategory: Record<"Warning" | "Error" | "Suggestion" | "Message", number>
    • allDiagnosticsFileMap: {}
      • [file: string]: ts.Diagnostic
    • startTime: number
    • success: boolean
    • totalDiagnostics: number
    • totalFiles: number
    • tsCache: { tsCheckFilesPassed: {} }
      • tsCheckFilesPassed: {}
        • [filepath: string]: { md5: string; updateTime: number }
          • md5: string
          • updateTime: number
    • tsCheckFilesPassedChanged: boolean

Methods

check

Private checkInChildProc

Private checkInWorkThreads

Private compile

  • compile(sourceFiles: string[], subDir: string): void
  • ts 编译

    Parameters

    • sourceFiles: string[]
    • subDir: string

    Returns void

Private getCheckProjectDirs

  • getCheckProjectDirs(src?: string[]): string[]
  • 返回可检测的子项目路径

    Parameters

    • src: string[] = ...

    Returns string[]

Private getInitStats

  • getInitStats(): { allDiagnosticsCategory: Record<"Warning" | "Error" | "Suggestion" | "Message", number>; allDiagnosticsFileMap: {}; startTime: number; success: boolean; totalDiagnostics: number; totalFiles: number; tsCache: { tsCheckFilesPassed: {} }; tsCheckFilesPassedChanged: boolean }
  • Returns { allDiagnosticsCategory: Record<"Warning" | "Error" | "Suggestion" | "Message", number>; allDiagnosticsFileMap: {}; startTime: number; success: boolean; totalDiagnostics: number; totalFiles: number; tsCache: { tsCheckFilesPassed: {} }; tsCheckFilesPassedChanged: boolean }

    • allDiagnosticsCategory: Record<"Warning" | "Error" | "Suggestion" | "Message", number>
    • allDiagnosticsFileMap: {}
      • [file: string]: ts.Diagnostic
    • startTime: number
    • success: boolean
    • totalDiagnostics: number
    • totalFiles: number
    • tsCache: { tsCheckFilesPassed: {} }
      • tsCheckFilesPassed: {}
        • [filepath: string]: { md5: string; updateTime: number }
          • md5: string
          • updateTime: number
    • tsCheckFilesPassedChanged: boolean

Private getTsFiles

  • getTsFiles(subDir: string): { subDir: string; tsFiles: string[] }
  • 返回指定子目录中匹配到的 ts 文件列表

    Parameters

    • subDir: string

    Returns { subDir: string; tsFiles: string[] }

    • subDir: string
    • tsFiles: string[]

Private init

  • init(): void

parseConfig

start

Generated using TypeDoc