Skip to content

Commit a48a3b2

Browse files
Update lockfile (#1056)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Eric Lau <[email protected]>
1 parent 1084e01 commit a48a3b2

File tree

3 files changed

+441
-524
lines changed

3 files changed

+441
-524
lines changed

packages/core/src/storage/extract.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ export function loadLayoutType(typeName: TypeName | null | undefined, layout: St
203203
function getRetypedRenamed(varDecl: VariableDeclaration) {
204204
let retypedFrom, renamedFrom;
205205
if ('documentation' in varDecl) {
206-
const docs = typeof varDecl.documentation === 'string' ? varDecl.documentation : varDecl.documentation?.text ?? '';
206+
const docs =
207+
typeof varDecl.documentation === 'string' ? varDecl.documentation : (varDecl.documentation?.text ?? '');
207208
for (const { groups } of execall(
208209
/^\s*(?:@(?<title>\w+)(?::(?<tag>[a-z][a-z-]*))? )?(?<args>(?:(?!^\s@\w+)[^])*)/m,
209210
docs,

packages/core/src/utils/annotations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function getAnnotationArgs(doc: string, tag: string, supportedArgs?: read
4848
*/
4949
export function getDocumentation(node: Node) {
5050
if ('documentation' in node) {
51-
return typeof node.documentation === 'string' ? node.documentation : node.documentation?.text ?? '';
51+
return typeof node.documentation === 'string' ? node.documentation : (node.documentation?.text ?? '');
5252
} else {
5353
return '';
5454
}

0 commit comments

Comments
 (0)