Repository navigation
Commit 60b14ff
authored
Fix type error when using content collection images after apng support (#17783)
* fix(content): add apng to the image() schema format union
`apng` was added to VALID_INPUT_FORMATS in #17774, but the ImageFunction
type in content/config.ts was not updated to match, so passing an image
from a collection schema to a component failed to type-check.
Add a type test asserting the schema's format union matches
ImageInputFormat, and widen the check workflow's path filter so changes
under packages/astro/src and the shipped .d.ts files run the examples
check before merge.
* revert: keep astro check path filter as-is1 parent 3578d45 commit 60b14ff
3 files changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
0 commit comments