Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/styled-components

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/styled-components - npm Package Compare versions

Comparing version 5.1.17 to 5.1.18

22

styled-components/index.d.ts

@@ -53,5 +53,5 @@ // Type definitions for styled-components 5.1

? P
: Pick<P, Exclude<keyof P, keyof D>> &
Partial<Pick<P, Extract<keyof P, keyof D>>> &
Partial<Pick<D, Exclude<keyof D, keyof P>>>
: PickU<P, Exclude<keyof P, keyof D>> &
Partial<PickU<P, Extract<keyof P, keyof D>>> &
Partial<PickU<D, Exclude<keyof D, keyof P>>>
: never;

@@ -61,3 +61,3 @@

type MakeAttrsOptional<C extends string | React.ComponentType<any>, O extends object, A extends keyof any> = Omit<
type MakeAttrsOptional<C extends string | React.ComponentType<any>, O extends object, A extends keyof any> = OmitU<
ReactDefaultizedProps<

@@ -71,3 +71,3 @@ C,

Partial<
Pick<React.ComponentPropsWithRef<C extends IntrinsicElementsKeys | React.ComponentType<any> ? C : never> & O, A>
PickU<React.ComponentPropsWithRef<C extends IntrinsicElementsKeys | React.ComponentType<any> ? C : never> & O, A>
>;

@@ -136,7 +136,7 @@

type StyledComponentInterpolation =
| Pick<StyledComponentBase<any, any, any, any>, keyof StyledComponentBase<any, any>>
| Pick<StyledComponentBase<any, any, any>, keyof StyledComponentBase<any, any>>;
| PickU<StyledComponentBase<any, any, any, any>, keyof StyledComponentBase<any, any>>
| PickU<StyledComponentBase<any, any, any>, keyof StyledComponentBase<any, any>>;
// abuse Pick to strip the call signature from ForwardRefExoticComponent
type ForwardRefExoticBase<P> = Pick<React.ForwardRefExoticComponent<P>, keyof React.ForwardRefExoticComponent<any>>;
type ForwardRefExoticBase<P> = PickU<React.ForwardRefExoticComponent<P>, keyof React.ForwardRefExoticComponent<any>>;

@@ -310,4 +310,6 @@ // Config to be used with withConfig

// Helper type operators
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
type WithOptionalTheme<P extends { theme?: T | undefined }, T> = Omit<P, 'theme'> & {
// Pick that distributes over union types
export type PickU<T, K extends keyof T> = T extends any ? {[P in K]: T[P]} : never;
export type OmitU<T, K extends keyof T> = T extends any ? PickU<T, Exclude<keyof T, K>> : never;
type WithOptionalTheme<P extends { theme?: T | undefined }, T> = OmitU<P, 'theme'> & {
theme?: T | undefined;

@@ -314,0 +316,0 @@ };

{
"name": "@types/styled-components",
"version": "5.1.17",
"version": "5.1.18",
"description": "TypeScript definitions for styled-components",

@@ -77,4 +77,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/styled-components",

},
"typesPublisherContentHash": "2b23ca23021834934dcf39c1c8f27fdbf72132fae3a4bb5cd6020c9df7ba4aa0",
"typesPublisherContentHash": "849e91df150818ccfcfe879bc4be7decca538f6efbf0c37786e2ff1cba02f432",
"typeScriptVersion": "3.8"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Mon, 06 Dec 2021 16:01:00 GMT
* Last updated: Mon, 13 Dec 2021 19:01:08 GMT
* Dependencies: [@types/csstype](https://npmjs.com/package/@types/csstype), [@types/react](https://npmjs.com/package/@types/react), [@types/hoist-non-react-statics](https://npmjs.com/package/@types/hoist-non-react-statics)

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc