SUBJECTSconstno test imports itconst SUBJECTS: readonly Subject[]The subjects of this library's own models.
Subjects (commons data 0028-modules FR-008): what a module of models applies to, so that the models can be grouped for a reader and for an agent. A subject is data: an id, a title, a sentence on what its models apply to and a place in the order. A module names its subject (subject of defineModule), and a module that names none takes the subject the library gives its name here, where it has one.
subjectOf("identityPki")?.title; // "Identity and access"SUBJECTSconstno test imports itconst SUBJECTS: readonly Subject[]The subjects of this library's own models.
Subjectinterfaceno test imports itinterface SubjectWhat a module of models applies to.
| Member | Type | What it is |
|---|---|---|
id | string | Its id: lower-case words joined by hyphens. |
title | string | Its title, as a reader sees it. |
about | string | What the models of the subject apply to, in a sentence. |
order | number | Its place among the subjects: lower first. |
subjectconstno test imports itconst subject: (id: string) => Subject | undefinedA subject by its id, or none.
subjectOfconstno test imports itconst subjectOf: (moduleName: string, named?: string | undefined) => Subject | undefinedThe subject of a module, by the id it names or else by its name: none where it has neither.