This repository was archived by the owner on Mar 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed
Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -413,7 +413,7 @@ describe('generateSeoTags', () => {
413413 const input = {
414414 media : {
415415 url : 'https://example.com/image-1.jpg' ,
416- height : ' 100' ,
416+ height : 100 ,
417417 } ,
418418 } ;
419419
@@ -489,11 +489,11 @@ describe('generateSeoTags', () => {
489489 media : [
490490 {
491491 url : 'https://example.com/image-1.jpg' ,
492- height : ' 100' ,
492+ height : 100 ,
493493 } ,
494494 {
495495 url : 'https://example.com/image-2.jpg' ,
496- width : ' 100' ,
496+ width : 100 ,
497497 } ,
498498 ] ,
499499 } ;
@@ -602,16 +602,16 @@ describe('generateSeoTags', () => {
602602 media : [
603603 {
604604 url : 'https://example.com/image-1.swf' ,
605- height : ' 100' ,
606- type : 'video' ,
605+ height : 100 ,
606+ type : 'video' as const ,
607607 } ,
608608 {
609609 url : 'https://example.com/image-1.mp3' ,
610- type : 'audio' ,
610+ type : 'audio' as const ,
611611 } ,
612612 {
613613 url : 'https://example.com/image-1.jpg' ,
614- type : 'image' ,
614+ type : 'image' as const ,
615615 height : 100 ,
616616 } ,
617617 ] ,
Original file line number Diff line number Diff line change @@ -45,7 +45,11 @@ export interface Seo {
4545 * ```
4646 *
4747 */
48- media : Maybe < string > | undefined | Partial < SeoMedia > | Partial < SeoMedia > [ ] ;
48+ media :
49+ | Maybe < string >
50+ | Partial < SeoMedia >
51+ | ( Partial < SeoMedia > | Maybe < string > ) [ ]
52+ | undefined ;
4953 /**
5054 * The description of the page. This is used in the `name="description"` meta tag as well as the `og:description` meta
5155 * tag.
You can’t perform that action at this time.
0 commit comments