Skip to content

Commit

Permalink
simplify JSDoc for UnionOneOf
Browse files Browse the repository at this point in the history
  • Loading branch information
tinchoz49 committed Jul 26, 2024
1 parent 4915ecd commit 537a823
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/head-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ export default (cjs = false) => `/* eslint eslint-comments/no-unlimited-disable:
* @template {TSchema[]} T
* @param {[...T]} oneOf
* @param {SchemaOptions} [options={}]
* @returns {TUnionOneOf<T>}
*/
const UnionOneOf = (oneOf, options = {}) => {
/**
Expand All @@ -76,7 +75,7 @@ export default (cjs = false) => `/* eslint eslint-comments/no-unlimited-disable:
if (!TypeRegistry.Has('UnionOneOf'))
TypeRegistry.Set('UnionOneOf', UnionOneOfCheck)
return /** @type {TUnionOneOf<typeof oneOf>} */({
return /** @type {TUnionOneOf<T>} */({
...options,
[Kind]: 'UnionOneOf',
oneOf
Expand Down
Loading

0 comments on commit 537a823

Please sign in to comment.