@template {AlignType} [N = AlignType] @template {Doc} [D = Doc] @param {N} alignType @param {D} contents @returns {Omit & {readonly n: N, readonly contents: D}}
(alignType, contents)
| 22 | @returns {Omit<Align, "n" | "contents"> & {readonly n: N, readonly contents: D}} |
| 23 | */ |
| 24 | function align(alignType, contents) { |
| 25 | assertAlignType(alignType); |
| 26 | assertDoc(contents); |
| 27 | |
| 28 | return { type: DOC_TYPE_ALIGN, contents, n: alignType }; |
| 29 | } |
| 30 | |
| 31 | /** |
| 32 | @param {Doc} contents |
no outgoing calls
no test coverage detected
searching dependent graphs…