We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a6351c commit 544216dCopy full SHA for 544216d
src/type-name-formatter.js
@@ -24,13 +24,8 @@ class TypeNameFormatter {
24
* @param options {{ type?: FormattingSchemaType }}
25
* @return {string}
26
*/
27
- format = (name, options) => {
28
- options = options || {};
29
-
30
- /**
31
- * @type {FormattingSchemaType}
32
- */
33
- const schemaType = options.type || "type-name";
+ format = (name, options = {}) => {
+ const schemaType = options.type ?? "type-name";
34
35
const typePrefix =
36
schemaType === "enum-key"
0 commit comments