<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>motomichi_works</author_name>
  <author_url>https://blog.hatena.ne.jp/motomichi_works/</author_url>
  <blog_title>Motomichi Works Blog</blog_title>
  <blog_url>https://motomichi-works.hatenablog.com/</blog_url>
  <categories>
    <anon>制作</anon>
    <anon>typescript学習日記</anon>
    <anon>typescript</anon>
  </categories>
  <description>参考にさせていただいたページ 関数の型 - TypeScript Deep Dive 日本語版 はじめに いくつか方法がありますが、少し書いてみます。 後日もう少し充実させていこうと思います。 例として、以下のような「引数が2つあってオブジェクトを返す関数」の型を定義してみます。 const myFunction = function (arg1, arg2) { return { a: arg1, b: arg2, } } 引数arg1はstring型、引数arg2はnumber型を想定しています。 typeキーワードを使う基礎的な方法 まずは基礎的な方法で定義してみます。 // 型を定義 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmotomichi-works.hatenablog.com%2Fentry%2F2021%2F05%2F03%2F210250&quot; title=&quot;TypeScript 学習日記 その0004 関数の型を定義する - Motomichi Works Blog&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>2021-05-03 21:02:50</published>
  <title>TypeScript 学習日記 その0004 関数の型を定義する</title>
  <type>rich</type>
  <url>https://motomichi-works.hatenablog.com/entry/2021/05/03/210250</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
