Skip to content

Instantly share code, notes, and snippets.

View Aleksandyr's full-sized avatar

Aleksandar Kamenov Aleksandyr

  • Sofia
View GitHub Profile
@Aleksandyr
Aleksandyr / cloudSettings
Last active May 13, 2020 06:31
plugin package json config
{"lastUpload":"2020-05-13T06:31:10.302Z","extensionVersion":"v3.4.3"}
"keywords": [
"typedocplugin"
]
module.exports = (PluginHost: Application) => {
const app = PluginHost.owner;
/**
* Add Options register Component.
*/
app.options.addComponent('options-component', OptComponent);
}
@Component({ name: 'options-component' })
export class OptComponent extends OptionsComponent {
public initialize() {
const generateToOption: DeclarationOption = {
name: "generate-json",
short: "gen-json",
type: ParameterType.String,
help: 'Specifies the directory where the json files have to be generated.',
};
@Component({ name: 'options-component' })
export class OptComponent extends OptionsComponent {
public initialize() {
const generateToOption: DeclarationOption = {
name: "generate-json",
short: "gen-json",
type: ParameterType.String,
help: 'Specifies the directory where the json files have to be generated.',
};
@Component({ name: 'convert-component' })
export class ConvertComponent extends ConverterComponent {
...
}
export class A {
public b;
public c;
public d();
}
@Component({ name: 'convert-component' })
export class ConvertComponent extends ConverterComponent {
public initialize() {
this.listenTo(this.owner, {
[Converter.EVENT_RESOLVE]: this.resolve,
[Converter.EVENT_RESOLVE_BEGIN]: this.onResolveBegin,
[Converter.EVENT_RESOLVE_END]: this.onResolveEnd,
[Converter.EVENT_END]: this.onEnd,
/**
* Triggers per every reflection object.
* @param reflection
*/
private resolve(context, reflection) {
switch(reflection.kind) {
case ReflectionKind.Enum:
case ReflectionKind.Class:
case ReflectionKind.Interface:
/**
/**
* Triggers per every reflection object.
* @param reflection
*/
private resolve(context, reflection) {
switch(reflection.kind) {
...
case ReflectionKind.GetSignature:
case ReflectionKind.SetSignature:
const accessorName = reflection.parent.name;