Tom Crockett
2718a5e3ee
[jss] Export named type for the options argument to createStyleSheet ( #25692 )
2018-05-11 12:16:27 -07:00
Brenton Simpson
de655960b6
[jss] Use indefinite-observable for Observable typings
...
The ones in HEAD are copy-pasted from there. Lets link to the original source.
Continuation of #24078
2018-04-03 22:55:54 -07:00
Fredrik Nicol
6af80194d0
Merge remote-tracking branch 'upstream/master' into jss-improve-typings2
2018-04-03 20:42:20 +02:00
Fredrik Nicol
d8ce691b5a
Upgrade csstype@2
2018-04-03 20:36:49 +02:00
Fredrik Nicol
80ab453b2c
Rename generic parameter
2018-04-03 20:36:22 +02:00
Fredrik Nicol
9edfaf0669
Constrain array length of expand properties
2018-04-03 20:34:36 +02:00
Sergio Morchón Poveda
be3c84327f
Update use with varargs
2018-03-27 13:03:46 +02:00
Fredrik Nicol
8ae1dd4c85
Make tests happy
2018-03-19 09:15:13 +01:00
Fredrik Nicol
5e51c5df48
Merge remote-tracking branch 'upstream/master' into jss-improve-typings2
2018-03-19 09:12:53 +01:00
Fredrik Nicol
e107cb09c5
Change to a test value that will certainly ever happen
...
String literals are not reliable to expect errors on since
the spec may change and accept `string`
2018-03-19 09:00:29 +01:00
Fredrik Nicol
8dda31f4f0
Add length to expanded properties
2018-03-12 08:49:18 +01:00
Fredrik Nicol
858289bfcc
Add generic argument to csstype interfaces
2018-03-05 09:04:30 +01:00
Tom Crockett
3d625ea5b6
Require at least csstype 1.6
2018-03-05 08:50:20 +01:00
Tom Crockett
310a20441b
Allow kebab case anywhere, and allow only kebab case in observables
2018-03-05 08:50:19 +01:00
Tom Crockett
53952c7f36
Upgrade csstype, remove hacks
2018-03-05 08:50:17 +01:00
Tom Crockett
3573402a49
Use csstype
2018-03-05 08:50:16 +01:00
Tom Crockett
b4b5d78ea1
Elaborate on observable testing
2018-03-05 08:50:15 +01:00
Tom Crockett
3310f73f72
Bump version number, add author
2018-03-05 08:50:13 +01:00
Tom Crockett
00b79ed03b
Tweak
2018-03-05 08:50:12 +01:00
Tom Crockett
542a94c964
Add some more type assertions to the test
2018-03-05 08:50:10 +01:00
Tom Crockett
5acc5ac615
Add some type error expectations
2018-03-05 08:50:09 +01:00
Tom Crockett
d265ffc544
Adapt TypeStyle's CSS typings to JSS
2018-03-05 08:50:07 +01:00
Tom Crockett
c0928c6417
Remove rxjs dependency, use observable defn from flow
2018-03-05 08:50:06 +01:00
Tom Crockett
255cd1aa0c
Use TypeStyle's CSSProperties
2018-03-05 08:50:04 +01:00
Tom Crockett
5c8383cb8c
Allow Style to be an Observable
2018-03-05 08:50:03 +01:00
Tom Crockett
8434f97c66
Make JSS use a Name type parameter consistently, more accurate Style type
2018-03-05 08:50:01 +01:00
Daniel Rosenwasser
0276f68c5c
Revert "[jss] Add more granular style typings"
2018-03-02 17:22:19 -08:00
Benjamin Lichtman
a8ec03f3ed
Merge pull request #23116 from pelotom/jss-improve-typings
...
[jss] Add more granular style typings
2018-03-01 11:27:35 -08:00
Denis Augsburger
d70bcc668a
Change to represent get index
2018-02-27 10:48:05 +01:00
Denis Augsburger
6b53e1fbde
Index as a function which returns a number
2018-02-27 10:10:56 +01:00
Denis Augsburger
f3e5f751b7
Rename interface
2018-02-27 09:58:21 +01:00
Denis Augsburger
30a2c6bb27
Expand jss typings to represent SheetsRegistry
2018-02-23 10:43:32 +01:00
Andy Hanson
45c9246c09
Remove esModuleInterop from tsconfigs (no longer mandatory)
2018-02-14 14:55:13 -08:00
Tom Crockett
5dfadbe704
Require at least csstype 1.6
2018-02-12 09:44:36 -08:00
Tom Crockett
4dbac0b15c
Allow kebab case anywhere, and allow only kebab case in observables
2018-02-12 09:41:26 -08:00
Tom Crockett
a5f3f63ac0
Upgrade csstype, remove hacks
2018-02-12 09:31:55 -08:00
Tom Crockett
616d63a78e
Use csstype
2018-02-11 16:24:17 -08:00
Andy
bef4d2b27d
Enable "esModuleInterop" in all tsconfigs ( #23354 )
2018-02-05 11:01:56 -08:00
Tom Crockett
d0adcf2e8f
Elaborate on observable testing
2018-01-23 13:00:24 -08:00
Tom Crockett
75db920668
Bump version number, add author
2018-01-23 08:56:53 -08:00
Tom Crockett
1d931013bf
Tweak
2018-01-23 00:39:49 -08:00
Tom Crockett
b3a964504c
Add some more type assertions to the test
2018-01-23 00:36:55 -08:00
Tom Crockett
e73013b99b
Add some type error expectations
2018-01-23 00:33:24 -08:00
Tom Crockett
9df6a9f1d4
Adapt TypeStyle's CSS typings to JSS
2018-01-23 00:25:00 -08:00
Tom Crockett
a0e3aae50f
Remove rxjs dependency, use observable defn from flow
2018-01-23 00:11:13 -08:00
Tom Crockett
64113e42c7
Use TypeStyle's CSSProperties
2018-01-23 00:00:12 -08:00
Tom Crockett
3157b3c049
Allow Style to be an Observable
2018-01-22 23:50:34 -08:00
Tom Crockett
c5c1d63e4c
Make JSS use a Name type parameter consistently, more accurate Style type
2018-01-22 22:22:44 -08:00
Brenton Simpson
990f8c8405
Added types for jss
...
These are rudimentary type definitions for `jss`. I optimized for utility over thoroughness - they can probably be improved.
Closes https://github.com/cssinjs/jss/issues/362 (and might close https://github.com/cssinjs/jss/issues/361 )
2017-12-01 11:18:47 -08:00
Brenton Simpson
c55bd19de2
Renamed jss to dvtng-jss
...
Fixes #19974
The type definitions in `@types/jss` don't match the `jss` package on npm, which has nearly 400k monthly downloads. I'm not sure where to put the definitions currently squatting at `jss`, as it [doesn't appear that](https://www.npmjs.com/~dvtng ) @dvtng has published them.
2017-11-30 17:42:24 -08:00