Mari's guided journal software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
mari-guided-journal/src/datatypes/EmpathyGuide.ts

35 lines
1002 B

import {schema} from "../schemata/SchemaData";
import {EmpathyGroup, EmpathyGroupJTD} from "./EmpathyGroup";
export interface EmpathyGuide {
readonly feelings?: {
readonly pleasant?: readonly EmpathyGroup[]
readonly unpleasant?: readonly EmpathyGroup[]
}
readonly needs?: readonly EmpathyGroup[]
}
export type EmpathyGuideJTD = typeof EmpathyGuideJTD
export const EmpathyGuideJTD = schema({
schema: {
optionalProperties: {
feelings: {
optionalProperties: {
pleasant: {
elements: EmpathyGroupJTD.reference
},
unpleasant: {
elements: EmpathyGroupJTD.reference
}
}
},
needs: {
elements: EmpathyGroupJTD.reference
}
}
},
typeHint: null as EmpathyGuide | null,
key: "empathyGuide",
references: [EmpathyGroupJTD],
})