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

@types/styled-react-modal

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/styled-react-modal - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

25

styled-react-modal/index.d.ts

@@ -1,11 +0,11 @@

// Type definitions for styled-react-modal 1.0
// Type definitions for styled-react-modal 1.1
// Project: https://github.com/AlexanderRichey/styled-react-modal
// Definitions by: Adam Lavin <https://github.com/Lavoaster>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
// TypeScript Version: 2.9
import * as React from 'react';
import { StyledComponentClass } from 'styled-components';
import { StyledComponent, AnyStyledComponent, CSSObject, InterpolationFunction } from 'styled-components';
declare const BackgroundComponent: StyledComponentClass<{}, any>;
declare const BaseModalBackground: StyledComponent<'div', any>;

@@ -24,11 +24,14 @@ interface ModalProps {

declare class Modal extends React.Component<ModalProps> {
static styled(
strings: TemplateStringsArray,
...interpolations: any[]
): StyledComponentClass<ModalProps, any>;
static styled(
object: CSSObject | InterpolationFunction<any>
): StyledComponent<React.ComponentClass<ModalProps>, any>;
static styled(
strings: TemplateStringsArray,
...interpolations: any[]
): StyledComponent<React.ComponentClass<ModalProps>, any>;
}
interface ModalProviderProps {
backgroundComponent?: StyledComponentClass<any, any>;
children: React.ReactChild;
backgroundComponent?: AnyStyledComponent;
children: React.ReactNode;
}

@@ -39,2 +42,2 @@

export default Modal;
export { BackgroundComponent, ModalProvider };
export { BaseModalBackground, ModalProvider };
{
"name": "@types/styled-react-modal",
"version": "1.0.0",
"version": "1.1.0",
"description": "TypeScript definitions for styled-react-modal",

@@ -14,2 +14,3 @@ "license": "MIT",

"main": "",
"types": "index",
"repository": {

@@ -24,4 +25,4 @@ "type": "git",

},
"typesPublisherContentHash": "0a725a8e7cfbeadefec93acc4c2e4aa346cc4f523ab379351a9a3e5836182fba",
"typeScriptVersion": "2.8"
"typesPublisherContentHash": "0714504165df4f8e88e4c0f9c1b886bb6f67b05e704e77886da6fe563070a3d0",
"typeScriptVersion": "2.9"
}

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

Additional Details
* Last updated: Fri, 05 Oct 2018 22:05:37 GMT
* Last updated: Tue, 13 Nov 2018 17:01:31 GMT
* Dependencies: react, styled-components

@@ -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