<?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の型入門 - Qiita はじめに 関数を定義する段階では引数の型は決めずに、実行時に渡す引数の型によって決まってほしいときがあると思います。 そのようなときに便利な方法です。 関数の定義の仕方 ジェネリクスを使用して、以下のように関数を定義すると引数の型が決まっていない関数を定義することができます。 function myFunction&lt;T&gt;(arg: T) { return arg } 関数を実行する あとは以下のように実行します。 const myStr = myFunction('') const myNum = myFunction…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmotomichi-works.hatenablog.com%2Fentry%2F2021%2F06%2F02%2F163959&quot; title=&quot;TypeScript学習日記 その0008 引数の型が決まっていない関数を定義する（関数実行時に引数の型が決まる関数を定義する） - 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-06-02 16:39:59</published>
  <title>TypeScript学習日記 その0008 引数の型が決まっていない関数を定義する（関数実行時に引数の型が決まる関数を定義する）</title>
  <type>rich</type>
  <url>https://motomichi-works.hatenablog.com/entry/2021/06/02/163959</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
