﻿<head><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4357510538660394"
     crossorigin="anonymous"></script></head># InferNonOptionalInput

> This document is the Markdown version of [valibot.dev/api/InferNonOptionalInput/](https://valibot.dev/api/InferNonOptionalInput/). For the complete documentation index, see [llms.txt](https://valibot.dev/llms.txt).

Infer non optional input type.

```ts
// Create optional string schema
const OptionalStringSchema = v.optional(
  v.pipe(
    v.string(),
    v.transform((input