Skip to content

Add TS type defs#889

Merged
HenriBeck merged 15 commits intomasterfrom
add-ts-typings
Nov 1, 2018
Merged

Add TS type defs#889
HenriBeck merged 15 commits intomasterfrom
add-ts-typings

Conversation

@HenriBeck
Copy link
Copy Markdown
Member

@HenriBeck HenriBeck commented Oct 13, 2018

This adds ts typings to all of our currently supported packages.

Still missing

  • react-jss

@HenriBeck HenriBeck changed the title [WIP] Add TS typings [WIP] Add TS type defs Oct 13, 2018
Henri added 10 commits October 22, 2018 21:35
- Added typings field to every package.json file
* origin/add-ts-typings:
  Scoped keyframes (#888)
  Update readme.md (#897)
  Use CSSTOM in default unit plugin (#893)
  Added .nvmrc (#896)
  [WIP] DONT MERGE Fix ci (#895)
  Update ci (#894)
  Support plugins processing for observables by default (#892)
  Typed CSSOM values support (#887)
  Dynamic values full syntax (#878)
  [jss-plugin-cache] Use WeakMap for cache plugin (#890)
- Added ts-check to CI and pre-commit hook
@HenriBeck HenriBeck requested a review from kof October 23, 2018 20:53
@HenriBeck HenriBeck changed the title [WIP] Add TS type defs Add TS type defs Oct 29, 2018
Copy link
Copy Markdown
Member

@kof kof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, but I can't really validate the quality of types

@HenriBeck HenriBeck merged commit a020173 into master Nov 1, 2018
@HenriBeck HenriBeck deleted the add-ts-typings branch November 1, 2018 18:38
HenriBeck pushed a commit that referenced this pull request Nov 16, 2018
…eact-jss/update-theming

* origin/react-jss/update-theming:
  use https on our site
  remove nag message from postinstall script (#914)
  [docs] Add Onepixel (#912)
  Add TS type defs (#889)
  Don't use undefined as a selector  (#906)
  Ignore undefine, null, or empty value rules when generate style. (#905)
  Fixed cannot find top level reference issue inside @media query (#900)
  Improve scripts output (#904)

# Conflicts:
#	packages/react-jss/.size-snapshot.json
@appsforartists
Copy link
Copy Markdown
Member

appsforartists commented Dec 14, 2018

Is there a reason this is different than what we've written for @types/jss?

At first glance, the @types ones seem more thorough. It checks the names of the keys in classes, asserts that the styles matched the published CSS spec, provides in-editor tool-tips describing the public APIs, etc.

If the jss maintainers want to own its typings, we should start with what's already in DefinitelyTyped.

bhupinderbola pushed a commit to bhupinderbola/jss that referenced this pull request Sep 17, 2019
* Started on ts typings

* - Added tsconfig.json
- Added typings field to every package.json file

* Added Options to observable plugin

* Update jss typings

* Rename generateClassName to generateId

* Started on react-jss types

* - Finished typings for react-jss
- Added ts-check to CI and pre-commit hook

* Update size-snapshots

* Update changelog

* Update snapshots
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants