refactor(backend): Types
This commit is contained in:
		
							parent
							
								
									6ad7fbf208
								
							
						
					
					
						commit
						25f9eb2af2
					
				
					 31 changed files with 92 additions and 86 deletions
				
			
		|  | @ -1,3 +1,3 @@ | |||
| type LearningPathExample = { | ||||
| interface LearningPathExample { | ||||
|     createLearningPath: () => LearningPath; | ||||
| }; | ||||
| } | ||||
|  |  | |||
|  | @ -6,12 +6,12 @@ import { createLearningPathNode, createLearningPathTransition } from './learning | |||
| import { LearningObject } from '../../../src/entities/content/learning-object.entity'; | ||||
| import { envVars, getEnvVar } from '../../../src/util/envVars'; | ||||
| 
 | ||||
| export type ConditionTestLearningPathAndLearningObjects = { | ||||
| export interface ConditionTestLearningPathAndLearningObjects { | ||||
|     branchingObject: LearningObject; | ||||
|     extraExerciseObject: LearningObject; | ||||
|     finalObject: LearningObject; | ||||
|     learningPath: LearningPath; | ||||
| }; | ||||
| } | ||||
| 
 | ||||
| export function createConditionTestLearningPathAndLearningObjects(): ConditionTestLearningPathAndLearningObjects { | ||||
|     const learningPath = new LearningPath(); | ||||
|  |  | |||
		Reference in a new issue