Skip to content

mapType

Import from @varavel/vdl-plugin-sdk/testing.

function mapType(type): TypeRef;

Creates a map TypeRef whose value type is type.

Parameters

Parameter Type Description
type TypeRef Value type stored in the map.

Returns

TypeRef

A map TypeRef.

Example

mapType(namedType("User"));
// returns a TypeRef with kind "map"