- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我有两个文件,文件 A 和文件 B。文件 A 使用文件 B 中的类。我的目标是在文件 A 的 TypeDoc 输出中引用文件 B 中使用的类的 TypeDoc 输出。我不能似乎是这样做的。
我知道您可以使用带双括号的 TypeDoc 引用同一文件中包含的符号,例如 [[Foo]]
,但这不适用于像这样的外部类型。
/** Trying to reference [[FileB.InnerClass]] like this doesn't work. */
// This here is what I want to include
export type InnerClass = FileB.InnerClass;
// More code...
这有可能实现吗?
最佳答案
是的,这是可能的。
import
import { InnerClass } from './FileB';
/**
* See the [[InnerClass]] for more details.
*/
export type innerClass = InnerClass;
当 typedef
是全局的时,使用这个命令:
typedoc --out ./docs --target ES6 ./src/
或者当它是本地的时候:
npx typedoc --out ./docs --target ES6 ./src/
./docs
是生成文档的文件夹。
./src/
是您的代码所在的文件夹。
--JavaScript 的目标 ES6
版本。
如果你只想显示没有不同模块的类,使用这个标志--mode file
:
npx typedoc --out ./docs --mode file --target ES6 ./src/
有关详细信息,请参阅 documentation .
关于javascript - 使用 TypeDoc 记录外部类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57211393/
我运行命令: typedoc --out ./typeDocDocs ./src 它开始然后显示一个对我来说什么都没有的错误: Using TypeScript 3.2.4 from MY_PROJE
我有一个 gulp 任务,该任务应该获取我的文件并为它们创建文档。任务如下所示: var gulp = require('gulp'); var gulptypedoc = require('gulp
我正在尝试使用 TypeDoc 为我的 TypeScript 项目生成文档。这一代工作正常,除了我无法找到如何将我的类组织到模块中并让 TypeDoc 如此显示它们。 目前我的类(class)只是按目
在 Typedoc 中,您可以使用以下方法链接到另一个类: [[ClassName]] {@link ClassName} 该类甚至可以属于另一个模块。 但是我不知道如何链接到 另一个模块 从另一个模
我有一个 TypeScript 项目,我正在使用 TypeDoc 为其生成文档。在我的项目中,我使用了一个拥有自己现有文档的外部库。在我的项目的 TypeDoc 输出中,我想将阅读器链接到外部库的文档
我有两个文件,文件 A 和文件 B。文件 A 使用文件 B 中的类。我的目标是在文件 A 的 TypeDoc 输出中引用文件 B 中使用的类的 TypeDoc 输出。我不能似乎是这样做的。 我知道您可
每个人一天中的美好时光, 我已经创建了一个应该创建 tsdocs 的 gulp 任务,这是它的样子。 'use strict'; var gulp = require('gulp'), hel
我有以下代码: type AlarmEvent = events.Event void>; 如您所见,事件类采用函数签名形式的通用参数,我想将其记录下来。 有什么想法吗? 最佳答案 如果您需要的只是一
我们应该使用什么标记来标记某物是 typedoc 中的方法。例如我有以下评论: /** * The index for all of the ValidationContext instan
我有一个基于 Typsecript 的 React 应用程序。它工作正常,但我想将 TypeDoc(想想 Typescript 的 JSDoc)添加到组合中。安装后,我从命令行运行它(在测试时只处理一
我正在尝试使用 typedoc 生成文档。我的 typescript 文件中有以下几行。 var validator: any = require('validator'); import * as
我正在尝试使用 TypeDoc 生成文档文件。当我使用以下命令运行 TypeDoc 时: /node_modules/.bin/typedoc --module system --target ES5
Elixir 中好像有三种文档(v1.1.1 是我现在用的版本),@doc, @moduledoc, @typedoc. 在iex中,@doc和@moduledoc可以通过h/1打印出来,但不能@ty
假设我的库中有两个 TypeScript 类,名为 SuperBase . Database和 Record . 是否可以使用 TypeDoc 生成 单页下面是非常简单的格式。它不必完全是那样,只是一
我创建了this repository我正在尝试将根文件夹中生成的 typedoc 目录 doc 部署到 github 页面,以便我可以提供指向 typedoc 的链接。 我看起来它正在根据原始构建日
我是一名优秀的程序员,十分优秀!