styled-components 2.4.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "styled-components",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress 💅",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "typings/styled-components.d.ts",
|
|
@@ -73,7 +73,8 @@ export interface ThemedCssFunction<T> {
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
// Helper type operators
|
|
76
|
-
type
|
|
76
|
+
type KeyofBase = keyof any;
|
|
77
|
+
type Diff<T extends KeyofBase, U extends KeyofBase> = ({ [P in T]: P } & { [P in U]: never } & { [x: string]: never })[T];
|
|
77
78
|
type Omit<T, K extends keyof T> = Pick<T, Diff<keyof T, K>>;
|
|
78
79
|
type WithOptionalTheme<P extends { theme?: T; }, T> = Omit<P, "theme"> & { theme?: T; };
|
|
79
80
|
|
|
Binary file
|
|
Binary file
|