You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where a sample `package.json` (anywhere next to or above a `tsconfig.json`) looks like:
87
-
```json
88
-
{
89
-
"name": "awesome",
90
-
"main": "./dist/foo.js",
91
-
"typescript": {
92
-
"definition": "./definition/awesome.d.ts"
93
-
}
94
-
}
95
-
```
96
-
97
-
We would generate a `definition/awesome.d.ts` file for you *on build* so that other TypeScript projects can do a simple `require('awesome')`.
98
-
99
-
Note: Other people will be able to do `require('awesome')` only if their IDE supports looking at `node_modules` like we do. Otherwise they can always explicitly `/// <reference` your `awesome.d.ts` that we generate to get the same effect.
100
-
101
84
## Format Code
102
85
Shortcut : `ctrl+alt+l` or `cmd+alt+l`. Will format just the selection if you have something selected otherwise it will format the entire file.
0 commit comments