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

# InferNonNullishInput

Infer non nullable input type.

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

// Infer non nullish string input type
type NonNullishStringInput = v.InferNonNullishInput<typeof NullishStringSchema>; // string
```
