@types/styled-react-modal
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3889
34