Skip to content

Custom property on User object is not optional #79

@Donivanes

Description

@Donivanes

If you're not sure whether your problem is specifically related to this repository, or to the ConfigCat service overall, please contact the ConfigCat support. This issue tracker is intended only for feedback on the content of this repository.

Describe the bug

I don't know if it's intentional or not, but when doing a feature flag targeting users on the documentation the custom param is optional but in the types of it it's required.

User.d.ts

export declare class User implements IUser {
    identifier: string;
    email?: string | undefined;
    country?: string | undefined;
    custom: Record<string, UserAttributeValue>;
    constructor(identifier: string, email?: string | undefined, country?: string | undefined, custom?: Record<string, UserAttributeValue>);
}

Expected behavior

Not to be required

Screenshots

If applicable, add screenshots to help explain your problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions