Skip to content

index.TypeAlias.Subjects

github-actions[bot] edited this page Nov 30, 2026 · 20 revisions

Type Alias: Subjects<TMap>

type Subjects<TMap> = { readonly [K in string & keyof TMap]: K };

Defined in: packages/graphql-casl/src/subjects.ts:14

A subject-name namespace: every key of TMap mapped to its own name as a string literal. Subject.User has type 'User', not string.

Type Parameters

TMap

TMap

The subject map, e.g. SubjectMap<Resolvers, ResolversTypes>.

API Reference

Clone this wiki locally