---
title: InferNonNullishOutput
description: Infer non nullable output type.
contributors:
  - fabian-hiller
---

# InferNonNullishOutput

Infer non nullable output type.

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

// Infer non nullish string output type
type NonNullishStringOutput = v.InferNonNullishOutput<
  typeof NullishStringSchema
>; // number
```
