<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>susisu</author_name>
  <author_url>https://blog.hatena.ne.jp/susisu/</author_url>
  <blog_title>Object.create(null)</blog_title>
  <blog_url>https://susisu.hatenablog.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
    <anon>TypeScript</anon>
    <anon>小ネタ</anon>
  </categories>
  <description>※この記事に含まれる内容は TypeScript 4.1 のプレビュー版のものです. 今後仕様が変わり動かなくなる可能性もありますのでご注意ください. 話題の template string types で早速遊んでみます. ゴール .foo[1].bar といった形のパス文字列を型レベルで解析してクエリしちゃいます. こういう感じ: type R1 = Query&lt;{ foo: number }, &quot;&quot;&gt;; // R1 = { foo: number } type R2 = Query&lt;{ foo: number }, &quot;.foo&quot;&gt;; // R2 = number type R3 = Qu…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsusisu.hatenablog.com%2Fentry%2F2020%2F09%2F01%2F224328&quot; title=&quot;Template String Types でパス文字列を解析してクエリする - Object.create(null)&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>2020-09-01 22:43:28</published>
  <title>Template String Types でパス文字列を解析してクエリする</title>
  <type>rich</type>
  <url>https://susisu.hatenablog.com/entry/2020/09/01/224328</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
