umberto 6.1.0 → 6.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
|
+
## [6.1.1](https://github.com/cksource/umberto/compare/v6.1.0...v6.1.1) (2025-04-17)
|
|
5
|
+
|
|
6
|
+
### Bug fixes
|
|
7
|
+
|
|
8
|
+
* Displaying arguments names in callbacks before the types in API docs. ([commit](https://github.com/cksource/umberto/commit/2974f7f34b4549907d233b35bd3b0756d0d1177e))
|
|
9
|
+
|
|
10
|
+
|
|
4
11
|
## [6.1.0](https://github.com/cksource/umberto/compare/v6.0.0...v6.1.0) (2025-04-15)
|
|
5
12
|
|
|
6
13
|
### Features
|
package/package.json
CHANGED
|
@@ -694,7 +694,10 @@ class TypeConverter {
|
|
|
694
694
|
const isClass = signature.kindString === 'Constructor signature';
|
|
695
695
|
|
|
696
696
|
const params = ( signature.parameters || [] )
|
|
697
|
-
.map( singleType =>
|
|
697
|
+
.map( singleType => ( {
|
|
698
|
+
name: singleType.name,
|
|
699
|
+
type: this.convert( singleType.type )
|
|
700
|
+
} ) )
|
|
698
701
|
.filter( Boolean );
|
|
699
702
|
|
|
700
703
|
const returns = signature.type ? this.convert( signature.type ) : null;
|
|
@@ -125,10 +125,17 @@ mixin renderInlineFunction( callback )
|
|
|
125
125
|
|
|
126
126
|
//- (2) Arguments parsing. They are seperated by coma (`, `).
|
|
127
127
|
each paramObject, paramIndex in callback.params
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
128
|
+
if ( 'name' in paramObject && 'type' in paramObject )
|
|
129
|
+
//- (3.a) Process a single argument when it is an object.
|
|
130
|
+
| #{ paramObject.name }:
|
|
131
|
+
+renderType( paramObject.type )
|
|
132
|
+
if paramIndex < callback.params.length - 1
|
|
133
|
+
| !{ ', ' }
|
|
134
|
+
else
|
|
135
|
+
//- (3.b) Process a single argument.
|
|
136
|
+
+renderType( paramObject )
|
|
137
|
+
if paramIndex < callback.params.length - 1
|
|
138
|
+
| !{ ', ' }
|
|
132
139
|
|
|
133
140
|
//- (4) Close the parenthesis. Define the returned type.
|
|
134
141
|
//- It prints ` ) => ` or `) => ` depending on required arguments by the callback.
|