- Notifications
You must be signed in to change notification settings - Fork1
Language service which helps to get diagnostic messages from typescript source files.
License
NotificationsYou must be signed in to change notification settings
unlight/typescript-service
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Language service which helps to get diagnostic messages from typescript source files.
npm install --save-dev typescript-service
import{createService}from'typescript-service';constservice=createService({ configFile, compilerOptions});constdiagnostics=service.getDiagnostics(fileName);
configFile
(required, string) Path to tsconfig.json filecompilerOptions
(optional, Object) Compiler options to overwrite defined in tsconfig.json
Returns object with properties which are functions:
Update (add) information about file in typescript service.
fileName
(required, string) Path to typescript filesourceText
(optional, string) File content of this file
Get diagnostic messages forfileName
fileName
(required, string) Path to typescript filesourceText
(optional, string) If path outside of scope defined in tsconfig you need providesourceText
Getts.Program
SeeCHANGELOG.md
About
Language service which helps to get diagnostic messages from typescript source files.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Contributors2
Uh oh!
There was an error while loading.Please reload this page.