Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tv42 opened this issue Jun 21, 2024 · 0 comments
Open

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

tv42 opened this issue Jun 21, 2024 · 0 comments

Comments

@tv42
Copy link

tv42 commented Jun 21, 2024

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>

@tv42 tv42 changed the title context.image.getUrl docs have nonexisting argument mode context.image.getUrl docs have nonexistent argument mode Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant