Skip to content

TS type for IUserConsentStatus: add optional property #78

@yglotain

Description

@yglotain

Hi,

Actually, when I try to use the return type of the getUserConsentStatusForAll method like :
ReturnType<IDidomiObject["getUserConsentStatusForAll"]>;

I have an issue to access to purposes?.enabled? properties when I previously refuse all consents..

Is it possible to update interface IUserConsentStatus like :

  interface IUserConsentStatus {
    purposes?: {
      enabled?: string[],
      disabled?: string[],
    };
    vendors?: {
      enabled?: string[],
      disabled?: string[],
    }
  }

?

Thx in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions