title: Zod: create a schema using an existing type
body: <p>I have an endpoint that should get a parameter <code>method</code> which should comply with the axios type <code>Method</code>.</p>
  <p>How can I create a schema in Zod that validates that the value is using the type <code>Schema</code>?</p>
  <pre><code>import { Method } from 'axios';
  const Schema = zod.object({
    method: zod.someHowUseTheTypeFrom(Method),
  });
  </code></pre>
  <p>The type of <code>Method</code> from the axios package is:</p>
  <pre><code>export type Method =
    | 'get' | 'GET'
    | 'delete' | 'DELETE'
    | 'head' | 'HEAD'
    | 'options' | 'OPTIONS'
    | 'post' | 'POST'
    | 'put' | 'PUT'
    | 'patch' | 'PATCH'
    | 'purge' | 'PURGE'
    | 'link' | 'LINK'
    | 'unlink' | 'UNLINK'
  </code></pre>