Fix issue pointed out in PR

Last commit went a little too fast it seems, this fixes:

- Spelling error
- Indentation
- Code Syntax (No interface prefix)
This commit is contained in:
Allan Kimmer Jensen 2018-11-27 19:50:32 +01:00
parent 673f4fe28f
commit ef192c0e86

44
src/index.d.ts vendored
View File

@ -1,29 +1,29 @@
import * as React from 'react'; import * as React from 'react';
import Cookies from "js-cookie"; import Cookies from "js-cookie";
export interface ICookieConcentProps { export interface CookieConsentProps {
location?: "top" | "bottom" | "none", location?: "top" | "bottom" | "none",
style?: object, style?: object,
buttonStyle?: object, buttonStyle?: object,
contentStyle?: object, contentStyle?: object,
children?: React.ReactNode, children?: React.ReactNode,
disableStyles?: boolean, disableStyles?: boolean,
hideOnAccept?: boolean, hideOnAccept?: boolean,
onAccept?: Function, onAccept?: Function,
buttonText?: Function | React.ReactNode, buttonText?: Function | React.ReactNode,
cookieName?: string, cookieName?: string,
cookieValue?: string | boolean | number, cookieValue?: string | boolean | number,
debug?: boolean, debug?: boolean,
expires?: number, expires?: number,
containerClasses?: string, containerClasses?: string,
contentClasses?: string, contentClasses?: string,
buttonClasses?: string, buttonClasses?: string,
buttonId?: string, buttonId?: string,
acceptOnScroll?: boolean, acceptOnScroll?: boolean,
acceptOnScrollPercentage?: number, acceptOnScrollPercentage?: number,
extraCookieOptions?: object extraCookieOptions?: object
} }
export default class CookieConcent extends React.Component<ICookieConcentProps, {}> {} export default class CookieConsent extends React.Component<CookieConsentProps, {}> {}
export { Cookies }; export { Cookies };