@@ -107,7 +107,7 @@ |
||
107 | 107 | } |
108 | 108 | |
109 | 109 | /** |
110 | - * @return iterable|TypeDefinition[] |
|
110 | + * @return \Generator |
|
111 | 111 | * @throws TypeNotFoundException |
112 | 112 | */ |
113 | 113 | public function getTypeDefinitions(): iterable |
@@ -52,7 +52,7 @@ |
||
52 | 52 | |
53 | 53 | /** |
54 | 54 | * @param Type|null $of |
55 | - * @return iterable|TypeDefinition[] |
|
55 | + * @return \Generator |
|
56 | 56 | */ |
57 | 57 | public function all(Type $of = null): iterable |
58 | 58 | { |