<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nekko1119</author_name>
  <author_url>https://blog.hatena.ne.jp/nekko1119/</author_url>
  <blog_title>C++と色々</blog_title>
  <blog_url>https://nekko1119.hatenablog.com/</blog_url>
  <categories>
    <anon>Typescript</anon>
  </categories>
  <description>動機 タプル型を連結したくなるときはありませんか？例えば以下のようなケースを考えます // 2つタプルが存在しています const t1 = [1, &quot;aaa&quot;] as const; // readonly [1, &quot;aaa&quot;] 型 const t2 = [true, () =&gt; {}] as const; // readonly [true, () =&gt; void] 型 // 繋げたい const result = [...t1, ...t2]; ですが、 result はそれぞれのタプル型の情報がなくなり、要素の型のユニオン型の配列になってしまいます 全ての要素の型のユニオン型の配列になっ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnekko1119.hatenablog.com%2Fentry%2F2019%2F04%2F26%2F032656&quot; title=&quot;Typescriptでタプル型の連結をする - C++と色々&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>https://cdn-ak.f.st-hatena.com/images/fotolife/n/nekko1119/20190426/20190426031726.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-04-26 03:26:56</published>
  <title>Typescriptでタプル型の連結をする</title>
  <type>rich</type>
  <url>https://nekko1119.hatenablog.com/entry/2019/04/26/032656</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
