Hi Everyone,
I am building a SaaS connector and getting below error:
Type 'SearchDocument | undefined' is not assignable to type 'IdentityDocument | undefined'.
Type 'AccessProfileDocument' is not assignable to type 'IdentityDocument'.
Types of property ''synced'' are incompatible.
Type 'string | null | undefined' is not assignable to type 'string | undefined'.
Type 'null' is not assignable to type 'string | undefined'
I have one method which will return SearchDocument | undefined
InowClient.getIdentityAttributeByAdLogin(adLogin: string, employee_id: string, excludeTermed?: boolean): Promise<SearchDocument | undefined>
the above method being called in index.ts file and storing it in below:
const oldSomIdentity: IdentityDocument | undefined
This code worked previously but not sure why it is now throwing error.
Please suggest!