-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Generate TypeScript type definitions #1273
Generate TypeScript type definitions #1273
Commits on Feb 2, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 85b85bf - Browse repository at this point
Copy the full SHA 85b85bfView commit details -
Configuration menu - View commit details
-
Copy full SHA for e99ebfc - Browse repository at this point
Copy the full SHA e99ebfcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 723e1a5 - Browse repository at this point
Copy the full SHA 723e1a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4dd5e96 - Browse repository at this point
Copy the full SHA 4dd5e96View commit details
Commits on Feb 3, 2018
-
Configuration menu - View commit details
-
Copy full SHA for d1c8e80 - Browse repository at this point
Copy the full SHA d1c8e80View commit details -
Configuration menu - View commit details
-
Copy full SHA for b4505b6 - Browse repository at this point
Copy the full SHA b4505b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 951806b - Browse repository at this point
Copy the full SHA 951806bView commit details -
Split TypeScript definition generator into two modules, add support f…
…or writing to stream Splits the definition generator into two submodules, one for parsing the externs and one for writing the definition file.
Configuration menu - View commit details
-
Copy full SHA for e6b3cf9 - Browse repository at this point
Copy the full SHA e6b3cf9View commit details -
Move definition tree building into separate module, support multiple …
…inputs Moves all function related to building the definition tree into a separate submodule. Furthermore, the entry-function in generateTypescriptDefinitions now accepts multiple input files and merges their definitions into one tree.
Configuration menu - View commit details
-
Copy full SHA for 402b8d8 - Browse repository at this point
Copy the full SHA 402b8d8View commit details -
Mark top-level namespaces as ambient
- Rename property indentationLevel of AbstractWriter class to just level to show it can be used for more than one purpose - Mark namespaces at level 0 as ambient by using the declare keyword
Configuration menu - View commit details
-
Copy full SHA for 02043db - Browse repository at this point
Copy the full SHA 02043dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for f4da9fa - Browse repository at this point
Copy the full SHA f4da9faView commit details -
Implement output generation for typedefs
Output normal type aliases as `type` declarations and type object strucutes as interfaces
Configuration menu - View commit details
-
Copy full SHA for c9a6242 - Browse repository at this point
Copy the full SHA c9a6242View commit details -
Fix output of
interface ... extends
Previously, the type expression was passed as-is from the `@implements` keyword. Now directly passes the name and throws if implements is not followed by a name expression.
Configuration menu - View commit details
-
Copy full SHA for a1a54fd - Browse repository at this point
Copy the full SHA a1a54fdView commit details -
Include
extends
andimplements
keywords in class declarationIf a class node's attributes define a base class and/or interface, append them to the class declaration when generating the output for the class node.
Configuration menu - View commit details
-
Copy full SHA for ea192a0 - Browse repository at this point
Copy the full SHA ea192a0View commit details -
Move type generation to separate module, fix static class member aggr…
…egation - Move type generation to separate module as it will get a bit bigger as well - Fix a bug in the aggregation of static class members. The attribute type was ignored here.
Configuration menu - View commit details
-
Copy full SHA for 2d2b1ce - Browse repository at this point
Copy the full SHA 2d2b1ceView commit details -
Add generateTypescriptDefinitions to python build script
- Implement python method generate_typescript_definition as part of the build process - Call generateTypescriptDefinitions from python with the generated externs and all externs/shaka scripts - Adjust entry of generateTypescriptDefinitions to match generateExterns
Configuration menu - View commit details
-
Copy full SHA for 903257d - Browse repository at this point
Copy the full SHA 903257dView commit details -
Configuration menu - View commit details
-
Copy full SHA for c47d8bc - Browse repository at this point
Copy the full SHA c47d8bcView commit details -
Configuration menu - View commit details
-
Copy full SHA for ee3c10f - Browse repository at this point
Copy the full SHA ee3c10fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 913e84f - Browse repository at this point
Copy the full SHA 913e84fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 691ddce - Browse repository at this point
Copy the full SHA 691ddceView commit details -
Infer class prop types from interface if no type is given
Shaka player classes that implement an interface with properties just specify the property with the @OverRide tag. TypeScript requires implemented properties to specify the type again, so we have to infer the types from the interface that is implemented.
Configuration menu - View commit details
-
Copy full SHA for 105f7fb - Browse repository at this point
Copy the full SHA 105f7fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6455f9d - Browse repository at this point
Copy the full SHA 6455f9dView commit details -
Add types field to package.json
This is required for TypeScript to automatically pick up the typing if shaka-player is imported from npm package
Configuration menu - View commit details
-
Copy full SHA for 6a5fa0d - Browse repository at this point
Copy the full SHA 6a5fa0dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 46d7d20 - Browse repository at this point
Copy the full SHA 46d7d20View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a51b2d - Browse repository at this point
Copy the full SHA 9a51b2dView commit details -
Move interface lookup for class nodes from buildDefinitionTree to wri…
…teTypeDefinitions
Configuration menu - View commit details
-
Copy full SHA for ee66edc - Browse repository at this point
Copy the full SHA ee66edcView commit details -
Configuration menu - View commit details
-
Copy full SHA for d3575be - Browse repository at this point
Copy the full SHA d3575beView commit details -
Configuration menu - View commit details
-
Copy full SHA for bb8f54c - Browse repository at this point
Copy the full SHA bb8f54cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 56b0aca - Browse repository at this point
Copy the full SHA 56b0acaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ecf242 - Browse repository at this point
Copy the full SHA 5ecf242View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d18d6f - Browse repository at this point
Copy the full SHA 8d18d6fView commit details -
Generates TypeScript compatible types based on the information found in the doc comments
Configuration menu - View commit details
-
Copy full SHA for 1c72cde - Browse repository at this point
Copy the full SHA 1c72cdeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1121124 - Browse repository at this point
Copy the full SHA 1121124View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0421403 - Browse repository at this point
Copy the full SHA 0421403View commit details -
Fix generation of
new()
interfaces- Fix typo (`FuncionType` => `FunctionType`= - Use correct property for getting the return type (`this` instead of `returnType`) - Write correct node (generated `functionNode` instead of `node`)
Configuration menu - View commit details
-
Copy full SHA for 822d9fe - Browse repository at this point
Copy the full SHA 822d9feView commit details -
Configuration menu - View commit details
-
Copy full SHA for abafd6e - Browse repository at this point
Copy the full SHA abafd6eView commit details -
Update type generation of arrays
- Treat rest types as arrays - Assert that arrays have at most one applied type - If no type is specified, default to `any[]` - Use `Type[]` instead of `Array<Type>` where suitable
Configuration menu - View commit details
-
Copy full SHA for 7f80b53 - Browse repository at this point
Copy the full SHA 7f80b53View commit details -
Configuration menu - View commit details
-
Copy full SHA for 34ac763 - Browse repository at this point
Copy the full SHA 34ac763View commit details -
Configuration menu - View commit details
-
Copy full SHA for fc8575b - Browse repository at this point
Copy the full SHA fc8575bView commit details
Commits on Feb 4, 2018
-
Fix enum nullability check in processType
This allowed any type that wasn't explicitly marked as nullable to be non-nullable, which should not be the case.
Configuration menu - View commit details
-
Copy full SHA for a6ad6a5 - Browse repository at this point
Copy the full SHA a6ad6a5View commit details -
Fix primitive detection in processType
Mixed up the nullability here as well. Primitives should be non-nullable by default, non-primitives should be nullable by default.
Configuration menu - View commit details
-
Copy full SHA for a28fcdf - Browse repository at this point
Copy the full SHA a28fcdfView commit details -
Add option to disable nullability inference
Add an option to disable inference of nullability. Used by type aliases and generic applications.
Configuration menu - View commit details
-
Copy full SHA for 4644b22 - Browse repository at this point
Copy the full SHA 4644b22View commit details -
Configuration menu - View commit details
-
Copy full SHA for af73703 - Browse repository at this point
Copy the full SHA af73703View commit details -
Configuration menu - View commit details
-
Copy full SHA for 68c46b6 - Browse repository at this point
Copy the full SHA 68c46b6View commit details -
Implement type inference for base interfaces
Inferes types for properties and methods in classes and interfaces from the implemented / extended interface if not types are given.
Configuration menu - View commit details
-
Copy full SHA for 225bf1b - Browse repository at this point
Copy the full SHA 225bf1bView commit details -
Fix type inference for methods
Closure supports overwriting the param types without overwriting the return type of an implemented/extended method. Act accordingly.
Configuration menu - View commit details
-
Copy full SHA for f7d53b3 - Browse repository at this point
Copy the full SHA f7d53b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c09576 - Browse repository at this point
Copy the full SHA 5c09576View commit details
Commits on Feb 5, 2018
-
Configuration menu - View commit details
-
Copy full SHA for f29a42d - Browse repository at this point
Copy the full SHA f29a42dView commit details
Commits on Mar 18, 2018
-
Configuration menu - View commit details
-
Copy full SHA for a6c4cb1 - Browse repository at this point
Copy the full SHA a6c4cb1View commit details -
Configuration menu - View commit details
-
Copy full SHA for e800ac1 - Browse repository at this point
Copy the full SHA e800ac1View commit details -
Configuration menu - View commit details
-
Copy full SHA for ce68df0 - Browse repository at this point
Copy the full SHA ce68df0View commit details
Commits on Nov 10, 2019
-
Merge branch 'master' of https://github.com/google/shaka-player into …
…feature/generate-typescript-typedefs
Configuration menu - View commit details
-
Copy full SHA for 3c2b634 - Browse repository at this point
Copy the full SHA 3c2b634View commit details -
Configuration menu - View commit details
-
Copy full SHA for 31a9c18 - Browse repository at this point
Copy the full SHA 31a9c18View commit details
Commits on Nov 11, 2019
-
Configuration menu - View commit details
-
Copy full SHA for e025ddc - Browse repository at this point
Copy the full SHA e025ddcView commit details -
Configuration menu - View commit details
-
Copy full SHA for fe5e203 - Browse repository at this point
Copy the full SHA fe5e203View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b3ada2 - Browse repository at this point
Copy the full SHA 3b3ada2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 46a6e6c - Browse repository at this point
Copy the full SHA 46a6e6cView commit details
Commits on Nov 12, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 65f32c1 - Browse repository at this point
Copy the full SHA 65f32c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 99887b0 - Browse repository at this point
Copy the full SHA 99887b0View commit details
Commits on Nov 13, 2019
-
Configuration menu - View commit details
-
Copy full SHA for b1497fd - Browse repository at this point
Copy the full SHA b1497fdView commit details
Commits on Nov 17, 2019
-
Configuration menu - View commit details
-
Copy full SHA for d5aa805 - Browse repository at this point
Copy the full SHA d5aa805View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0221c00 - Browse repository at this point
Copy the full SHA 0221c00View commit details -
Configuration menu - View commit details
-
Copy full SHA for 762b51b - Browse repository at this point
Copy the full SHA 762b51bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 65bdd86 - Browse repository at this point
Copy the full SHA 65bdd86View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8061643 - Browse repository at this point
Copy the full SHA 8061643View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d01048 - Browse repository at this point
Copy the full SHA 4d01048View commit details
Commits on Nov 18, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 1e891ab - Browse repository at this point
Copy the full SHA 1e891abView commit details -
Configuration menu - View commit details
-
Copy full SHA for dfa7a5a - Browse repository at this point
Copy the full SHA dfa7a5aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 26b695e - Browse repository at this point
Copy the full SHA 26b695eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 185c21a - Browse repository at this point
Copy the full SHA 185c21aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ba18a6 - Browse repository at this point
Copy the full SHA 8ba18a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for a79550e - Browse repository at this point
Copy the full SHA a79550eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 00d3d1a - Browse repository at this point
Copy the full SHA 00d3d1aView commit details -
Configuration menu - View commit details
-
Copy full SHA for af3b813 - Browse repository at this point
Copy the full SHA af3b813View commit details -
Configuration menu - View commit details
-
Copy full SHA for b511143 - Browse repository at this point
Copy the full SHA b511143View commit details -
Configuration menu - View commit details
-
Copy full SHA for cc5774e - Browse repository at this point
Copy the full SHA cc5774eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e0eb02 - Browse repository at this point
Copy the full SHA 3e0eb02View commit details
Commits on Nov 20, 2019
-
Configuration menu - View commit details
-
Copy full SHA for c435aee - Browse repository at this point
Copy the full SHA c435aeeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d603bc - Browse repository at this point
Copy the full SHA 5d603bcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 43717ac - Browse repository at this point
Copy the full SHA 43717acView commit details -
Configuration menu - View commit details
-
Copy full SHA for 67344fc - Browse repository at this point
Copy the full SHA 67344fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 505df00 - Browse repository at this point
Copy the full SHA 505df00View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac6a713 - Browse repository at this point
Copy the full SHA ac6a713View commit details
Commits on Nov 21, 2019
-
Configuration menu - View commit details
-
Copy full SHA for bb22b26 - Browse repository at this point
Copy the full SHA bb22b26View commit details -
Configuration menu - View commit details
-
Copy full SHA for 00a0feb - Browse repository at this point
Copy the full SHA 00a0febView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ebc0aa - Browse repository at this point
Copy the full SHA 0ebc0aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6154475 - Browse repository at this point
Copy the full SHA 6154475View commit details
Commits on Nov 23, 2019
-
Merge branch 'master' of https://github.com/google/shaka-player into …
…feature/generate-typescript-typedefs
Configuration menu - View commit details
-
Copy full SHA for c480fc1 - Browse repository at this point
Copy the full SHA c480fc1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 536221b - Browse repository at this point
Copy the full SHA 536221bView commit details
Commits on Nov 25, 2019
-
Configuration menu - View commit details
-
Copy full SHA for ae83934 - Browse repository at this point
Copy the full SHA ae83934View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5076f59 - Browse repository at this point
Copy the full SHA 5076f59View commit details -
Configuration menu - View commit details
-
Copy full SHA for 808f596 - Browse repository at this point
Copy the full SHA 808f596View commit details
Commits on Nov 29, 2019
-
Configuration menu - View commit details
-
Copy full SHA for dfbe7d1 - Browse repository at this point
Copy the full SHA dfbe7d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for fc7a086 - Browse repository at this point
Copy the full SHA fc7a086View commit details -
Configuration menu - View commit details
-
Copy full SHA for 72eb321 - Browse repository at this point
Copy the full SHA 72eb321View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c9f21b - Browse repository at this point
Copy the full SHA 1c9f21bView commit details
Commits on Nov 30, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 3035af6 - Browse repository at this point
Copy the full SHA 3035af6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 323bce1 - Browse repository at this point
Copy the full SHA 323bce1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5dcbfd5 - Browse repository at this point
Copy the full SHA 5dcbfd5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b124fa - Browse repository at this point
Copy the full SHA 0b124faView commit details -
Explicitly mark unknown types as typescript "unknown" to make missing…
… type information more obvious
Configuration menu - View commit details
-
Copy full SHA for ff95e1f - Browse repository at this point
Copy the full SHA ff95e1fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5febf1b - Browse repository at this point
Copy the full SHA 5febf1bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 26e5e69 - Browse repository at this point
Copy the full SHA 26e5e69View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d4c21d - Browse repository at this point
Copy the full SHA 4d4c21dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1eb0612 - Browse repository at this point
Copy the full SHA 1eb0612View commit details -
Configuration menu - View commit details
-
Copy full SHA for 233e39c - Browse repository at this point
Copy the full SHA 233e39cView commit details -
Merge branch 'master' of https://github.com/google/shaka-player into …
…feature/generate-typescript-typedefs
Configuration menu - View commit details
-
Copy full SHA for df3828a - Browse repository at this point
Copy the full SHA df3828aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e4d669 - Browse repository at this point
Copy the full SHA 5e4d669View commit details -
Configuration menu - View commit details
-
Copy full SHA for f865a23 - Browse repository at this point
Copy the full SHA f865a23View commit details
Commits on Dec 1, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 16c6137 - Browse repository at this point
Copy the full SHA 16c6137View commit details -
Configuration menu - View commit details
-
Copy full SHA for 46708eb - Browse repository at this point
Copy the full SHA 46708ebView commit details -
Update method signature of predefined interface method EventTarget.re…
…moveEventListener
Configuration menu - View commit details
-
Copy full SHA for 8bd6f0c - Browse repository at this point
Copy the full SHA 8bd6f0cView commit details
Commits on Dec 12, 2019
-
Configuration menu - View commit details
-
Copy full SHA for bad67af - Browse repository at this point
Copy the full SHA bad67afView commit details -
Configuration menu - View commit details
-
Copy full SHA for eb24c63 - Browse repository at this point
Copy the full SHA eb24c63View commit details
Commits on Jan 18, 2020
-
Merge branch 'master' of https://github.com/google/shaka-player into …
…feature/generate-typescript-typedefs
Configuration menu - View commit details
-
Copy full SHA for f08c433 - Browse repository at this point
Copy the full SHA f08c433View commit details
Commits on Feb 12, 2020
-
Configuration menu - View commit details
-
Copy full SHA for cc6ff0f - Browse repository at this point
Copy the full SHA cc6ff0fView commit details -
Configuration menu - View commit details
-
Copy full SHA for f5c36a9 - Browse repository at this point
Copy the full SHA f5c36a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for d3af0eb - Browse repository at this point
Copy the full SHA d3af0ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 31f192b - Browse repository at this point
Copy the full SHA 31f192bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6093533 - Browse repository at this point
Copy the full SHA 6093533View commit details -
Configuration menu - View commit details
-
Copy full SHA for c6b5f64 - Browse repository at this point
Copy the full SHA c6b5f64View commit details -
Configuration menu - View commit details
-
Copy full SHA for 53a4525 - Browse repository at this point
Copy the full SHA 53a4525View commit details -
Configuration menu - View commit details
-
Copy full SHA for df0700b - Browse repository at this point
Copy the full SHA df0700bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 65f6c38 - Browse repository at this point
Copy the full SHA 65f6c38View commit details
Commits on Apr 16, 2020
-
Merge remote-tracking branch 'upstream/master' into feature/generate-…
…typescript-typedefs
Configuration menu - View commit details
-
Copy full SHA for 0bdccfb - Browse repository at this point
Copy the full SHA 0bdccfbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 241c9ac - Browse repository at this point
Copy the full SHA 241c9acView commit details