<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yunagi_n</author_name>
  <author_url>https://blog.hatena.ne.jp/yunagi_n/</author_url>
  <blog_title>なつねこメモ</blog_title>
  <blog_url>https://tech.natsuneko.blog/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>TypeScript 使うまでもない単体の JS ファイルでも d.ts を使いたい時ってあるじゃないですか。 そういうときのあれ。 例えば、 window に Docute というオブジェクトを生やしたこんな型定義があって。 // 面倒なので一部だけ type DocuteOptions = { target?: string; title?: string; }; interface Docute { new (options?: DocuteOptions): this; } export declare global { interface Window { Docute: Docut…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.natsuneko.blog%2Fentry%2F2020%2F08%2F16%2Fjs-global-type-declaration&quot; title=&quot;JavaScript で型定義ファイルを Global に宣言したい - なつねこメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-08-15 15:00:00</published>
  <title>JavaScript で型定義ファイルを Global に宣言したい</title>
  <type>rich</type>
  <url>https://tech.natsuneko.blog/entry/2020/08/16/js-global-type-declaration</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
