Fixed the return type of getCookieConsentValue in the dts file.

This commit is contained in:
2021-01-27 16:34:57 +01:00
parent 1c6f335500
commit 3e9e988e96
2 changed files with 5 additions and 1 deletions

2
src/index.d.ts vendored
View File

@@ -49,6 +49,6 @@ export default class CookieConsent extends React.Component<CookieConsentProps, {
* to: https://web.dev/samesite-cookie-recipes/#handling-incompatible-clients
* @param {*} name optional name of the cookie
*/
export function getCookieConsentValue(name?: string);
export function getCookieConsentValue(name?: string): string;
export { Cookies };