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

Initial work to make plugins type-safe (typescript) #463

Closed
wants to merge 11 commits into from

Commits on Feb 18, 2019

  1. index.d.ts move & changes

    - move inside /src for auto-detection by tsc
    - fix UnitType type to match actual js code
    - change signature of PluginFunc and extend to allow better type handling
    
    # Conflicts:
    #	package.json
    Ben Grynhaus committed Feb 18, 2019
    Configuration menu
    Copy the full SHA
    4c2c6fd View commit details
    Browse the repository at this point in the history
  2. add type declaration for relativeTime plugin and add type test

    bengry authored and Ben Grynhaus committed Feb 18, 2019
    Configuration menu
    Copy the full SHA
    9e69f1c View commit details
    Browse the repository at this point in the history
  3. add advancedFormat plugin types

    bengry authored and Ben Grynhaus committed Feb 18, 2019
    Configuration menu
    Copy the full SHA
    9b73a8f View commit details
    Browse the repository at this point in the history
  4. add buddhistEra plugin types

    bengry authored and Ben Grynhaus committed Feb 18, 2019
    Configuration menu
    Copy the full SHA
    049536e View commit details
    Browse the repository at this point in the history
  5. fix type of extend and add isLeafYear type definitions

    # Conflicts:
    #	src/index.d.ts
    bengry authored and Ben Grynhaus committed Feb 18, 2019
    Configuration menu
    Copy the full SHA
    19b6b42 View commit details
    Browse the repository at this point in the history
  6. add isBetween plugin type

    bengry authored and Ben Grynhaus committed Feb 18, 2019
    Configuration menu
    Copy the full SHA
    c2af2c2 View commit details
    Browse the repository at this point in the history
  7. add multiple plugins chaining test

    bengry authored and Ben Grynhaus committed Feb 18, 2019
    Configuration menu
    Copy the full SHA
    2ccd8f8 View commit details
    Browse the repository at this point in the history
  8. change how dayjs types are defined to support chaining extend calls

    # Conflicts:
    #	src/index.d.ts
    bengry authored and Ben Grynhaus committed Feb 18, 2019
    Configuration menu
    Copy the full SHA
    47d9957 View commit details
    Browse the repository at this point in the history
  9. fix formatting

    # Conflicts:
    #	src/index.d.ts
    Ben Grynhaus committed Feb 18, 2019
    Configuration menu
    Copy the full SHA
    279e2fe View commit details
    Browse the repository at this point in the history
  10. change export type

    # Conflicts:
    #	src/index.d.ts
    Ben Grynhaus committed Feb 18, 2019
    Configuration menu
    Copy the full SHA
    2cde4d7 View commit details
    Browse the repository at this point in the history
  11. add types for CustomParseFormat plugin, and allow creating types fo…

    …r static plugins
    Ben Grynhaus committed Feb 18, 2019
    Configuration menu
    Copy the full SHA
    f79c6a9 View commit details
    Browse the repository at this point in the history