Skip to content

Commit 1073c07

Browse files
stephancilldavidfurlong
authored andcommitted
chore(core): specify fetchUrlMetadata return type
1 parent 1857c3b commit 1073c07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/web-handlers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Embed } from "./embeds";
1+
import { Embed, UrlMetadata } from "./embeds";
22
import {
33
AddEmbedActionResolverEvents,
44
AddEmbedActionResolverInit,
@@ -23,7 +23,7 @@ export const fetchUrlMetadata = (api_url: string) => {
2323

2424
const reqJson = await req.json();
2525

26-
return reqJson;
26+
return reqJson as UrlMetadata;
2727
};
2828
};
2929

0 commit comments

Comments
 (0)