Skip to content

Overview

The CommonGrants.Filters namespace contains a series of basic filters that can be used to define both standard and custom filtering within

Learn more about the default filters supported 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;
}