---
title: createAssetValidator
status: published
category: tlschema
group: Function
author: api
date: 06/23/2023
order: 10
---Public Function
Create a validator for an asset record type.
##### Parameters
`type`
```ts
Type
```
The type of the asset
`props`
```ts
T.Validator
```
The validator for the asset's props
##### Returns
```ts
T.ObjectValidator<{
id: TLAssetId
typeName: 'asset'
type: Type
props: Props
}>
```
##### References
[TLAssetId](/gen/tlschema/TLAssetId-type)