File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const TODO_WORD = /\bTODO\b/i;
66/**
77 * @param {import('typedoc').Comment | undefined } comment
88 */
9- export function commentContainsTodo ( comment ) {
9+ function commentContainsTodo ( comment ) {
1010 if ( ! comment ) {
1111 return false ;
1212 }
@@ -22,22 +22,6 @@ export function commentContainsTodo(comment) {
2222 return chunks . some ( text => TODO_WORD . test ( text ) ) ;
2323}
2424
25- /**
26- * Truncate at the first word "TODO" (case-insensitive). Used when flattening display parts to a string.
27- *
28- * @param {string } text
29- */
30- export function stripTextAfterTodo ( text ) {
31- if ( ! text ) {
32- return '' ;
33- }
34- const m = TODO_WORD . exec ( text ) ;
35- if ( ! m ) {
36- return text ;
37- }
38- return text . slice ( 0 , m . index ) . trimEnd ( ) ;
39- }
40-
4125/**
4226 * Drop display parts from the first `TODO` onward; truncate the containing text part if `TODO` appears mid-string.
4327 *
Original file line number Diff line number Diff line change 341341 },
342342 "//#typedoc:generate" : {
343343 "dependsOn" : [" @clerk/nextjs#build" , " @clerk/react#build" , " @clerk/shared#build" ],
344- "inputs" : [
345- " tsconfig.typedoc.json" ,
346- " typedoc.config.mjs" ,
347- " .typedoc/reference-objects.mjs" ,
348- " .typedoc/comment-utils.mjs" ,
349- " .typedoc/extract-methods.mjs" ,
350- " .typedoc/extract-returns-and-params.mjs" ,
351- " .typedoc/standalone-page-tag.mjs"
352- ],
344+ "inputs" : [" tsconfig.typedoc.json" , " typedoc.config.mjs" , " .typedoc/**/*.mjs" ],
353345 "outputs" : [" .typedoc/**" ],
354346 "outputLogs" : " new-only"
355347 },
You can’t perform that action at this time.
0 commit comments