title: How to validate props? (vue3, composition-api, typescript)
body: <p>How to use <strong>validator</strong> for props value in <strong>typescript</strong>?</p>
  <pre><code>type Props = {
      name: string
      type?: string // how to use &quot;validator&quot; ?
      modelValue: any
  }
  
  const props = defineProps&lt;Props&gt;()
  </code></pre>
  <p>How to make it work as in the following declaration:</p>
  <pre><code>defineProps({
      type: {
          type: String,
          validator(value) {
              return ...
          }
      }
  })
  </code></pre>