Skip to content

Commit f0043cb

Browse files
committed
chore: update pkgs
1 parent 8f9be8f commit f0043cb

File tree

2 files changed

+19
-23
lines changed

2 files changed

+19
-23
lines changed

src/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ export interface IExtractOpenGraphOptions {
1414
}
1515

1616
export interface IOGResult extends IOgObjectMedia {
17-
ogTitle?: string;
18-
ogType?: string;
19-
ogUrl?: string;
20-
ogDescription?: string;
2117
ogLocale?: string;
2218
favicon?: string;
2319
ogDate?: string;

src/media.ts

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -71,33 +71,33 @@ export interface IMediaOptions {
7171
onlyGetOpenGraphInfo?: any;
7272
}
7373
export interface IOgImage {
74-
url: string;
75-
width: string;
76-
height: string;
77-
type: string;
74+
url?: string;
75+
width?: string;
76+
height?: string;
77+
type?: string;
7878
}
7979
export interface IOgVideo {
80-
url: string;
81-
width: string;
82-
height: string;
83-
type: string;
80+
url?: string;
81+
width?: string;
82+
height?: string;
83+
type?: string;
8484
}
8585
export interface ITwitterImage {
86-
url: string;
87-
width: string;
88-
height: string;
89-
alt: string;
86+
url?: string;
87+
width?: string;
88+
height?: string;
89+
alt?: string;
9090
}
9191
export interface ITwitterPlayer {
92-
url: string;
93-
width: string;
94-
height: string;
95-
stream: string;
92+
url?: string;
93+
width?: string;
94+
height?: string;
95+
stream?: string;
9696
}
9797
export interface IMusicSong {
98-
url: string;
99-
track: string;
100-
disc: string;
98+
url?: string;
99+
track?: string;
100+
disc?: string;
101101
}
102102
export interface IOgObjectMedia {
103103
ogTitle?: string;

0 commit comments

Comments
 (0)