@servicenow/sdk - v4.7.0
    Preparing search index...
    • Create a new 'Program' instance. A Program is an immutable collection of 'SourceFile's and a 'CompilerOptions' that represent a compilation unit.

      Creating a program proceeds from a set of root files, expanding the set of inputs by following imports and triple-slash-reference-path directives transitively. '@types' and triple-slash-reference-types are also pulled in.

      Parameters

      Returns tsc.Program

      A 'Program' object.

    • Create a new 'Program' instance. A Program is an immutable collection of 'SourceFile's and a 'CompilerOptions' that represent a compilation unit.

      Creating a program proceeds from a set of root files, expanding the set of inputs by following imports and triple-slash-reference-path directives transitively. '@types' and triple-slash-reference-types are also pulled in.

      Parameters

      • rootNames: readonly string[]

        A set of root files.

      • options: tsc.CompilerOptions

        The compiler options which should be used.

      • Optionalhost: CompilerHost

        The host interacts with the underlying file system.

      • OptionaloldProgram: tsc.Program

        Reuses an old program structure.

      • OptionalconfigFileParsingDiagnostics: readonly tsc.Diagnostic[]

        error during config file parsing

      Returns tsc.Program

      A 'Program' object.