---
title: InferNonNullableInput
description: Infer non nullable input type.
contributors:
  - fabian-hiller
---

# InferNonNullableInput

Infer non nullable input type.

```ts
// Create nullable string schema
const NullableStringSchema = v.nullable(
  v.pipe(
    v.string(),
    v.transform((input) => input.length)
  )
);

// Infer non nullable string input type
type NonNullableStringInput = v.InferNonNullableInput<
  typeof NullableStringSchema
>; // string
```
