Skip to content

context.image.getUrl docs have nonexistent argument mode #9176

@tv42

Description

@tv42

https://keystonejs.com/docs/context/overview#images-api

`image.getUrl(mode, id, extension)`: Given a `mode`, `id`, and `extension` from an `ImageData` object, returns the `src` value representing the location from which the image can be accessed over HTTP.

image.getUrl(mode, id, extension): Given a mode, id, and extension from an ImageData object, returns the src value representing the location from which the image can be accessed over HTTP.

Also seen at

There's no mode in the actual API:

export type ImagesContext = (storage: string) => {
  getUrl: (id: string, extension: ImageExtension) => Promise<string>

export type ImagesContext = (storage: string) => {
getUrl: (id: string, extension: ImageExtension) => Promise<string>

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