Skip to content

Commit 7952edd

Browse files
committed
chore(typedoc): sort imports with Oxfmt
Oxfmt sorts imports since #1120, with parent imports before sibling ones. Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent a9282ea commit 7952edd

5 files changed

Lines changed: 23 additions & 23 deletions

File tree

‎packages/typedoc/src/render/entries.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { ReflectionKind } from 'typedoc';
22

3-
import { renderDefault, renderParts } from './comments.mjs';
43
import { STANDARD_TAGS } from '../constants.mjs';
54
import { code, heading } from '../utils/markdown.mjs';
65
import { camelCase } from '../utils/reflections.mjs';
6+
import { renderDefault, renderParts } from './comments.mjs';
77

88
/**
99
* The name members of a type are documented on: `docKitReceivers`, or the

‎packages/typedoc/src/render/lists.mjs‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
// Typed lists, from which doc-kit builds signatures and their tables:
2-
// `- \`name\` {Type} Description. **Default:** \`value\`.`
3-
import { renderDefault, renderParts, splitSummary } from './comments.mjs';
4-
import { parameterLabel, splitThis } from './entries.mjs';
5-
import { renderDeclarationType, renderType } from './types.mjs';
61
import {
72
CODE_SPAN,
83
NESTED_INDENT,
@@ -11,6 +6,11 @@ import {
116
} from '../constants.mjs';
127
import { code, firstSentence, indentContinuation } from '../utils/markdown.mjs';
138
import { commentOf, membersOf, nestedObject } from '../utils/reflections.mjs';
9+
// Typed lists, from which doc-kit builds signatures and their tables:
10+
// `- \`name\` {Type} Description. **Default:** \`value\`.`
11+
import { renderDefault, renderParts, splitSummary } from './comments.mjs';
12+
import { parameterLabel, splitThis } from './entries.mjs';
13+
import { renderDeclarationType, renderType } from './types.mjs';
1414

1515
/**
1616
* Joins the parts of an item that are there.

‎packages/typedoc/src/render/members.mjs‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@
22
// page.
33
import { ReflectionKind } from 'typedoc';
44

5-
import { entryHeading, renderEntry, splitThis } from './entries.mjs';
6-
import {
7-
memberPageItem,
8-
parameterItems,
9-
signatureItems,
10-
typeItem,
11-
} from './lists.mjs';
12-
import { renderType } from './types.mjs';
135
import { ANCHOR_SEPARATORS, EDGE_HYPHENS } from '../constants.mjs';
146
import { code, heading } from '../utils/markdown.mjs';
157
import {
@@ -22,6 +14,14 @@ import {
2214
signaturesOf,
2315
typeOf,
2416
} from '../utils/reflections.mjs';
17+
import { entryHeading, renderEntry, splitThis } from './entries.mjs';
18+
import {
19+
memberPageItem,
20+
parameterItems,
21+
signatureItems,
22+
typeItem,
23+
} from './lists.mjs';
24+
import { renderType } from './types.mjs';
2525

2626
/**
2727
* What a page's own entry carries besides the entry itself.

‎packages/typedoc/src/render/pages.mjs‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
// of its own (`docKitMemberPages`).
33
import { ReflectionKind } from 'typedoc';
44

5+
import { code, firstSentence, heading } from '../utils/markdown.mjs';
6+
import {
7+
commentOf,
8+
deref,
9+
isCallable,
10+
objectDeclaration,
11+
signaturesOf,
12+
} from '../utils/reflections.mjs';
513
import { splitSummary } from './comments.mjs';
614
import { entryName, renderEntry } from './entries.mjs';
715
import { typeItem } from './lists.mjs';
@@ -12,14 +20,6 @@ import {
1220
renderSignature,
1321
} from './members.mjs';
1422
import { renderType } from './types.mjs';
15-
import { code, firstSentence, heading } from '../utils/markdown.mjs';
16-
import {
17-
commentOf,
18-
deref,
19-
isCallable,
20-
objectDeclaration,
21-
signaturesOf,
22-
} from '../utils/reflections.mjs';
2323

2424
/**
2525
* A reflection's page title: `Interface: InputOptions`, `Function: build()`.

‎packages/typedoc/src/utils/router.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import { basename } from 'node:path';
33
import { slug } from '@doc-kit/core/generators/metadata/utils/slugger.mjs';
44
import { KindRouter, PageKind, ReflectionKind } from 'typedoc';
55

6+
import { entryHeading } from '../render/entries.mjs';
67
import {
78
membersOf,
89
referencedType,
910
signaturesOf,
1011
typeOf,
1112
} from './reflections.mjs';
12-
import { entryHeading } from '../render/entries.mjs';
1313

1414
/**
1515
* The types documented on the page of the one member with a page of its own

0 commit comments

Comments
 (0)