<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hepokon365</author_name>
  <author_url>https://blog.hatena.ne.jp/hepokon365/</author_url>
  <blog_title>毎日へっぽこ</blog_title>
  <blog_url>https://hepokon365.hatenablog.com/</blog_url>
  <categories>
    <anon>TypeScript</anon>
  </categories>
  <description>TypeScriptで、既存の型から一部のプロパティを、プロパティ名の部分一致で抽出・削除する方法をメモ。 環境 TypeScript v4.7.4 で確認。 プロパティ名の部分一致での抽出・削除方法 テンプレートリテラル内にUnionを用いると、すべての組み合わせの文字列リテラルのUnionとなる。 文字列から型定義が行えるこの機能は、Template Literal Typesというらしい。 TypeScript: Documentation - Template Literal Types Extract の第2引数に prefix${string} のように指定することで、プロパティ名…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhepokon365.hatenablog.com%2Fentry%2F2023%2F02%2F13%2F211155&quot; title=&quot;TypeScriptの型から、プロパティ名を部分一致で抽出したり削除する - 毎日へっぽこ&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-02-13 21:11:55</published>
  <title>TypeScriptの型から、プロパティ名を部分一致で抽出したり削除する</title>
  <type>rich</type>
  <url>https://hepokon365.hatenablog.com/entry/2023/02/13/211155</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
