Skip to content

Convert generation script to TS, and update the source webidl #383

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 94 commits into from
Mar 7, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
63022de
Convert input files to json
mhegazy Feb 20, 2018
317c27a
Add schema for input
mhegazy Feb 20, 2018
e80f384
Add config files
mhegazy Feb 20, 2018
b0bdc00
Convert script to TS
mhegazy Feb 20, 2018
5ffa5fe
Normalize input files
mhegazy Feb 21, 2018
751571f
Fix some conversion mistakes
mhegazy Feb 21, 2018
e7aba4c
Make some arrays maps
mhegazy Feb 21, 2018
2f0d977
Add support for loading comments
mhegazy Feb 21, 2018
0426bda
Add some types to merge
mhegazy Feb 21, 2018
63e0a7e
Move source files to a diffrent directory
mhegazy Feb 22, 2018
a82b8cb
revert changes to comments
mhegazy Feb 22, 2018
6ddee3e
normalize addedTypes.json and support overrides
mhegazy Feb 22, 2018
0c0e158
Add support for removign items
mhegazy Feb 22, 2018
c3f0346
Add support of overriding definitons
mhegazy Feb 22, 2018
8125a3e
Add .js to gitignore
mhegazy Feb 22, 2018
0131cf2
Clean up some remaining diffs
mhegazy Feb 23, 2018
294a92d
Rremove unused declarations
mhegazy Feb 23, 2018
0b9c8a3
Cleanup
mhegazy Feb 23, 2018
bdb44dd
Use new input file
mhegazy Feb 25, 2018
6e865bc
Update types
mhegazy Feb 25, 2018
2e4133b
Refactor
mhegazy Feb 25, 2018
80018bb
Add support for overrides
mhegazy Feb 26, 2018
bf4d9da
Add list of known types for workers
mhegazy Feb 26, 2018
a2a308b
Remove unused function
mhegazy Feb 26, 2018
4dca898
Better handeling for unknown types
mhegazy Feb 26, 2018
0480b7c
Remove unused comments
mhegazy Feb 26, 2018
5f10d60
make event handelers nullable
mhegazy Feb 26, 2018
a255454
Add deprecated comments
mhegazy Feb 26, 2018
1106259
Refactor
mhegazy Feb 26, 2018
e47cdf6
Remove index signature on Window
mhegazy Feb 26, 2018
b6a01cd
Remove unused files
mhegazy Feb 26, 2018
baa3af7
Move files around
mhegazy Feb 26, 2018
3cec779
Update readme
mhegazy Feb 26, 2018
5b21243
Remove function
mhegazy Feb 26, 2018
624201b
Change filtering logic
mhegazy Feb 26, 2018
b92083b
Use camel case
mhegazy Feb 26, 2018
a0af64d
Add test script
mhegazy Feb 27, 2018
cba9e48
Add some build scripts
mhegazy Feb 27, 2018
9fc1683
Accept baselines
mhegazy Feb 27, 2018
fde91ea
Add missing types
mhegazy Feb 27, 2018
196f5a3
Add missing property
mhegazy Feb 27, 2018
9791e4c
Add missing overloads
mhegazy Feb 27, 2018
a390b2e
Fix querySelector signatures
mhegazy Feb 27, 2018
bd003ed
Update XMLHttpRequest.send signature
mhegazy Feb 27, 2018
a6d64c1
Add missing typedef
mhegazy Feb 27, 2018
336ac4b
Change type for FileReader.result
mhegazy Feb 27, 2018
4644914
Hide Window.browser on the global scope
mhegazy Feb 27, 2018
fa29c34
Fix MediaList.mediaText type
mhegazy Feb 27, 2018
ac985b8
Add NodeSelector interface
mhegazy Feb 27, 2018
7c495cf
Add missing typedef
mhegazy Feb 27, 2018
c66d24e
Make indexers non-nullable
mhegazy Feb 27, 2018
1d73253
Use the right tsc in tests
mhegazy Feb 27, 2018
131d645
Port https://github.com/Microsoft/TSJS-lib-generator/pull/371
mhegazy Feb 27, 2018
c54015b
Port https://github.com/Microsoft/TSJS-lib-generator/pull/380
mhegazy Feb 27, 2018
9ddd9e5
Refactor override-type
mhegazy Feb 27, 2018
3417a19
Consolidate handeling of override-signatures
mhegazy Feb 27, 2018
5dc147a
Consolidate the use of override-signature
mhegazy Feb 28, 2018
a8d4b4b
Some cleanup
mhegazy Feb 28, 2018
3a5f64e
Make es6 iterators non-nullable just like indexers
mhegazy Feb 28, 2018
4a7505d
Remove some MS-specific types from the library
mhegazy Feb 28, 2018
743fb96
Extract helpers to a new file
mhegazy Feb 28, 2018
799d043
Move filtering to a preprocesing pass
mhegazy Feb 28, 2018
c6685ff
Update readme
mhegazy Feb 28, 2018
054bb6b
Port https://github.com/Microsoft/TSJS-lib-generator/pull/381
mhegazy Feb 28, 2018
68bac2a
Remove some more types
mhegazy Feb 28, 2018
57ba32a
Add new webidl file
mhegazy Mar 1, 2018
e72c4c1
Update travis file
mhegazy Mar 1, 2018
a856a10
some cleanup
mhegazy Mar 1, 2018
4d9e7f7
Merge remote-tracking branch 'origin/master' into convertToTS
mhegazy Mar 1, 2018
c5dfac3
update gitIgnore
mhegazy Mar 1, 2018
dbabfdb
Build before testing in npm test
mhegazy Mar 1, 2018
401ef78
Use a separate build script
mhegazy Mar 1, 2018
14bb7e2
Revert "Use a separate build script"
mhegazy Mar 1, 2018
aa02c79
Run tasks sequentially
mhegazy Mar 1, 2018
8d0ab24
Normalize line ending before comparing baselines to output
mhegazy Mar 1, 2018
98f7901
Make `DataTransferItem.webkitGetAsEntry` return `any`
mhegazy Mar 1, 2018
4990238
Add deprecated property `KeyboardEvent.char`
mhegazy Mar 1, 2018
a9a2b36
Add previouslly present typedefs for back compat
mhegazy Mar 1, 2018
4696164
Remove space after this types
mhegazy Mar 1, 2018
97eecc7
Use camelCase consistentlly
mhegazy Mar 1, 2018
959ffb1
Fix URL constructor
mhegazy Mar 1, 2018
8f529c3
Make unknown Window types in Worker environment `object` instead of `…
mhegazy Mar 1, 2018
22e1fa5
Make `EventTarget.addEventListener` second argument required
mhegazy Mar 1, 2018
12c83d5
Use `[]` instead of `Array` all the time
mhegazy Mar 2, 2018
e897757
Remove `Window.browser` property
mhegazy Mar 5, 2018
3c9471d
Rename `ClientType` to `ClientTypes` to avoid conflicts with exisitin…
mhegazy Mar 5, 2018
3e5afdb
Use cpx to copy
mhegazy Mar 5, 2018
64d4cca
Remove iife's
mhegazy Mar 5, 2018
5d59e97
Code review comments
mhegazy Mar 5, 2018
bb7a313
Refator emit function to a diffrent file
mhegazy Mar 6, 2018
967d7e4
Extract helpers outside the main function
mhegazy Mar 6, 2018
0920382
cleanup gitignore
mhegazy Mar 6, 2018
99305e7
Set private: true
mhegazy Mar 6, 2018
6d46a8b
more code review comments
mhegazy Mar 7, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Port #380
  • Loading branch information
mhegazy committed Feb 27, 2018
commit c54015bc25e3c0c28f0c115d3fdaca57e09f475e
3 changes: 2 additions & 1 deletion baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9301,7 +9301,7 @@ interface MutationRecord {
readonly previousSibling: Node | null;
readonly removedNodes: NodeList;
readonly target: Node;
readonly type: string;
readonly type: MutationRecordType;
}

declare var MutationRecord: {
Expand Down Expand Up @@ -15995,6 +15995,7 @@ type HeadersInit = Headers | string[][] | { [key: string]: string };
type OrientationLockType = "any" | "natural" | "portrait" | "landscape" | "portrait-primary" | "portrait-secondary" | "landscape-primary"| "landscape-secondary";
type IDBValidKey = number | string | Date | IDBArrayKey;
type AlgorithmIdentifier = string | Algorithm;
type MutationRecordType = "attributes" | "characterData" | "childList";
type AppendMode = "segments" | "sequence";
type AudioContextLatencyCategory = "balanced" | "interactive" | "playback";
type AudioContextState = "suspended" | "running" | "closed";
Expand Down
4 changes: 4 additions & 0 deletions inputfiles/addedTypes.json
Original file line number Diff line number Diff line change
Expand Up @@ -2827,6 +2827,10 @@
{
"override-type": "string | Algorithm",
"new-type": "AlgorithmIdentifier"
},
{
"new-type": "MutationRecordType",
"override-type": "\"attributes\" | \"characterData\" | \"childList\""
}
]
}
Expand Down
11 changes: 11 additions & 0 deletions inputfiles/overridingTypes.json
Original file line number Diff line number Diff line change
Expand Up @@ -1724,6 +1724,17 @@
}
}
}
},
"MutationRecord": {
"name": "MutationRecord",
"properties": {
"property": {
"type": {
"name": "type",
"override-type": "MutationRecordType"
}
}
}
}
}
},
Expand Down