-
Notifications
You must be signed in to change notification settings - Fork 959
How to update typings files
Kevin Cunnane edited this page Oct 19, 2018
·
3 revisions
Typing files enable the easy usage of JavaScript files in TypeScript projects. For Azure Data Studio, the typings files are located at /src/typings. If you add a new npm dependency or update an existing one, you may need to update the typings files in order to enable proper compilation and intellisense.
Steps:
- Add the dependency to the
/package.jsonand/shrinkwrap.jsonfiles. - Install the dependency:
- Windows:
scripts\npm.bat installornpm install <new dependency> - Mac/Linux:
scripts/npm.sh installornpm install <new dependency>
- Windows:
- Navigate to the
/src/directory - Run
typings install --save <location to new dependency root .d.ts file>. Add the--globalflag if typings says that the package must be installed as a global
For example, if I want to add @angular/core at version ~2.1.2 and I am using Windows, I can:
- Add
"@angular/core": "~2.1.2"to/project.jsonunderdependencies - Add the following to
/shrinkwrap.jsonunderdependencies(ideally done vianpm shrinkwrap):
"@angular/core": {
"version": "2.1.2",
"from": "@angular/core@>=2.1.0 <2.2.0",
"resolved": "https://registry.npmjs.org/@angular/core/-/core-2.1.2.tgz"
}
npm install @angular/corecd srctypings install --save npm:@angular/core/index.d.ts
Documentation
- Get Started
- Install Azure Data Studio
- Telemetry
- Microsoft Ready 2019 Lab
- MS Docs Overview
- Debug Trace Logging
- Troubleshoot Azure Authentication Issues
- FAQ
Contributing
- How to Contribute
- Developer Getting Started
- Submitting Bugs and Suggestions
- Localization
- Troubleshooting Build Issues
- Engineering FAQ
- How to update typings files
- Importing and using modules
- UI Guidelines
- Angular UI Guidelines
- Contributor License Agreement
- Azure Data Studio Tests
- Why is the Azure Data Studio license different than the repository license?
Tool Services
Extensibility Reference
- Getting Started
- Extensibility API
- Contribution Points
- Context Variables
- Servers and Data Explorer Tree Views
- Debugging with VS Code
- Extension Authoring
- Building multiple insight widgets
- Microsoft Ignite lab
- List of Extensions
- Replace sqlops namespace
Project Management