<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hepokon365</author_name>
  <author_url>https://blog.hatena.ne.jp/hepokon365/</author_url>
  <blog_title>毎日へっぽこ</blog_title>
  <blog_url>https://hepokon365.hatenablog.com/</blog_url>
  <categories>
    <anon>TypeScript</anon>
  </categories>
  <description>TypeScriptのinterfaceやtypeで、関数やオブジェクトの型を定義する際、どんな書き方をすればいいかちょこちょこ迷うのでメモ。 関数 オブジェクト Union型をキーとしたオブジェクト 振り返り 関数 numberを引数に取り、stringを返す関数の場合、以下のようになる。 // interfaceの場合 interface ExampleFunctionInterface { (value: number): string } // typeの場合 type ExampleFunctionType = (value: number) =&gt; string 旧ハンドブックにはi…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhepokon365.hatenablog.com%2Fentry%2F2022%2F07%2F31%2F233039&quot; title=&quot;TypeScriptのinterfaceやtypeで、関数やオブジェクトの型を定義する - 毎日へっぽこ&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>2022-07-31 23:30:39</published>
  <title>TypeScriptのinterfaceやtypeで、関数やオブジェクトの型を定義する</title>
  <type>rich</type>
  <url>https://hepokon365.hatenablog.com/entry/2022/07/31/233039</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
