mirror of
https://github.com/Mastermindzh/react-cookie-consent.git
synced 2025-01-20 18:41:44 +01:00
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:
parent
673f4fe28f
commit
ef192c0e86
44
src/index.d.ts
vendored
44
src/index.d.ts
vendored
@ -1,29 +1,29 @@
|
||||
import * as React from 'react';
|
||||
import Cookies from "js-cookie";
|
||||
|
||||
export interface ICookieConcentProps {
|
||||
location?: "top" | "bottom" | "none",
|
||||
style?: object,
|
||||
buttonStyle?: object,
|
||||
contentStyle?: object,
|
||||
children?: React.ReactNode,
|
||||
disableStyles?: boolean,
|
||||
hideOnAccept?: boolean,
|
||||
onAccept?: Function,
|
||||
buttonText?: Function | React.ReactNode,
|
||||
cookieName?: string,
|
||||
cookieValue?: string | boolean | number,
|
||||
debug?: boolean,
|
||||
expires?: number,
|
||||
containerClasses?: string,
|
||||
contentClasses?: string,
|
||||
buttonClasses?: string,
|
||||
buttonId?: string,
|
||||
acceptOnScroll?: boolean,
|
||||
acceptOnScrollPercentage?: number,
|
||||
extraCookieOptions?: object
|
||||
export interface CookieConsentProps {
|
||||
location?: "top" | "bottom" | "none",
|
||||
style?: object,
|
||||
buttonStyle?: object,
|
||||
contentStyle?: object,
|
||||
children?: React.ReactNode,
|
||||
disableStyles?: boolean,
|
||||
hideOnAccept?: boolean,
|
||||
onAccept?: Function,
|
||||
buttonText?: Function | React.ReactNode,
|
||||
cookieName?: string,
|
||||
cookieValue?: string | boolean | number,
|
||||
debug?: boolean,
|
||||
expires?: number,
|
||||
containerClasses?: string,
|
||||
contentClasses?: string,
|
||||
buttonClasses?: string,
|
||||
buttonId?: string,
|
||||
acceptOnScroll?: boolean,
|
||||
acceptOnScrollPercentage?: number,
|
||||
extraCookieOptions?: object
|
||||
}
|
||||
|
||||
export default class CookieConcent extends React.Component<ICookieConcentProps, {}> {}
|
||||
export default class CookieConsent extends React.Component<CookieConsentProps, {}> {}
|
||||
|
||||
export { Cookies };
|
||||
|
Loading…
Reference in New Issue
Block a user