<h1>Advanced</h1>
<p>Script supports advanced schema transformations using programmable constructs of the TypeScript programming language.</p>
<h2>Mapped Property Keys</h2>
<p>The following uses Script to map and rename property keys.</p>
<pre><code class="language-typescript">const T = Type.Object({
  x: Type.Number(),
  y: Type.Number(),
  z: Type.Number()
})

const S = Type.Script({ T }, &#39;{ [K in keyof T as `prop${Uppercase&lt;K&gt;}`]: T[K] }&#39;})

                                                 