vitepress-plugin-api-extractor 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +18 -18
- package/package.json +15 -15
package/index.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ interface CategoryConfig extends WorkItemCategory {
|
|
|
27
27
|
*
|
|
28
28
|
* @public
|
|
29
29
|
*/
|
|
30
|
-
declare const DEFAULT_CATEGORIES: Readonly<Record<string, CategoryConfig>>;
|
|
30
|
+
export declare const DEFAULT_CATEGORIES: Readonly<Record<string, CategoryConfig>>;
|
|
31
31
|
//#endregion
|
|
32
32
|
//#region src/emit/sidebar.d.ts
|
|
33
33
|
/**
|
|
@@ -60,14 +60,14 @@ type SidebarMulti = Record<string, SidebarItem[]>;
|
|
|
60
60
|
*
|
|
61
61
|
* @public
|
|
62
62
|
*/
|
|
63
|
-
declare function sidebarItems(tree: NavTree): SidebarItem[];
|
|
63
|
+
export declare function sidebarItems(tree: NavTree): SidebarItem[];
|
|
64
64
|
/**
|
|
65
65
|
* The `themeConfig.sidebar` entry for one API, keyed by its base route so
|
|
66
66
|
* the sidebar shows only under the API's pages.
|
|
67
67
|
*
|
|
68
68
|
* @public
|
|
69
69
|
*/
|
|
70
|
-
declare function sidebarFor(tree: NavTree): SidebarMulti;
|
|
70
|
+
export declare function sidebarFor(tree: NavTree): SidebarMulti;
|
|
71
71
|
//#endregion
|
|
72
72
|
//#region src/Registry.d.ts
|
|
73
73
|
/**
|
|
@@ -77,7 +77,7 @@ declare function sidebarFor(tree: NavTree): SidebarMulti;
|
|
|
77
77
|
*
|
|
78
78
|
* @public
|
|
79
79
|
*/
|
|
80
|
-
declare const TSDOCTOR_NAMESPACE = "tsdoctor";
|
|
80
|
+
export declare const TSDOCTOR_NAMESPACE = "tsdoctor";
|
|
81
81
|
/**
|
|
82
82
|
* An external package to load declarations for.
|
|
83
83
|
*
|
|
@@ -109,7 +109,7 @@ interface ExternalTypesReport {
|
|
|
109
109
|
*
|
|
110
110
|
* @public
|
|
111
111
|
*/
|
|
112
|
-
declare function externalPackagesOf(packageJson: Record<string, unknown> | undefined): ReadonlyArray<ExternalPackage>;
|
|
112
|
+
export declare function externalPackagesOf(packageJson: Record<string, unknown> | undefined): ReadonlyArray<ExternalPackage>;
|
|
113
113
|
/**
|
|
114
114
|
* Resolve each package to an exact published version and merge its
|
|
115
115
|
* declarations into `vfs`, in place. First-party packages (the ones being
|
|
@@ -123,7 +123,7 @@ declare function externalPackagesOf(packageJson: Record<string, unknown> | undef
|
|
|
123
123
|
*
|
|
124
124
|
* @public
|
|
125
125
|
*/
|
|
126
|
-
declare const loadExternalTypes: (vfs: Vfs, packages: readonly ExternalPackage[], documented: ReadonlySet<string>) => Effect.Effect<{
|
|
126
|
+
export declare const loadExternalTypes: (vfs: Vfs, packages: readonly ExternalPackage[], documented: ReadonlySet<string>) => Effect.Effect<{
|
|
127
127
|
loaded: never[];
|
|
128
128
|
skipped: string[];
|
|
129
129
|
warning: string;
|
|
@@ -212,7 +212,7 @@ interface GenerateResult {
|
|
|
212
212
|
*
|
|
213
213
|
* @public
|
|
214
214
|
*/
|
|
215
|
-
declare const generate: (input: GenerateInput) => Effect.Effect<{
|
|
215
|
+
export declare const generate: (input: GenerateInput) => Effect.Effect<{
|
|
216
216
|
packageName: string;
|
|
217
217
|
baseRoute: string;
|
|
218
218
|
sidebar: SidebarMulti;
|
|
@@ -287,7 +287,7 @@ declare const TwoslashCacheStore_base: Context.ServiceClass<TwoslashCacheStore,
|
|
|
287
287
|
*
|
|
288
288
|
* @public
|
|
289
289
|
*/
|
|
290
|
-
declare class TwoslashCacheStore extends TwoslashCacheStore_base {
|
|
290
|
+
export declare class TwoslashCacheStore extends TwoslashCacheStore_base {
|
|
291
291
|
/**
|
|
292
292
|
* The live store over the XDG sqlite cache.
|
|
293
293
|
*
|
|
@@ -382,7 +382,7 @@ interface ApiExtractorResult {
|
|
|
382
382
|
*
|
|
383
383
|
* @public
|
|
384
384
|
*/
|
|
385
|
-
declare function apiExtractor(options: ApiExtractorOptions): Promise<ApiExtractorResult>;
|
|
385
|
+
export declare function apiExtractor(options: ApiExtractorOptions): Promise<ApiExtractorResult>;
|
|
386
386
|
//#endregion
|
|
387
387
|
//#region src/emit/frontmatter.d.ts
|
|
388
388
|
/**
|
|
@@ -397,7 +397,7 @@ type HeadConfig = [string, Record<string, string>] | [string, Record<string, str
|
|
|
397
397
|
*
|
|
398
398
|
* @public
|
|
399
399
|
*/
|
|
400
|
-
declare function headConfig(tag: HeadTag): HeadConfig;
|
|
400
|
+
export declare function headConfig(tag: HeadTag): HeadConfig;
|
|
401
401
|
/**
|
|
402
402
|
* The facts a page's frontmatter is built from.
|
|
403
403
|
*
|
|
@@ -417,7 +417,7 @@ interface FrontmatterInput {
|
|
|
417
417
|
*
|
|
418
418
|
* @public
|
|
419
419
|
*/
|
|
420
|
-
declare function emitFrontmatter(input: FrontmatterInput): string;
|
|
420
|
+
export declare function emitFrontmatter(input: FrontmatterInput): string;
|
|
421
421
|
//#endregion
|
|
422
422
|
//#region src/emit/markdown.d.ts
|
|
423
423
|
/**
|
|
@@ -426,20 +426,20 @@ declare function emitFrontmatter(input: FrontmatterInput): string;
|
|
|
426
426
|
*
|
|
427
427
|
* @public
|
|
428
428
|
*/
|
|
429
|
-
declare const TWOSLASH_META = "twoslash";
|
|
429
|
+
export declare const TWOSLASH_META = "twoslash";
|
|
430
430
|
/**
|
|
431
431
|
* Render one block to flow nodes.
|
|
432
432
|
*
|
|
433
433
|
* @public
|
|
434
434
|
*/
|
|
435
|
-
declare function markdownBlockTree(block: Block): ReadonlyArray<FlowContent>;
|
|
435
|
+
export declare function markdownBlockTree(block: Block): ReadonlyArray<FlowContent>;
|
|
436
436
|
/**
|
|
437
437
|
* Render a page's body to flow nodes — the pre-serialization form of
|
|
438
438
|
* {@link emitMarkdownBody}.
|
|
439
439
|
*
|
|
440
440
|
* @public
|
|
441
441
|
*/
|
|
442
|
-
declare function markdownTree(page: Page): ReadonlyArray<FlowContent>;
|
|
442
|
+
export declare function markdownTree(page: Page): ReadonlyArray<FlowContent>;
|
|
443
443
|
/**
|
|
444
444
|
* Emit a page's markdown body. No frontmatter — the adapter assembles that
|
|
445
445
|
* from the page facts (see `emit/frontmatter.ts`).
|
|
@@ -451,7 +451,7 @@ declare function markdownTree(page: Page): ReadonlyArray<FlowContent>;
|
|
|
451
451
|
*
|
|
452
452
|
* @public
|
|
453
453
|
*/
|
|
454
|
-
declare function emitMarkdownBody(page: Page): Result.Result<string, MarkdownStringifyError>;
|
|
454
|
+
export declare function emitMarkdownBody(page: Page): Result.Result<string, MarkdownStringifyError>;
|
|
455
455
|
//#endregion
|
|
456
456
|
//#region src/Twoslash.d.ts
|
|
457
457
|
/**
|
|
@@ -474,7 +474,7 @@ interface TwoslashTransformerOptions {
|
|
|
474
474
|
*
|
|
475
475
|
* @public
|
|
476
476
|
*/
|
|
477
|
-
declare function environmentHash(vfs: Vfs): string;
|
|
477
|
+
export declare function environmentHash(vfs: Vfs): string;
|
|
478
478
|
/**
|
|
479
479
|
* Build the Shiki transformer for VitePress's `markdown.codeTransformers`.
|
|
480
480
|
*
|
|
@@ -486,7 +486,7 @@ declare function environmentHash(vfs: Vfs): string;
|
|
|
486
486
|
*
|
|
487
487
|
* @public
|
|
488
488
|
*/
|
|
489
|
-
declare function makeTwoslashTransformer(options: TwoslashTransformerOptions): ShikiTransformer;
|
|
489
|
+
export declare function makeTwoslashTransformer(options: TwoslashTransformerOptions): ShikiTransformer;
|
|
490
490
|
//#endregion
|
|
491
|
-
export {
|
|
491
|
+
export type { ApiExtractorOptions, ApiExtractorResult, CategoryConfig, ExternalPackage, ExternalTypesReport, FrontmatterInput, GenerateInput, GenerateResult, GenerateServices, HeadConfig, SidebarItem, SidebarMulti, TwoslashCacheReport, TwoslashCacheStoreShape, TwoslashTransformerOptions };
|
|
492
492
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitepress-plugin-api-extractor",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VitePress adapter for generating API documentation from TypeScript API Extractor models: markdown pages over the @tsdoctor/pages IR, a sidebar from its navigation tree, and Twoslash type-checking over the same virtual file system the RSPress plugin resolves.",
|
|
6
6
|
"keywords": [
|
|
@@ -37,23 +37,23 @@
|
|
|
37
37
|
"./package.json": "./package.json"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@effect/platform-node": "4.0.0-rc.
|
|
41
|
-
"@effected/markdown": "^0.
|
|
42
|
-
"@effected/package-json": "^0.
|
|
43
|
-
"@effected/store": "^0.
|
|
44
|
-
"@effected/tsconfig-json": "^0.
|
|
45
|
-
"@effected/xdg": "^0.
|
|
40
|
+
"@effect/platform-node": "4.0.0-rc.112",
|
|
41
|
+
"@effected/markdown": "^0.9.0",
|
|
42
|
+
"@effected/package-json": "^0.14.0",
|
|
43
|
+
"@effected/store": "^0.7.0",
|
|
44
|
+
"@effected/tsconfig-json": "^0.8.0",
|
|
45
|
+
"@effected/xdg": "^0.4.0",
|
|
46
46
|
"@microsoft/api-extractor-model": "^7.33.11",
|
|
47
47
|
"@shikijs/twoslash": "^4.4.3",
|
|
48
48
|
"@shikijs/vitepress-twoslash": "^4.4.3",
|
|
49
|
-
"@tsdoctor/bundle": "0.3.
|
|
50
|
-
"@tsdoctor/manifest": "0.1.
|
|
51
|
-
"@tsdoctor/model": "0.6.
|
|
52
|
-
"@tsdoctor/pages": "0.1.
|
|
53
|
-
"@tsdoctor/registry": "0.3.
|
|
54
|
-
"@tsdoctor/seo": "0.2.
|
|
55
|
-
"@tsdoctor/vfs": "0.2.
|
|
56
|
-
"effect": "4.0.0-rc.
|
|
49
|
+
"@tsdoctor/bundle": "0.3.1",
|
|
50
|
+
"@tsdoctor/manifest": "0.1.1",
|
|
51
|
+
"@tsdoctor/model": "0.6.3",
|
|
52
|
+
"@tsdoctor/pages": "0.1.4",
|
|
53
|
+
"@tsdoctor/registry": "0.3.4",
|
|
54
|
+
"@tsdoctor/seo": "0.2.1",
|
|
55
|
+
"@tsdoctor/vfs": "0.2.2",
|
|
56
|
+
"effect": "4.0.0-rc.112",
|
|
57
57
|
"image-size": "^2.0.2",
|
|
58
58
|
"shiki": "^4.4.3",
|
|
59
59
|
"typescript": "^6.0.3"
|