Happy typings

This commit is contained in:
syuilo 2017-02-06 07:02:33 +09:00
parent 7a28b44d44
commit 9212319fc5
2 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@ export default async (url: URL.Url): Promise<Summary> => {
return null;
}
const $: client.CheerioStaticEx = res.$;
const $ = res.$;
let title =
$('meta[property="og:title"]').attr('content') ||

View File

@ -23,11 +23,11 @@ export function test(url: URL.Url) {
export async function summary(url: URL.Url) {
const res = await client.fetch(url.href);
const $: client.CheerioStaticEx = res.$;
const $ = res.$;
const title: string = $('#title').text();
const title = $('#title').text();
const description: string =
const description =
$('#productDescription').text() ||
$('meta[name="description"]').attr('content');