1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01:00

fix: Autehntication required options is optional

This commit is contained in:
Ivar Conradi Østhus 2021-04-29 18:47:04 +02:00
parent bbb714bf5f
commit 176d2e4dd3
No known key found for this signature in database
GPG Key ID: 31AC596886B0BD09

View File

@ -5,7 +5,7 @@ interface IBaseOptions {
} }
interface IOptions extends IBaseOptions { interface IOptions extends IBaseOptions {
options: IBaseOptions[]; options?: IBaseOptions[];
} }
class AuthenticationRequired { class AuthenticationRequired {
@ -15,7 +15,7 @@ class AuthenticationRequired {
private message: string; private message: string;
private options: IBaseOptions[]; private options?: IBaseOptions[];
constructor({ type, path, message, options }: IOptions) { constructor({ type, path, message, options }: IOptions) {
this.type = type; this.type = type;