<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tee-talog</author_name>
  <author_url>https://blog.hatena.ne.jp/tee-talog/</author_url>
  <blog_title>ひびのログ</blog_title>
  <blog_url>https://www.tee-talog.com/</blog_url>
  <categories>
    <anon>TypeScript</anon>
  </categories>
  <description>を作ったのでご紹介。 先人がいそうだけど、自分なりに考えて作ったので残しておく。 コード Playground Link type Num = `${1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0}` type Token = `${Num | &quot;-&quot; | &quot;+&quot;}` type IsInt&lt;N extends string&gt; = N extends Num ? true : N extends `${infer T}${infer S}` ? T extends Token ? IsInt&lt;S&gt; : false : false type toNumber&lt;T ext…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.tee-talog.com%2Fentry%2F2023%2F12%2F28%2F232542&quot; title=&quot;型引数が整数かどうか調べる型関数 - ひびのログ&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>2023-12-28 23:25:42</published>
  <title>型引数が整数かどうか調べる型関数</title>
  <type>rich</type>
  <url>https://www.tee-talog.com/entry/2023/12/28/232542</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
