Skip to content

Commit

Permalink
fix: Fixed mdx validation on expanded object types
Browse files Browse the repository at this point in the history
  • Loading branch information
tgreyuk committed Mar 16, 2024
1 parent 6336001 commit 4998c49
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 342 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function declarationType(

const typeString =
obj.defaultValue && obj.defaultValue !== '...'
? obj.defaultValue
? backTicks(obj.defaultValue)
: context.partials.someType(theType);
if (shouldFormat) {
return ` ${name.join(' ')}: ${indentBlock(typeString, true)};\n`;
Expand Down
2 changes: 1 addition & 1 deletion packages/typedoc-plugin-markdown/test/fixtures/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ const config: Record<string, Fixture> = {
disableSources: true,
expandObjects: true,
expandParameters: true,
useCodeBlocks: true,
},
options: [
{},
{
parametersFormat: 'table',
propertiesFormat: 'table',
useCodeBlocks: true,
},
],
},
Expand Down
Loading

0 comments on commit 4998c49

Please sign in to comment.