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
Copy file name to clipboardexpand all lines: README.md
+30-7
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,9 @@ This tool is used to generate the web-based `lib.dom.d.ts` file which is include
4
4
5
5
## Why is my fancy API still not available here?
6
6
7
-
A feature needs to be supported by more than two major browser engines to be included here, to make sure there is a good consensus among vendors: __Gecko__ (Firefox), __Blink__ (Chrome/Edge), and __WebKit__ (Safari).
7
+
A feature needs to be supported by two or more major browser engines to be included here, to make sure there is a good consensus among vendors: __Gecko__ (Firefox), __Blink__ (Chrome/Edge), and __WebKit__ (Safari).
8
8
9
-
If the condition is met but still is not available here, please [file an issue](hthttps://github.com/microsoft/TypeScript-DOM-lib-generator/issues/new).
9
+
If the condition is met but still is not available here, first check the heuristics below and then please [file an issue](hthttps://github.com/microsoft/TypeScript-DOM-lib-generator/issues/new).
10
10
11
11
## Build Instructions
12
12
@@ -28,13 +28,13 @@ To test:
28
28
npm run test
29
29
```
30
30
31
-
To deploy:
32
31
33
-
```sh
34
-
npm run migrate
35
-
```
32
+
## `@types/[lib]` to TypeScript Versions
36
33
37
-
The script will look in for a clone of the TypeScript repo in "../TypeScript", or "./TypeScript" to move the generated files in.
34
+
|`@types/[lib]` version | TypeScript Version | Minimum TypeScript Support |
@@ -116,3 +116,26 @@ To give you a sense of whether we will accept changes, you can use these heurist
116
116
-`removedTypes.json`: types that are defined in the spec file but should be removed.
117
117
-`comments.json`: comment strings to be embedded in the generated .js files.
118
118
-`deprecatedMessage.json`: the reason why one type is deprecated. The reason why it is a separate file rather than merge in comment.json is mdn/apiDescriptions.json would also possibly be deprecated.
119
+
120
+
## Deployment to TypeScript
121
+
122
+
To migrate the *.d.ts files into TypeScript:
123
+
124
+
1. Run:
125
+
126
+
```sh
127
+
npm run migrate -- [previous_types_web_version]
128
+
```
129
+
130
+
The script will look infora clone of the TypeScript repoin"../TypeScript", or "./TypeScript" to move the generated files in. Or migrate the files manually, you do you.
131
+
132
+
1. Update the README table with the mappings forversionsin the `@types/[lib]`. E.g. TS 4.5 ->`@types/web``0.0.23`.
0 commit comments