type BuildSubject<TSubjectMap> = <K>(type, attrs) => unknown;
Defined in: packages/graphql-casl/src/createCan.ts:187
A subject tagger, typically createTyped's typed: turns a subject name plus field values into a __typename-tagged instance CASL can classify.
createTyped
typed
__typename
TSubjectMap extends Record<string, object>
TSubjectMap
Record
string
object
The subject map, e.g. SubjectMap<Resolvers, ResolversTypes>.
SubjectMap<Resolvers, ResolversTypes>
K extends keyof TSubjectMap & string
K
Partial<TSubjectMap[K]>
Partial
unknown
There was an error while loading. Please reload this page.