Skip to content
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

Commits on Feb 2, 2018

  1. Configuration menu
    Copy the full SHA
    85b85bf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e99ebfc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    723e1a5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4dd5e96 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2018

  1. Configuration menu
    Copy the full SHA
    d1c8e80 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b4505b6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    951806b View commit details
    Browse the repository at this point in the history
  4. 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.
    niklaskorz committed Feb 3, 2018
    Configuration menu
    Copy the full SHA
    e6b3cf9 View commit details
    Browse the repository at this point in the history
  5. 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.
    niklaskorz committed Feb 3, 2018
    Configuration menu
    Copy the full SHA
    402b8d8 View commit details
    Browse the repository at this point in the history
  6. 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
    niklaskorz committed Feb 3, 2018
    Configuration menu
    Copy the full SHA
    02043db View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f4da9fa View commit details
    Browse the repository at this point in the history
  8. Implement output generation for typedefs

    Output normal type aliases as `type` declarations and type object strucutes as interfaces
    niklaskorz committed Feb 3, 2018
    Configuration menu
    Copy the full SHA
    c9a6242 View commit details
    Browse the repository at this point in the history
  9. 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.
    niklaskorz committed Feb 3, 2018
    Configuration menu
    Copy the full SHA
    a1a54fd View commit details
    Browse the repository at this point in the history
  10. Include extends and implements keywords in class declaration

    If 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.
    niklaskorz committed Feb 3, 2018
    Configuration menu
    Copy the full SHA
    ea192a0 View commit details
    Browse the repository at this point in the history
  11. 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.
    niklaskorz committed Feb 3, 2018
    Configuration menu
    Copy the full SHA
    2d2b1ce View commit details
    Browse the repository at this point in the history
  12. 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
    niklaskorz committed Feb 3, 2018
    Configuration menu
    Copy the full SHA
    903257d View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    c47d8bc View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    ee3c10f View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    913e84f View commit details
    Browse the repository at this point in the history
  16. Remove obsolete comment

    niklaskorz committed Feb 3, 2018
    Configuration menu
    Copy the full SHA
    691ddce View commit details
    Browse the repository at this point in the history
  17. 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.
    niklaskorz committed Feb 3, 2018
    Configuration menu
    Copy the full SHA
    105f7fb View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    6455f9d View commit details
    Browse the repository at this point in the history
  19. 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
    niklaskorz committed Feb 3, 2018
    Configuration menu
    Copy the full SHA
    6a5fa0d View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    46d7d20 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    9a51b2d View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    ee66edc View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    d3575be View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    bb8f54c View commit details
    Browse the repository at this point in the history
  25. Fix indentation

    niklaskorz committed Feb 3, 2018
    Configuration menu
    Copy the full SHA
    56b0aca View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    5ecf242 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    8d18d6f View commit details
    Browse the repository at this point in the history
  28. Implement TS type generation

    Generates TypeScript compatible types based on the information found in the doc comments
    niklaskorz committed Feb 3, 2018
    Configuration menu
    Copy the full SHA
    1c72cde View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    1121124 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    0421403 View commit details
    Browse the repository at this point in the history
  31. 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`)
    niklaskorz committed Feb 3, 2018
    Configuration menu
    Copy the full SHA
    822d9fe View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    abafd6e View commit details
    Browse the repository at this point in the history
  33. 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
    niklaskorz committed Feb 3, 2018
    Configuration menu
    Copy the full SHA
    7f80b53 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    34ac763 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    fc8575b View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2018

  1. 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.
    niklaskorz committed Feb 4, 2018
    Configuration menu
    Copy the full SHA
    a6ad6a5 View commit details
    Browse the repository at this point in the history
  2. 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.
    niklaskorz committed Feb 4, 2018
    Configuration menu
    Copy the full SHA
    a28fcdf View commit details
    Browse the repository at this point in the history
  3. Add option to disable nullability inference

    Add an option to disable inference of nullability. Used by type aliases and generic applications.
    niklaskorz committed Feb 4, 2018
    Configuration menu
    Copy the full SHA
    4644b22 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    af73703 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    68c46b6 View commit details
    Browse the repository at this point in the history
  6. 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.
    niklaskorz committed Feb 4, 2018
    Configuration menu
    Copy the full SHA
    225bf1b View commit details
    Browse the repository at this point in the history
  7. Fix type inference for methods

    Closure supports overwriting the param types without overwriting the return type of an implemented/extended method. Act accordingly.
    niklaskorz committed Feb 4, 2018
    Configuration menu
    Copy the full SHA
    f7d53b3 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    5c09576 View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2018

  1. Configuration menu
    Copy the full SHA
    f29a42d View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2018

  1. Configuration menu
    Copy the full SHA
    a6c4cb1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e800ac1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ce68df0 View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2019

  1. Merge branch 'master' of https://github.com/google/shaka-player into …

    …feature/generate-typescript-typedefs
    niklaskorz committed Nov 10, 2019
    Configuration menu
    Copy the full SHA
    3c2b634 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    31a9c18 View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2019

  1. Configuration menu
    Copy the full SHA
    e025ddc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fe5e203 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3b3ada2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    46a6e6c View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2019

  1. Configuration menu
    Copy the full SHA
    65f32c1 View commit details
    Browse the repository at this point in the history
  2. Ignore .vscode workspace

    niklaskorz committed Nov 12, 2019
    Configuration menu
    Copy the full SHA
    99887b0 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2019

  1. Configuration menu
    Copy the full SHA
    b1497fd View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2019

  1. Configuration menu
    Copy the full SHA
    d5aa805 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0221c00 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    762b51b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    65bdd86 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8061643 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4d01048 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2019

  1. Configuration menu
    Copy the full SHA
    1e891ab View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dfa7a5a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    26b695e View commit details
    Browse the repository at this point in the history
  4. Fix varArgs parameters

    niklaskorz committed Nov 18, 2019
    Configuration menu
    Copy the full SHA
    185c21a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8ba18a6 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a79550e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    00d3d1a View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    af3b813 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b511143 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    cc5774e View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    3e0eb02 View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2019

  1. Configuration menu
    Copy the full SHA
    c435aee View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5d603bc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    43717ac View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    67344fc View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    505df00 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ac6a713 View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2019

  1. Configuration menu
    Copy the full SHA
    bb22b26 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    00a0feb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0ebc0aa View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6154475 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2019

  1. Merge branch 'master' of https://github.com/google/shaka-player into …

    …feature/generate-typescript-typedefs
    niklaskorz committed Nov 23, 2019
    Configuration menu
    Copy the full SHA
    c480fc1 View commit details
    Browse the repository at this point in the history
  2. Export Uint8ArrayUtils

    niklaskorz committed Nov 23, 2019
    Configuration menu
    Copy the full SHA
    536221b View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2019

  1. Configuration menu
    Copy the full SHA
    ae83934 View commit details
    Browse the repository at this point in the history
  2. Call initApp()

    niklaskorz committed Nov 25, 2019
    Configuration menu
    Copy the full SHA
    5076f59 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    808f596 View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2019

  1. Patch definitions

    niklaskorz committed Nov 29, 2019
    Configuration menu
    Copy the full SHA
    dfbe7d1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fc7a086 View commit details
    Browse the repository at this point in the history
  3. UI configuration

    niklaskorz committed Nov 29, 2019
    Configuration menu
    Copy the full SHA
    72eb321 View commit details
    Browse the repository at this point in the history
  4. Update ui ts test

    niklaskorz committed Nov 29, 2019
    Configuration menu
    Copy the full SHA
    1c9f21b View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2019

  1. Configuration menu
    Copy the full SHA
    3035af6 View commit details
    Browse the repository at this point in the history
  2. Update docs

    niklaskorz committed Nov 30, 2019
    Configuration menu
    Copy the full SHA
    323bce1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5dcbfd5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0b124fa View commit details
    Browse the repository at this point in the history
  5. Explicitly mark unknown types as typescript "unknown" to make missing…

    … type information more obvious
    niklaskorz committed Nov 30, 2019
    Configuration menu
    Copy the full SHA
    ff95e1f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5febf1b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    26e5e69 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    4d4c21d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    1eb0612 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    233e39c View commit details
    Browse the repository at this point in the history
  11. Merge branch 'master' of https://github.com/google/shaka-player into …

    …feature/generate-typescript-typedefs
    niklaskorz committed Nov 30, 2019
    Configuration menu
    Copy the full SHA
    df3828a View commit details
    Browse the repository at this point in the history
  12. Patch Error class

    niklaskorz committed Nov 30, 2019
    Configuration menu
    Copy the full SHA
    5e4d669 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    f865a23 View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2019

  1. Configuration menu
    Copy the full SHA
    16c6137 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    46708eb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8bd6f0c View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2019

  1. Document base types

    niklaskorz committed Dec 12, 2019
    Configuration menu
    Copy the full SHA
    bad67af View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    eb24c63 View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2020

  1. Merge branch 'master' of https://github.com/google/shaka-player into …

    …feature/generate-typescript-typedefs
    niklaskorz committed Jan 18, 2020
    Configuration menu
    Copy the full SHA
    f08c433 View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2020

  1. Configuration menu
    Copy the full SHA
    cc6ff0f View commit details
    Browse the repository at this point in the history
  2. Revert change to eslintrc

    niklaskorz committed Feb 12, 2020
    Configuration menu
    Copy the full SHA
    f5c36a9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d3af0eb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    31f192b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6093533 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c6b5f64 View commit details
    Browse the repository at this point in the history
  7. Change tag error assertion

    niklaskorz committed Feb 12, 2020
    Configuration menu
    Copy the full SHA
    53a4525 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    df0700b View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    65f6c38 View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2020

  1. Configuration menu
    Copy the full SHA
    0bdccfb View commit details
    Browse the repository at this point in the history
  2. Fix errors

    niklaskorz committed Apr 16, 2020
    Configuration menu
    Copy the full SHA
    241c9ac View commit details
    Browse the repository at this point in the history