File tree Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,10 @@ import fetchMeta from "fetch-meta-tags";
22
33( async ( ) => {
44 // $ExpectType fetchedMeta<"https://alessandrorabitti.com/">
5- const data = await fetchMeta ( "https://alessandrorabitti.com/" ) ;
5+ const data1 = await fetchMeta ( "https://alessandrorabitti.com/" ) ;
6+
7+ // $ExpectType fetchedMeta<"https://alessandrorabitti.com/">
8+ const data2 = await fetchMeta ( "https://alessandrorabitti.com/" , { cache : "no-cache" } ) ;
69
710 // @ts -expect-error
811 await fetchMeta ( true ) ;
Original file line number Diff line number Diff line change @@ -6,4 +6,7 @@ export interface fetchedMeta<T extends string = string> {
66 image ?: string ;
77}
88
9- export default function fetchMeta < T extends string = string > ( site : T ) : Promise < fetchedMeta < T > > ;
9+ export default function fetchMeta < T extends string = string > (
10+ site : T ,
11+ requestInit ?: RequestInit ,
12+ ) : Promise < fetchedMeta < T > > ;
Original file line number Diff line number Diff line change 11{
22 "private" : true ,
33 "name" : " @types/fetch-meta-tags" ,
4- "version" : " 1.0 .9999" ,
4+ "version" : " 1.1 .9999" ,
55 "type" : " module" ,
66 "projects" : [
77 " https://github.com/luisivan/fetch-meta-tags#readme"
Original file line number Diff line number Diff line change 11{
22 "compilerOptions" : {
33 "module" : " node16" ,
4- "lib" : [
5- " es6"
6- ],
4+ "lib" : [" es6" , " dom" ],
75 "noImplicitAny" : true ,
86 "noImplicitThis" : true ,
97 "strictFunctionTypes" : true ,
You can’t perform that action at this time.
0 commit comments