Skip to content
Get in touch

Overview

The CommonGrants.Types namespace contains a standard set of types that are used to build more complex models.

Learn more about the standard types defined by the CommonGrants protocol:

You can use the types listed above to define custom models in your TypeSpec project.

import "@common-grants/core"
// Exposes the `Types` namespace so that it can be accessed
// without a `CommonGrants` prefix
using CommonGrants;
model MyModel {
id: Types.uuid; // CommonGrants-defined type
description: string; // Standard TypeSpec type
tags: Array<string>; // A templated type
createdAt: utcDateTime;
}