---
lang: en
title: 'API docs: repository.type.defaultvalue'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.repository.type.defaultvalue.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/repository](./repository.md) &gt; [Type](./repository.type.md) &gt; [defaultValue](./repository.type.defaultvalue.md)

## Type.defaultValue() method

Generate the default value for this type

<b>Signature:</b>

```typescript
defaultValue(): T | null | undefined;
```
<b>Returns:</b>

`T | null | undefined`


