Skip to content

Commit 0e37810

Browse files
Recompiled
1 parent c288c9b commit 0e37810

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

bin/typedoc.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -932,6 +932,10 @@ declare module td {
932932
* Should externally resolved TypeScript files be ignored?
933933
*/
934934
excludeExternals?: boolean;
935+
/**
936+
* Should symbols that are not marked as being exported be ignored?
937+
*/
938+
excludeNotExported?: boolean;
935939
}
936940
}
937941
declare module td.converter {

bin/typedoc.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1933,6 +1933,10 @@ var td;
19331933
name: "excludeExternals",
19341934
help: 'Prevent externally resolved TypeScript files from being documented.',
19351935
type: 2 /* Boolean */
1936+
}, {
1937+
name: "excludeNotExported",
1938+
help: 'Prevent symbols that are not exported from being documented.',
1939+
type: 2 /* Boolean */
19361940
}]);
19371941
};
19381942
/**
@@ -3206,6 +3210,11 @@ var td;
32063210
return null;
32073211
name = node.symbol.name;
32083212
}
3213+
// Test whether the node is exported
3214+
var isExported = container.flags.isExported || !!(node.flags & 1 /* Export */);
3215+
if (!isExported && context.getOptions().excludeNotExported) {
3216+
return null;
3217+
}
32093218
// Test whether the node is private, when inheriting ignore private members
32103219
var isPrivate = !!(node.flags & 32 /* Private */);
32113220
if (context.isInherit && isPrivate) {
@@ -3238,6 +3247,7 @@ var td;
32383247
child.setFlag(8 /* Static */, isStatic);
32393248
child.setFlag(1 /* Private */, isPrivate);
32403249
child.setFlag(1024 /* ConstructorProperty */, isConstructorProperty);
3250+
child.setFlag(16 /* Exported */, isExported);
32413251
child = setupDeclaration(context, child, node);
32423252
if (child) {
32433253
children.push(child);
@@ -3268,7 +3278,6 @@ var td;
32683278
reflection.setFlag(2 /* Protected */, !!(node.flags & 64 /* Protected */));
32693279
reflection.setFlag(4 /* Public */, !!(node.flags & 16 /* Public */));
32703280
reflection.setFlag(128 /* Optional */, !!(node['questionToken']));
3271-
reflection.setFlag(16 /* Exported */, reflection.parent.flags.isExported || !!(node.flags & 1 /* Export */));
32723281
if (context.isInherit && (node.parent == context.inheritParent || reflection.flags.isConstructorProperty)) {
32733282
if (!reflection.inheritedFrom) {
32743283
reflection.inheritedFrom = createReferenceType(context, node.symbol, true);

0 commit comments

Comments
 (0)