Skip to content

IovCollection create, the IovCreateConfig should have optional params (typescript) #25

@ricardojbertolin

Description

@ricardojbertolin

When executing IovCollection.create method, the config passed (IovCreateConfig interface) has all properties as mandatory.

Because of this, all properties of such interface are required but they aren't.

Suppose the following code:

        const videoElement = this.elRef.nativeElement.firstElementChild;
        const iovCollection = IovCollection.asSingleton();
        iovCollection.create({ videoElement })

The compiler will output the following message:

image

I suggest making all the properties from IovCreateConfig optionals.

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