mirror of
https://github.com/Mastermindzh/react-cookie-consent.git
synced 2025-02-01 08:12:34 +01:00
prettified the typescript definition file (using prettier)
This commit is contained in:
parent
04c553fded
commit
1822d9ad83
42
src/index.d.ts
vendored
42
src/index.d.ts
vendored
@ -1,27 +1,27 @@
|
|||||||
import * as React from 'react';
|
import * as React from "react";
|
||||||
import Cookies from "js-cookie";
|
import Cookies from "js-cookie";
|
||||||
|
|
||||||
export interface CookieConsentProps {
|
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 CookieConsent extends React.Component<CookieConsentProps, {}> {}
|
export default class CookieConsent extends React.Component<CookieConsentProps, {}> {}
|
||||||
|
Loading…
Reference in New Issue
Block a user