From d79795acc30ca913832071ad1da58d5be66ec777 Mon Sep 17 00:00:00 2001 From: thepassle Date: Wed, 13 Sep 2023 17:00:23 +0200 Subject: [PATCH] fix: types are optional --- packages/ajax/types/types.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/ajax/types/types.ts b/packages/ajax/types/types.ts index c4b3ec36b..9a71351ac 100644 --- a/packages/ajax/types/types.ts +++ b/packages/ajax/types/types.ts @@ -11,12 +11,12 @@ export interface LionRequestInit extends Omit { } export interface AjaxConfig { - addAcceptLanguage: boolean; - addCaching: boolean; - xsrfCookieName: string | null; - xsrfHeaderName: string | null; - cacheOptions: CacheOptionsWithIdentifier; - jsonPrefix: string; + addAcceptLanguage?: boolean; + addCaching?: boolean; + xsrfCookieName?: string | null; + xsrfHeaderName?: string | null; + cacheOptions?: CacheOptionsWithIdentifier; + jsonPrefix?: string; } export type RequestInterceptor = (request: Request) => Promise; @@ -46,7 +46,7 @@ export interface CacheOptions { } export interface CacheOptionsWithIdentifier extends CacheOptions { - getCacheIdentifier: () => string; + getCacheIdentifier?: () => string; } export interface ValidatedCacheOptions extends CacheOptions {