createAssetValidator

Public Function

Create a validator for an asset record type.

Parameters
NameDescription

type

Type

The type of the asset

props

T.Validator<Props>

The validator for the asset's props

Returns
T.ObjectValidator<{
  id: TLAssetId
  typeName: 'asset'
  type: Type
  props: Props
}>
References

T.Validator, T.ObjectValidator, TLAssetId

Edit this page
Last edited on 15 June 2023
canvasUiColorTypeValidatorcreatePresenceStateDerivation