Skip to content

Commit 33c1f10

Browse files
committed
include classes in exports
1 parent 8f8ae89 commit 33c1f10

File tree

1 file changed

+3
-1
lines changed
  • apps/svelte.dev/scripts/sync-docs

1 file changed

+3
-1
lines changed

apps/svelte.dev/scripts/sync-docs/types.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ export async function get_types(code: string, statements: ts.NodeArray<ts.Statem
152152
.trim();
153153

154154
const collection =
155-
ts.isVariableStatement(statement) || ts.isFunctionDeclaration(statement)
155+
ts.isVariableStatement(statement) ||
156+
ts.isClassDeclaration(statement) ||
157+
ts.isFunctionDeclaration(statement)
156158
? exports
157159
: types;
158160

0 commit comments

Comments
 (0)