Skip to content

Commit

Permalink
docs: update types/interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
orestbida committed Feb 17, 2024
1 parent 6b865f1 commit 3efd0db
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions docs/reference/configuration-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ You can detect when a modal is ready/created via the [`onModalReady`](/advanced/
Customize the plugin's cookie.

- **Type**:
```javascript
{
```typescript
interface Cookie {
name?: string,
domain?: string,
path?: string,
Expand Down Expand Up @@ -383,8 +383,8 @@ Callback function executed when one of the modals is created and appended to the
Tweak main UI settings.

- **Type**:
```javascript
{
```typescript
interface GuiOptions {
consentModal?: ConsentModalOptions
preferencesModal?: PreferencesModalOptions
}
Expand All @@ -394,8 +394,8 @@ Tweak main UI settings.

- **Type**:

```javascript
{
```typescript
interface ConsentModalOptions {
layout?: string
position?: string
flipButtons?: boolean
Expand Down Expand Up @@ -444,8 +444,8 @@ Tweak main UI settings.

- **Type**:

```javascript
{
```typescript
interface PreferencesModalOptions {
layout?: string
position?: string
flipButtons?: boolean
Expand Down Expand Up @@ -559,8 +559,8 @@ Treat the category as read-only/necessary (always enabled).
Clear cookies when the user rejects the cookie category.

- **Type**:
```javascript
{
```typescript
interface AutoClear {
cookies: Cookie[]
reloadPage: boolean
}
Expand Down Expand Up @@ -611,12 +611,12 @@ If you've installed CookieConsent in a subdomain, and the cookie you're trying t
Define individually togglable services.
- **Type**:
```javascript
```typescript
{
[service: string]: {
label?: string,
onAccept?: () => void,
onReject?: () => void,
label?: string
onAccept?: () => void
onReject?: () => void
cookies?: CookieItem[]
}
}
Expand Down Expand Up @@ -808,8 +808,8 @@ Define the translation(s) content.
### <span style="opacity: .6">[translation]</span>.consentModal<span class="required" data-label="required"></span>

- **Type**:
```javascript
{
```typescript
interface ConsentModal {
label?: string
title?: string
description?: string
Expand Down Expand Up @@ -856,8 +856,8 @@ Define the translation(s) content.
### <span style="opacity: .6">[translation]</span>.preferencesModal<span class="required" data-label="required"></span>

- **Type**:
```javascript
{
```typescript
interface PreferencesModal {
title?: string
acceptAllBtn?: string
acceptNecessaryBtn?: string
Expand Down Expand Up @@ -892,8 +892,8 @@ Define the translation(s) content.
### <span style="opacity: .6">[translation]</span>.preferencesModal.sections<span class="required" data-label="required"></span>
- **Type**:
```javascript
{
```typescript
interface Section {
title?: string
description?: string
linkedCategory?: string
Expand All @@ -908,7 +908,7 @@ Define the translation(s) content.
`CookieTable` type:
```javascript
{
interface CookieTable {
caption?: string
headers: {[key: string]: string}
body: {[key: string]: string}[]
Expand Down

0 comments on commit 3efd0db

Please sign in to comment.