Fixed the return type of getCookieConsentValue in the dts file.

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

View File

@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [[6.2.2](https://github.com/Mastermindzh/react-cookie-consent/releases/tag/6.2.2)]
- Fixed the return type of getCookieConsentValue in the dts file.
## [[6.2.1](https://github.com/Mastermindzh/react-cookie-consent/releases/tag/6.2.1)]
Added the `getCookieConsentValue` to the dts file.

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 };