Skip to content

LocalSourceImage #path -> #filename #22

@DLawla

Description

@DLawla

I believe the type LocalSourceImage, as defined in index.d.ts as

export interface LocalSourceImage {
    path: string;
    directory?: string;
    mode?: "AspectFill" | "AspectFit" | "ScaleToFill";
}

should actually be

export interface LocalSourceImage {
    filename: string;
    directory?: string;
    mode?: "AspectFill" | "AspectFit" | "ScaleToFill";
}

The docs even suggest using filename (as well as in the pre-fork version of this library).

Is this just a simple type tweak, or pehaps am I missing something?

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