@manta-eu/horns-server/typecheck
Reference for @manta-eu/horns-server/typecheck in @manta-eu/horns-server 0.2.3.
Type Aliases
TypecheckFs
TypecheckFs =
Readonly<Record<string,string>>
Every .d.ts the check needs, keyed by the path the compiler should find it at.
Functions
createTypecheck()
createTypecheck(
fs): (source) => readonlyTypeProblem[]
A check over one view’s source, reusing the parsed library across calls.
Every .d.ts is parsed once and kept: a turn checks a view several times, and re-reading four megabytes
of declarations each time is the whole cost.
Parameters
fs
Returns
(source) => readonly TypeProblem[]