Skip to main content

typeCheckFiles

export function typeCheckFiles(
  lib: CompilerLib,
  files: {[path: string]: string},
  relToAbs: (
    current: string,
    rel: string
  ) => string
): TypeCheckOutput

The compiler library is passed as an argument instead of loading locally, so any optional configuration of the library can be done externally

Arguments​

1. lib​

lib: CompilerLib

2. files​

files: {[path: string]: string}

3. relToAbs​

relToAbs: (
  current: string,
  rel: string
) => string

Returns​

TypeCheckOutput