Socket
Socket
Sign inDemoInstall

typedoc

Package Overview
Dependencies
Maintainers
2
Versions
309
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typedoc - npm Package Compare versions

Comparing version 0.5.7 to 0.5.8

12

dist/index.d.ts

@@ -1,6 +0,6 @@

export { Application } from "./lib/application";
export { CliApplication } from "./lib/cli";
export { EventDispatcher, Event } from "./lib/utils/events";
export { resetReflectionID } from "./lib/models/reflections/abstract";
export { normalizePath } from "./lib/utils/fs";
export { ProjectReflection } from "./lib/models/reflections/project";
export { Application } from './lib/application';
export { CliApplication } from './lib/cli';
export { EventDispatcher, Event } from './lib/utils/events';
export { resetReflectionID } from './lib/models/reflections/abstract';
export { normalizePath } from './lib/utils/fs';
export { ProjectReflection } from './lib/models/reflections/project';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var application_1 = require("./lib/application");

@@ -3,0 +4,0 @@ exports.Application = application_1.Application;

@@ -1,7 +0,7 @@

import { Converter } from "./converter/index";
import { Renderer } from "./output/renderer";
import { ProjectReflection } from "./models/index";
import { Logger, PluginHost } from "./utils/index";
import { AbstractComponent, ChildableComponent } from "./utils/component";
import { Options, IOptionsReadResult } from "./utils/options/index";
import { Converter } from './converter/index';
import { Renderer } from './output/renderer';
import { ProjectReflection } from './models/index';
import { Logger, PluginHost } from './utils/index';
import { AbstractComponent, ChildableComponent } from './utils/component';
import { Options, OptionsReadResult } from './utils/options/index';
export declare class Application extends ChildableComponent<Application, AbstractComponent<Application>> {

@@ -18,3 +18,3 @@ options: Options;

constructor(options?: Object);
protected bootstrap(options?: Object): IOptionsReadResult;
protected bootstrap(options?: Object): OptionsReadResult;
readonly application: Application;

@@ -21,0 +21,0 @@ readonly isCLI: boolean;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var Path = require("path");

@@ -40,6 +46,6 @@ var FS = require("fs");

var logger = this.loggerType;
if (typeof logger == 'function') {
if (typeof logger === 'function') {
this.logger = new index_3.CallbackLogger(logger);
}
else if (logger == 'none') {
else if (logger === 'none') {
this.logger = new index_3.Logger();

@@ -91,4 +97,5 @@ }

var project = input instanceof index_2.ProjectReflection ? input : this.convert(input);
if (!project)
if (!project) {
return false;
}
out = Path.resolve(out);

@@ -106,4 +113,5 @@ this.renderer.render(project, out);

var project = input instanceof index_2.ProjectReflection ? input : this.convert(input);
if (!project)
if (!project) {
return false;
}
out = Path.resolve(out);

@@ -154,3 +162,3 @@ index_3.writeFile(out, JSON.stringify(project.toObject(), null, '\t'), false);

}(component_1.ChildableComponent));
Application.VERSION = '{{ VERSION }}';
Application.VERSION = '0.5.8';
__decorate([

@@ -161,3 +169,3 @@ component_1.Option({

defaultValue: 'console',
type: declaration_1.ParameterType.Mixed,
type: declaration_1.ParameterType.Mixed
})

@@ -180,3 +188,3 @@ ], Application.prototype, "loggerType", void 0);

Application = Application_1 = __decorate([
component_1.Component({ name: "application", internal: true })
component_1.Component({ name: 'application', internal: true })
], Application);

@@ -183,0 +191,0 @@ exports.Application = Application;

@@ -1,3 +0,3 @@

import { Application } from "./application";
import { IOptionsReadResult } from "./utils/options/options";
import { Application } from './application';
import { OptionsReadResult } from './utils/options/options';
export declare const enum ExitCode {

@@ -15,4 +15,4 @@ OptionError = 1,

help: boolean;
protected bootstrap(options?: Object): IOptionsReadResult;
protected bootstrap(options?: Object): OptionsReadResult;
readonly isCLI: boolean;
}
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var typescript = require("typescript");

@@ -56,6 +62,8 @@ var application_1 = require("./application");

if (project) {
if (this.out)
if (this.out) {
this.generateDocs(project, this.out);
if (this.json)
}
if (this.json) {
this.generateJson(project, this.json);
}
if (this.logger.hasErrors()) {

@@ -62,0 +70,0 @@ process.exit(5);

@@ -1,7 +0,7 @@

import * as ts from "typescript";
import { Component, AbstractComponent } from "../utils/component";
import { Reflection } from "../models/reflections/abstract";
import { Type } from "../models/types/abstract";
import { Context } from "./context";
import { Converter } from "./converter";
import * as ts from 'typescript';
import { Component, AbstractComponent } from '../utils/component';
import { Reflection } from '../models/reflections/abstract';
import { Type } from '../models/types/abstract';
import { Context } from './context';
import { Converter } from './converter';
export { Component };

@@ -17,11 +17,11 @@ export declare abstract class ConverterComponent extends AbstractComponent<Converter> {

}
export interface ITypeConverter<T extends ts.Type, N extends ts.Node> extends ConverterTypeComponent, ITypeTypeConverter<T>, ITypeNodeConverter<T, N> {
export interface TypeConverter<T extends ts.Type, N extends ts.Node> extends ConverterTypeComponent, TypeTypeConverter<T>, TypeNodeConverter<T, N> {
}
export interface ITypeTypeConverter<T extends ts.Type> extends ConverterTypeComponent {
export interface TypeTypeConverter<T extends ts.Type> extends ConverterTypeComponent {
supportsType(context: Context, type: T): boolean;
convertType(context: Context, type: T): Type;
}
export interface ITypeNodeConverter<T extends ts.Type, N extends ts.Node> extends ConverterTypeComponent {
export interface TypeNodeConverter<T extends ts.Type, N extends ts.Node> extends ConverterTypeComponent {
supportsNode(context: Context, node: N, type: T): boolean;
convertNode(context: Context, node: N, type: T): Type;
}
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var component_1 = require("../utils/component");

@@ -8,0 +14,0 @@ exports.Component = component_1.Component;

@@ -1,5 +0,5 @@

import * as ts from "typescript";
import { Logger } from "../utils/loggers";
import { Reflection, ProjectReflection, Type } from "../models/index";
import { Converter } from "./converter";
import * as ts from 'typescript';
import { Logger } from '../utils/loggers';
import { Reflection, ProjectReflection, Type } from '../models/index';
import { Converter } from './converter';
export declare class Context {

@@ -6,0 +6,0 @@ converter: Converter;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var minimatch_1 = require("minimatch");

@@ -48,6 +49,8 @@ var index_1 = require("../models/index");

Context.prototype.getSymbolID = function (symbol) {
if (!symbol)
if (!symbol) {
return null;
if (!symbol.id)
}
if (!symbol.id) {
symbol.id = this.symbolID--;
}
return symbol.id;

@@ -66,5 +69,4 @@ };

Context.prototype.withSourceFile = function (node, callback) {
var options = this.converter.application.options;
var externalPattern = this.externalPattern;
var isExternal = this.fileNames.indexOf(node.fileName) == -1;
var isExternal = this.fileNames.indexOf(node.fileName) === -1;
if (externalPattern) {

@@ -79,3 +81,3 @@ isExternal = isExternal || externalPattern.match(node.fileName);

var lib = this.converter.getDefaultLib();
var isLib = node.fileName.substr(-lib.length) == lib;
var isLib = node.fileName.substr(-lib.length) === lib;
if (!this.converter.includeDeclarations || isLib) {

@@ -97,4 +99,5 @@ return;

}
if (!scope || !args.length)
if (!scope || !args.length) {
return;
}
var callback = args.pop();

@@ -128,3 +131,3 @@ var parameters = args.shift();

var id = this.getSymbolID(baseNode.symbol);
if (this.inheritedChildren && this.inheritedChildren.indexOf(id) != -1) {
if (this.inheritedChildren && this.inheritedChildren.indexOf(id) !== -1) {
return target;

@@ -164,4 +167,5 @@ }

for (var key in this.typeParameters) {
if (!this.typeParameters.hasOwnProperty(key))
if (!this.typeParameters.hasOwnProperty(key)) {
continue;
}
typeParameters[key] = this.typeParameters[key];

@@ -168,0 +172,0 @@ }

@@ -1,3 +0,3 @@

import * as ts from "typescript";
import * as ts from 'typescript';
export declare function convertDefaultValue(node: ts.VariableDeclaration | ts.ParameterDeclaration | ts.EnumMember): string;
export declare function convertExpression(expression: ts.Expression): string;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -3,0 +4,0 @@ var _ts = require("../ts-internal");

@@ -1,8 +0,8 @@

import * as ts from "typescript";
import { Application } from "../application";
import { Reflection, Type, ProjectReflection } from "../models/index";
import { Context } from "./context";
import { ConverterComponent } from "./components";
import { ChildableComponent, IComponentClass } from "../utils/component";
export interface IConverterResult {
import * as ts from 'typescript';
import { Application } from '../application';
import { Reflection, Type, ProjectReflection } from '../models/index';
import { Context } from './context';
import { ConverterComponent } from './components';
import { ChildableComponent, ComponentClass } from '../utils/component';
export interface ConverterResult {
errors: ts.Diagnostic[];

@@ -34,3 +34,3 @@ project: ProjectReflection;

initialize(): void;
addComponent(name: string, componentClass: IComponentClass<ConverterComponent>): ConverterComponent;
addComponent(name: string, componentClass: ComponentClass<ConverterComponent>): ConverterComponent;
private addNodeConverter(converter);

@@ -42,3 +42,3 @@ private addTypeConverter(converter);

removeAllComponents(): void;
convert(fileNames: string[]): IConverterResult;
convert(fileNames: string[]): ConverterResult;
convertNode(context: Context, node: ts.Node): Reflection;

@@ -45,0 +45,0 @@ convertType(context: Context, node?: ts.Node, type?: ts.Type): Type;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -51,7 +57,7 @@ var _ts = require("../ts-internal");

Converter.prototype.addTypeConverter = function (converter) {
if ("supportsNode" in converter && "convertNode" in converter) {
if ('supportsNode' in converter && 'convertNode' in converter) {
this.typeNodeConverters.push(converter);
this.typeNodeConverters.sort(function (a, b) { return (b.priority || 0) - (a.priority || 0); });
}
if ("supportsType" in converter && "convertType" in converter) {
if ('supportsType' in converter && 'convertType' in converter) {
this.typeTypeConverters.push(converter);

@@ -83,7 +89,7 @@ this.typeTypeConverters.sort(function (a, b) { return (b.priority || 0) - (a.priority || 0); });

var index = this.typeNodeConverters.indexOf(converter);
if (index != -1) {
if (index !== -1) {
this.typeTypeConverters.splice(index, 1);
}
index = this.typeNodeConverters.indexOf(converter);
if (index != -1) {
if (index !== -1) {
this.typeNodeConverters.splice(index, 1);

@@ -115,3 +121,3 @@ }

Converter.prototype.convertNode = function (context, node) {
if (context.visitStack.indexOf(node) != -1) {
if (context.visitStack.indexOf(node) !== -1) {
return null;

@@ -155,13 +161,17 @@ }

var diagnostics = program.getOptionsDiagnostics();
if (diagnostics.length)
if (diagnostics.length) {
return diagnostics;
}
diagnostics = program.getSyntacticDiagnostics();
if (diagnostics.length)
if (diagnostics.length) {
return diagnostics;
}
diagnostics = program.getGlobalDiagnostics();
if (diagnostics.length)
if (diagnostics.length) {
return diagnostics;
}
diagnostics = program.getSemanticDiagnostics();
if (diagnostics.length)
if (diagnostics.length) {
return diagnostics;
}
return [];

@@ -173,4 +183,5 @@ };

for (var id in project.reflections) {
if (!project.reflections.hasOwnProperty(id))
if (!project.reflections.hasOwnProperty(id)) {
continue;
}
this.trigger(Converter_1.EVENT_RESOLVE, context, project.reflections[id]);

@@ -199,4 +210,4 @@ }

component_1.Option({
name: "name",
help: "Set the name of the project that will be used in the header of the template."
name: 'name',
help: 'Set the name of the project that will be used in the header of the template.'
})

@@ -206,3 +217,3 @@ ], Converter.prototype, "name", void 0);

component_1.Option({
name: "externalPattern",
name: 'externalPattern',
help: 'Define a pattern for files that should be considered being external.'

@@ -213,3 +224,3 @@ })

component_1.Option({
name: "includeDeclarations",
name: 'includeDeclarations',
help: 'Turn on parsing of .d.ts declaration files.',

@@ -221,3 +232,3 @@ type: declaration_1.ParameterType.Boolean

component_1.Option({
name: "excludeExternals",
name: 'excludeExternals',
help: 'Prevent externally resolved TypeScript files from being documented.',

@@ -229,3 +240,3 @@ type: declaration_1.ParameterType.Boolean

component_1.Option({
name: "excludeNotExported",
name: 'excludeNotExported',
help: 'Prevent symbols that are not exported from being documented.',

@@ -237,3 +248,3 @@ type: declaration_1.ParameterType.Boolean

component_1.Option({
name: "excludePrivate",
name: 'excludePrivate',
help: 'Ignores private variables and methods',

@@ -244,3 +255,3 @@ type: declaration_1.ParameterType.Boolean

Converter = Converter_1 = __decorate([
component_1.Component({ name: "converter", internal: true, childClass: components_1.ConverterComponent })
component_1.Component({ name: 'converter', internal: true, childClass: components_1.ConverterComponent })
], Converter);

@@ -247,0 +258,0 @@ exports.Converter = Converter;

@@ -1,5 +0,5 @@

import * as ts from "typescript";
import { Comment } from "../../models/comments/index";
import * as ts from 'typescript';
import { Comment } from '../../models/comments/index';
export declare function createComment(node: ts.Node): Comment;
export declare function getRawComment(node: ts.Node): string;
export declare function parseComment(text: string, comment?: Comment): Comment;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -14,5 +15,5 @@ var _ts = require("../../ts-internal");

function isTopmostModuleDeclaration(node) {
if (node.nextContainer && node.nextContainer.kind == ts.SyntaxKind.ModuleDeclaration) {
if (node.nextContainer && node.nextContainer.kind === ts.SyntaxKind.ModuleDeclaration) {
var next = node.nextContainer;
if (node.name.end + 1 == next.name.pos) {
if (node.name.end + 1 === next.name.pos) {
return false;

@@ -24,5 +25,5 @@ }

function getRootModuleDeclaration(node) {
while (node.parent && node.parent.kind == ts.SyntaxKind.ModuleDeclaration) {
while (node.parent && node.parent.kind === ts.SyntaxKind.ModuleDeclaration) {
var parent_1 = node.parent;
if (node.name.pos == parent_1.name.end + 1) {
if (node.name.pos === parent_1.name.end + 1) {
node = parent_1;

@@ -51,6 +52,7 @@ }

if (comments && comments.length) {
var comment;
if (node.kind == ts.SyntaxKind.SourceFile) {
if (comments.length == 1)
var comment = void 0;
if (node.kind === ts.SyntaxKind.SourceFile) {
if (comments.length === 1) {
return null;
}
comment = comments[0];

@@ -81,13 +83,13 @@ }

}
else if (line == '' && shortText == 0) {
else if (line === '' && shortText === 0) {
}
else if (line == '' && shortText == 1) {
else if (line === '' && shortText === 1) {
shortText = 2;
}
else {
if (shortText == 2) {
comment.text += (comment.text == '' ? '' : '\n') + line;
if (shortText === 2) {
comment.text += (comment.text === '' ? '' : '\n') + line;
}
else {
comment.shortText += (comment.shortText == '' ? '' : '\n') + line;
comment.shortText += (comment.shortText === '' ? '' : '\n') + line;
shortText = 1;

@@ -99,10 +101,12 @@ }

var tagName = tag[1].toLowerCase();
var paramName;
line = line.substr(tagName.length + 1).trim();
if (tagName == 'return')
if (tagName === 'return') {
tagName = 'returns';
if (tagName == 'param' || tagName == 'typeparam') {
}
if (tagName === 'param' || tagName === 'typeparam') {
line = consumeTypeData(line);
var param = /[^\s]+/.exec(line);
if (param) {
var paramName = param[0];
paramName = param[0];
line = line.substr(paramName.length + 1).trim();

@@ -113,8 +117,9 @@ }

}
else if (tagName == 'returns') {
else if (tagName === 'returns') {
line = consumeTypeData(line);
}
currentTag = new index_1.CommentTag(tagName, paramName, line);
if (!comment.tags)
if (!comment.tags) {
comment.tags = [];
}
comment.tags.push(currentTag);

@@ -121,0 +126,0 @@ }

@@ -1,4 +0,4 @@

import * as ts from "typescript";
import { ReflectionKind, DeclarationReflection } from "../../models/index";
import { Context } from "../context";
import * as ts from 'typescript';
import { ReflectionKind, DeclarationReflection } from '../../models/index';
import { Context } from '../context';
export declare function createDeclaration(context: Context, node: ts.Node, kind: ReflectionKind, name?: string): DeclarationReflection;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -35,6 +36,6 @@ var index_1 = require("../../models/index");

}
if (kind == index_1.ReflectionKind.ExternalModule) {
if (kind === index_1.ReflectionKind.ExternalModule) {
isExported = true;
}
else if (node.parent && node.parent.kind == ts.SyntaxKind.VariableDeclarationList) {
else if (node.parent && node.parent.kind === ts.SyntaxKind.VariableDeclarationList) {
var parentModifiers = ts.getCombinedModifierFlags(node.parent.parent);

@@ -55,9 +56,9 @@ isExported = isExported || !!(parentModifiers & ts.ModifierFlags.Export);

var isStatic = false;
if (nonStaticKinds.indexOf(kind) == -1) {
if (nonStaticKinds.indexOf(kind) === -1) {
isStatic = !!(modifiers & ts.ModifierFlags.Static);
if (container.kind == index_1.ReflectionKind.Class) {
if (node.parent && node.parent.kind == ts.SyntaxKind.Constructor) {
if (container.kind === index_1.ReflectionKind.Class) {
if (node.parent && node.parent.kind === ts.SyntaxKind.Constructor) {
isConstructorProperty = true;
}
else if (!node.parent || node.parent.kind != ts.SyntaxKind.ClassDeclaration) {
else if (!node.parent || node.parent.kind !== ts.SyntaxKind.ClassDeclaration) {
isStatic = true;

@@ -70,4 +71,5 @@ }

children.forEach(function (n) {
if (n.name == name && n.flags.isStatic == isStatic)
if (n.name === name && n.flags.isStatic === isStatic) {
child = n;
}
});

@@ -102,3 +104,3 @@ if (!child) {

if (context.isInherit &&
(node.parent == context.inheritParent || reflection.flags.isConstructorProperty)) {
(node.parent === context.inheritParent || reflection.flags.isConstructorProperty)) {
if (!reflection.inheritedFrom) {

@@ -114,3 +116,3 @@ reflection.inheritedFrom = reference_1.createReferenceType(context, node.symbol, true);

function mergeDeclarations(context, reflection, node, kind) {
if (reflection.kind != kind) {
if (reflection.kind !== kind) {
var weights = [index_1.ReflectionKind.Module, index_1.ReflectionKind.Enum, index_1.ReflectionKind.Class];

@@ -124,4 +126,4 @@ var kindWeight = weights.indexOf(kind);

if (context.isInherit &&
context.inherited.indexOf(reflection.name) != -1 &&
(node.parent == context.inheritParent || reflection.flags.isConstructorProperty)) {
context.inherited.indexOf(reflection.name) !== -1 &&
(node.parent === context.inheritParent || reflection.flags.isConstructorProperty)) {
if (!reflection.overwrites) {

@@ -128,0 +130,0 @@ reflection.overwrites = reference_1.createReferenceType(context, node.symbol, true);

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var comment_1 = require("./comment");

@@ -3,0 +4,0 @@ exports.createComment = comment_1.createComment;

@@ -1,4 +0,4 @@

import * as ts from "typescript";
import { ParameterReflection } from "../../models/reflections/index";
import { Context } from "../context";
import * as ts from 'typescript';
import { ParameterReflection } from '../../models/reflections/index';
import { Context } from '../context';
export declare function createParameter(context: Context, node: ts.ParameterDeclaration): ParameterReflection;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var _ts = require("../../ts-internal");

@@ -25,4 +26,5 @@ var index_1 = require("../../models/reflections/index");

parameter.setFlag(index_1.ReflectionFlag.DefaultValue, !!parameter.defaultValue);
if (!signature.parameters)
if (!signature.parameters) {
signature.parameters = [];
}
signature.parameters.push(parameter);

@@ -29,0 +31,0 @@ });

@@ -1,4 +0,4 @@

import * as ts from "typescript";
import { ReferenceType } from "../../models/types/index";
import { Context } from "../context";
import * as ts from 'typescript';
import { ReferenceType } from '../../models/types/index';
import { Context } from '../context';
export declare function createReferenceType(context: Context, symbol: ts.Symbol, includeParent?: boolean): ReferenceType;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var index_1 = require("../../models/types/index");

@@ -3,0 +4,0 @@ function createReferenceType(context, symbol, includeParent) {

@@ -1,4 +0,4 @@

import * as ts from "typescript";
import { ReflectionKind, SignatureReflection } from "../../models/index";
import { Context } from "../context";
import * as ts from 'typescript';
import { ReflectionKind, SignatureReflection } from '../../models/index';
import { Context } from '../context';
export declare function createSignature(context: Context, node: ts.SignatureDeclaration, name: string, kind: ReflectionKind): SignatureReflection;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -3,0 +4,0 @@ var index_1 = require("../../models/index");

@@ -1,4 +0,4 @@

import * as ts from "typescript";
import { TypeParameterType } from "../../models/index";
import { Context } from "../context";
import * as ts from 'typescript';
import { TypeParameterType } from '../../models/index';
import { Context } from '../context';
export declare function createTypeParameter(context: Context, node: ts.TypeParameterDeclaration): TypeParameterType;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var index_1 = require("../../models/index");

@@ -12,4 +13,5 @@ var converter_1 = require("../converter");

var typeParameterReflection = new index_1.TypeParameterReflection(reflection, typeParameter);
if (!reflection.typeParameters)
if (!reflection.typeParameters) {
reflection.typeParameters = [];
}
reflection.typeParameters.push(typeParameterReflection);

@@ -16,0 +18,0 @@ context.registerReflection(typeParameterReflection, node);

@@ -1,3 +0,3 @@

export { Context } from "./context";
export { Converter } from "./converter";
export { Context } from './context';
export { Converter } from './converter';
export { convertDefaultValue, convertExpression } from './convert-expression';

@@ -4,0 +4,0 @@ import './nodes/index';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var context_1 = require("./context");

@@ -3,0 +4,0 @@ exports.Context = context_1.Context;

@@ -1,5 +0,5 @@

import * as ts from "typescript";
import { Reflection } from "../../models/index";
import { Context } from "../context";
import { ConverterNodeComponent } from "../components";
import * as ts from 'typescript';
import { Reflection } from '../../models/index';
import { Context } from '../context';
import { ConverterNodeComponent } from '../components';
export declare class AccessorConverter extends ConverterNodeComponent<ts.SignatureDeclaration> {

@@ -6,0 +6,0 @@ supports: ts.SyntaxKind[];

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -31,3 +37,3 @@ var index_1 = require("../../models/index");

context.withScope(accessor, function () {
if (node.kind == ts.SyntaxKind.GetAccessor) {
if (node.kind === ts.SyntaxKind.GetAccessor) {
accessor.getSignature = index_2.createSignature(context, node, '__get', index_1.ReflectionKind.GetSignature);

@@ -34,0 +40,0 @@ }

@@ -1,5 +0,5 @@

import * as ts from "typescript";
import { Reflection } from "../../models/index";
import { Context } from "../context";
import { ConverterNodeComponent } from "../components";
import * as ts from 'typescript';
import { Reflection } from '../../models/index';
import { Context } from '../context';
import { ConverterNodeComponent } from '../components';
export declare class AliasConverter extends ConverterNodeComponent<ts.TypeAliasDeclaration> {

@@ -6,0 +6,0 @@ supports: ts.SyntaxKind[];

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -15,0 +21,0 @@ var index_1 = require("../../models/index");

@@ -1,5 +0,5 @@

import * as ts from "typescript";
import { Reflection } from "../../models/index";
import { Context } from "../context";
import { ConverterNodeComponent } from "../components";
import * as ts from 'typescript';
import { Reflection } from '../../models/index';
import { Context } from '../context';
import { ConverterNodeComponent } from '../components';
export declare enum SourceFileMode {

@@ -6,0 +6,0 @@ File = 0,

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -42,3 +48,3 @@ var index_1 = require("../../models/index");

BlockConverter.prototype.convert = function (context, node) {
if (node.kind == ts.SyntaxKind.SourceFile) {
if (node.kind === ts.SyntaxKind.SourceFile) {
this.convertSourceFile(context, node);

@@ -55,3 +61,3 @@ }

context.withSourceFile(node, function () {
if (_this.mode == SourceFileMode.Modules) {
if (_this.mode === SourceFileMode.Modules) {
result = index_2.createDeclaration(context, node, index_1.ReflectionKind.ExternalModule, node.fileName);

@@ -72,12 +78,12 @@ context.withScope(result, function () {

if (node.statements) {
var statements = [];
var statements_1 = [];
node.statements.forEach(function (statement) {
if (prefered.indexOf(statement.kind) != -1) {
if (prefered.indexOf(statement.kind) !== -1) {
_this.owner.convertNode(context, statement);
}
else {
statements.push(statement);
statements_1.push(statement);
}
});
statements.forEach(function (statement) {
statements_1.forEach(function (statement) {
_this.owner.convertNode(context, statement);

@@ -91,3 +97,3 @@ });

component_1.Option({
name: "mode",
name: 'mode',
help: "Specifies the output mode the project is used to be compiled with: 'file' or 'modules'",

@@ -94,0 +100,0 @@ type: declaration_1.ParameterType.Map,

@@ -1,5 +0,5 @@

import * as ts from "typescript";
import { Reflection } from "../../models/index";
import { Context } from "../context";
import { ConverterNodeComponent } from "../components";
import * as ts from 'typescript';
import { Reflection } from '../../models/index';
import { Context } from '../context';
import { ConverterNodeComponent } from '../components';
export declare class ClassConverter extends ConverterNodeComponent<ts.ClassDeclaration> {

@@ -6,0 +6,0 @@ supports: ts.SyntaxKind[];

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -32,3 +38,3 @@ var _ts = require("../../ts-internal");

var reflection;
if (context.isInherit && context.inheritParent == node) {
if (context.isInherit && context.inheritParent === node) {
reflection = context.scope;

@@ -54,4 +60,5 @@ }

if (!context.isInherit) {
if (!reflection.extendedTypes)
if (!reflection.extendedTypes) {
reflection.extendedTypes = [];
}
reflection.extendedTypes.push(_this.owner.convertType(context, baseType, type));

@@ -58,0 +65,0 @@ }

@@ -1,5 +0,5 @@

import * as ts from "typescript";
import { Reflection } from "../../models/index";
import { Context } from "../context";
import { ConverterNodeComponent } from "../components";
import * as ts from 'typescript';
import { Reflection } from '../../models/index';
import { Context } from '../context';
import { ConverterNodeComponent } from '../components';
export declare class ConstructorConverter extends ConverterNodeComponent<ts.ConstructorDeclaration> {

@@ -6,0 +6,0 @@ supports: ts.SyntaxKind[];

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -42,5 +48,7 @@ var index_1 = require("../../models/index");

if (!hasBody || !method.signatures) {
var name = 'new ' + parent.name;
var signature = index_2.createSignature(context, node, name, index_1.ReflectionKind.ConstructorSignature);
signature.type = new index_1.ReferenceType(parent.name, index_1.ReferenceType.SYMBOL_ID_RESOLVED, parent);
var name_1 = 'new ' + parent.name;
var signature = index_2.createSignature(context, node, name_1, index_1.ReflectionKind.ConstructorSignature);
if (!node.type) {
signature.type = new index_1.ReferenceType(parent.name, index_1.ReferenceType.SYMBOL_ID_RESOLVED, parent);
}
method.signatures = method.signatures || [];

@@ -58,10 +66,13 @@ method.signatures.push(signature);

var visibility = modifiers & (ts.ModifierFlags.Public | ts.ModifierFlags.Protected | ts.ModifierFlags.Private);
if (!visibility)
if (!visibility) {
return;
}
var privateParameter = modifiers & ts.ModifierFlags.Private;
if (privateParameter && context.converter.excludePrivate)
if (privateParameter && context.converter.excludePrivate) {
return;
}
var property = index_2.createDeclaration(context, parameter, index_1.ReflectionKind.Property);
if (!property)
if (!property) {
return;
}
property.setFlag(index_1.ReflectionFlag.Static, false);

@@ -68,0 +79,0 @@ property.type = this.owner.convertType(context, parameter.type, context.getTypeAtLocation(parameter));

@@ -1,5 +0,5 @@

import * as ts from "typescript";
import { Reflection } from "../../models/index";
import { Context } from "../context";
import { ConverterNodeComponent } from "../components";
import * as ts from 'typescript';
import { Reflection } from '../../models/index';
import { Context } from '../context';
import { ConverterNodeComponent } from '../components';
export declare class EnumConverter extends ConverterNodeComponent<ts.EnumDeclaration> {

@@ -6,0 +6,0 @@ supports: ts.SyntaxKind[];

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -15,0 +21,0 @@ var index_1 = require("../../models/index");

@@ -1,5 +0,5 @@

import * as ts from "typescript";
import { Reflection } from "../../models/index";
import { Context } from "../context";
import { ConverterNodeComponent } from "../components";
import * as ts from 'typescript';
import { Reflection } from '../../models/index';
import { Context } from '../context';
import { ConverterNodeComponent } from '../components';
export declare class ExportConverter extends ConverterNodeComponent<ts.ExportAssignment> {

@@ -6,0 +6,0 @@ supports: ts.SyntaxKind[];

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -36,10 +42,12 @@ var index_1 = require("../../models/index");

if (symbol) {
var project = context.project;
var project_1 = context.project;
symbol.declarations.forEach(function (declaration) {
if (!declaration.symbol)
if (!declaration.symbol) {
return;
var id = project.symbolMapping[context.getSymbolID(declaration.symbol)];
if (!id)
}
var id = project_1.symbolMapping[context.getSymbolID(declaration.symbol)];
if (!id) {
return;
var reflection = project.reflections[id];
}
var reflection = project_1.reflections[id];
if (node.isExportEquals && reflection instanceof index_1.DeclarationReflection) {

@@ -46,0 +54,0 @@ reflection.setFlag(index_1.ReflectionFlag.ExportAssignment, true);

@@ -1,5 +0,5 @@

import * as ts from "typescript";
import { Reflection } from "../../models/index";
import { Context } from "../context";
import { ConverterNodeComponent } from "../components";
import * as ts from 'typescript';
import { Reflection } from '../../models/index';
import { Context } from '../context';
import { ConverterNodeComponent } from '../components';
export declare class FunctionConverter extends ConverterNodeComponent<ts.FunctionDeclaration | ts.MethodDeclaration> {

@@ -6,0 +6,0 @@ supports: ts.SyntaxKind[];

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -38,4 +44,5 @@ var index_1 = require("../../models/index");

var signature = index_2.createSignature(context, node, method.name, index_1.ReflectionKind.CallSignature);
if (!method.signatures)
if (!method.signatures) {
method.signatures = [];
}
method.signatures.push(signature);

@@ -42,0 +49,0 @@ }

@@ -1,16 +0,16 @@

export { AccessorConverter } from "./accessor";
export { AliasConverter } from "./alias";
export { BlockConverter } from "./block";
export { ClassConverter } from "./class";
export { ConstructorConverter } from "./constructor";
export { EnumConverter } from "./enum";
export { ExportConverter } from "./export";
export { FunctionConverter } from "./function";
export { InterfaceConverter } from "./interface";
export { TypeLiteralConverter } from "./literal-type";
export { ObjectLiteralConverter } from "./literal-object";
export { ModuleConverter } from "./module";
export { SignatureConverter } from "./signature-call";
export { IndexSignatureConverter } from "./signature-index";
export { VariableStatementConverter } from "./variable-statement";
export { VariableConverter } from "./variable";
export { AccessorConverter } from './accessor';
export { AliasConverter } from './alias';
export { BlockConverter } from './block';
export { ClassConverter } from './class';
export { ConstructorConverter } from './constructor';
export { EnumConverter } from './enum';
export { ExportConverter } from './export';
export { FunctionConverter } from './function';
export { InterfaceConverter } from './interface';
export { TypeLiteralConverter } from './literal-type';
export { ObjectLiteralConverter } from './literal-object';
export { ModuleConverter } from './module';
export { SignatureConverter } from './signature-call';
export { IndexSignatureConverter } from './signature-index';
export { VariableStatementConverter } from './variable-statement';
export { VariableConverter } from './variable';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var accessor_1 = require("./accessor");

@@ -3,0 +4,0 @@ exports.AccessorConverter = accessor_1.AccessorConverter;

@@ -1,5 +0,5 @@

import * as ts from "typescript";
import { Reflection } from "../../models/index";
import { Context } from "../context";
import { ConverterNodeComponent } from "../components";
import * as ts from 'typescript';
import { Reflection } from '../../models/index';
import { Context } from '../context';
import { ConverterNodeComponent } from '../components';
export declare class InterfaceConverter extends ConverterNodeComponent<ts.InterfaceDeclaration> {

@@ -6,0 +6,0 @@ supports: ts.SyntaxKind[];

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -31,3 +37,3 @@ var _ts = require("../../ts-internal");

var reflection;
if (context.isInherit && context.inheritParent == node) {
if (context.isInherit && context.inheritParent === node) {
reflection = context.scope;

@@ -49,4 +55,5 @@ }

if (!context.isInherit) {
if (!reflection.extendedTypes)
if (!reflection.extendedTypes) {
reflection.extendedTypes = [];
}
reflection.extendedTypes.push(_this.owner.convertType(context, baseType, type));

@@ -53,0 +60,0 @@ }

@@ -1,5 +0,5 @@

import * as ts from "typescript";
import { Reflection } from "../../models/index";
import { Context } from "../context";
import { ConverterNodeComponent } from "../components";
import * as ts from 'typescript';
import { Reflection } from '../../models/index';
import { Context } from '../context';
import { ConverterNodeComponent } from '../components';
export declare class ObjectLiteralConverter extends ConverterNodeComponent<ts.ObjectLiteralExpression> {

@@ -6,0 +6,0 @@ supports: ts.SyntaxKind[];

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -15,0 +21,0 @@ var components_1 = require("../components");

@@ -1,5 +0,5 @@

import * as ts from "typescript";
import { Reflection } from "../../models/index";
import { Context } from "../context";
import { ConverterNodeComponent } from "../components";
import * as ts from 'typescript';
import { Reflection } from '../../models/index';
import { Context } from '../context';
import { ConverterNodeComponent } from '../components';
export declare class TypeLiteralConverter extends ConverterNodeComponent<ts.TypeLiteralNode> {

@@ -6,0 +6,0 @@ supports: ts.SyntaxKind[];

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -15,0 +21,0 @@ var components_1 = require("../components");

@@ -1,5 +0,5 @@

import * as ts from "typescript";
import { Reflection } from "../../models/index";
import { Context } from "../context";
import { ConverterNodeComponent } from "../components";
import * as ts from 'typescript';
import { Reflection } from '../../models/index';
import { Context } from '../context';
import { ConverterNodeComponent } from '../components';
export declare class ModuleConverter extends ConverterNodeComponent<ts.ModuleDeclaration> {

@@ -6,0 +6,0 @@ supports: ts.SyntaxKind[];

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -32,3 +38,2 @@ var index_1 = require("../../models/index");

context.withScope(reflection, function () {
var opt = context.getCompilerOptions();
if (parent instanceof index_1.ProjectReflection && !context.isDeclaration &&

@@ -35,0 +40,0 @@ (!module || module.valueOf() === ts.ModuleKind.None.valueOf())) {

@@ -1,5 +0,5 @@

import * as ts from "typescript";
import { Reflection } from "../../models/index";
import { Context } from "../context";
import { ConverterNodeComponent } from "../components";
import * as ts from 'typescript';
import { Reflection } from '../../models/index';
import { Context } from '../context';
import { ConverterNodeComponent } from '../components';
export declare class SignatureConverter extends ConverterNodeComponent<ts.FunctionExpression | ts.SignatureDeclaration | ts.FunctionExpression> {

@@ -6,0 +6,0 @@ supports: ts.SyntaxKind[];

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -33,6 +39,7 @@ var index_1 = require("../../models/index");

if (scope instanceof index_1.DeclarationReflection) {
var name = scope.kindOf(index_1.ReflectionKind.FunctionOrMethod) ? scope.name : '__call';
var signature = index_2.createSignature(context, node, name, index_1.ReflectionKind.CallSignature);
if (!scope.signatures)
var name_1 = scope.kindOf(index_1.ReflectionKind.FunctionOrMethod) ? scope.name : '__call';
var signature = index_2.createSignature(context, node, name_1, index_1.ReflectionKind.CallSignature);
if (!scope.signatures) {
scope.signatures = [];
}
scope.signatures.push(signature);

@@ -39,0 +46,0 @@ }

@@ -1,5 +0,5 @@

import * as ts from "typescript";
import { Reflection } from "../../models/index";
import { Context } from "../context";
import { ConverterNodeComponent } from "../components";
import * as ts from 'typescript';
import { Reflection } from '../../models/index';
import { Context } from '../context';
import { ConverterNodeComponent } from '../components';
export declare class IndexSignatureConverter extends ConverterNodeComponent<ts.SignatureDeclaration> {

@@ -6,0 +6,0 @@ supports: ts.SyntaxKind[];

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -15,0 +21,0 @@ var index_1 = require("../../models/index");

@@ -1,5 +0,5 @@

import * as ts from "typescript";
import { Reflection } from "../../models/index";
import { Context } from "../context";
import { ConverterNodeComponent } from "../components";
import * as ts from 'typescript';
import { Reflection } from '../../models/index';
import { Context } from '../context';
import { ConverterNodeComponent } from '../components';
export declare class VariableStatementConverter extends ConverterNodeComponent<ts.VariableStatement> {

@@ -6,0 +6,0 @@ supports: ts.SyntaxKind[];

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -15,0 +21,0 @@ var _ts = require("../../ts-internal");

@@ -1,5 +0,5 @@

import * as ts from "typescript";
import { Reflection } from "../../models/index";
import { Context } from "../context";
import { ConverterNodeComponent } from "../components";
import * as ts from 'typescript';
import { Reflection } from '../../models/index';
import { Context } from '../context';
import { ConverterNodeComponent } from '../components';
export declare class VariableConverter extends ConverterNodeComponent<ts.VariableDeclaration> {

@@ -6,0 +6,0 @@ supports: ts.SyntaxKind[];

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -35,5 +41,6 @@ var _ts = require("../../ts-internal");

VariableConverter.prototype.isSimpleObjectLiteral = function (objectLiteral) {
if (!objectLiteral.properties)
if (!objectLiteral.properties) {
return true;
return objectLiteral.properties.length == 0;
}
return objectLiteral.properties.length === 0;
};

@@ -43,3 +50,3 @@ VariableConverter.prototype.convert = function (context, node) {

var comment = index_2.createComment(node);
if (comment && comment.hasTag("resolve")) {
if (comment && comment.hasTag('resolve')) {
var resolveType = context.getTypeAtLocation(node);

@@ -86,3 +93,3 @@ if (resolveType && resolveType.symbol) {

}
if (variable.kind == kind || variable.kind == index_1.ReflectionKind.Event) {
if (variable.kind === kind || variable.kind === index_1.ReflectionKind.Event) {
if (isBindingPattern) {

@@ -89,0 +96,0 @@ variable.type = _this.owner.convertType(context, node.name);

@@ -1,4 +0,4 @@

import { Comment } from "../../models/comments/index";
import { Reflection, ProjectReflection } from "../../models/reflections/index";
import { ConverterComponent } from "../components";
import { Comment } from '../../models/comments/index';
import { Reflection, ProjectReflection } from '../../models/reflections/index';
import { ConverterComponent } from '../components';
export declare class CommentPlugin extends ConverterComponent {

@@ -5,0 +5,0 @@ private comments;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var index_1 = require("../../models/comments/index");

@@ -38,3 +44,3 @@ var index_2 = require("../../models/types/index");

CommentPlugin.prototype.storeModuleComment = function (comment, reflection) {
var isPreferred = (comment.toLowerCase().indexOf('@preferred') != -1);
var isPreferred = (comment.toLowerCase().indexOf('@preferred') !== -1);
if (this.comments[reflection.id]) {

@@ -74,4 +80,5 @@ var info = this.comments[reflection.id];

if (comment.hasTag('hidden')) {
if (!this.hidden)
if (!this.hidden) {
this.hidden = [];
}
this.hidden.push(reflection);

@@ -87,6 +94,8 @@ }

var tag = comment.getTag('typeparam', reflection.name);
if (!tag)
tag = comment.getTag('param', '<' + reflection.name + '>');
if (!tag)
if (!tag) {
tag = comment.getTag('param', "<" + reflection.name + ">");
}
if (!tag) {
tag = comment.getTag('param', reflection.name);
}
if (tag) {

@@ -99,7 +108,9 @@ reflection.comment = new index_1.Comment(tag.text);

CommentPlugin.prototype.onDeclaration = function (context, reflection, node) {
if (!node)
if (!node) {
return;
}
var rawComment = comment_1.getRawComment(node);
if (!rawComment)
if (!rawComment) {
return;
}
if (reflection.kindOf(index_3.ReflectionKind.FunctionOrMethod) || (reflection.kindOf(index_3.ReflectionKind.Event) && reflection['signatures'])) {

@@ -119,4 +130,5 @@ var comment = comment_1.parseComment(rawComment, reflection.comment);

CommentPlugin.prototype.onFunctionImplementation = function (context, reflection, node) {
if (!node)
if (!node) {
return;
}
var comment = comment_1.getRawComment(node);

@@ -129,4 +141,5 @@ if (comment) {

for (var id in this.comments) {
if (!this.comments.hasOwnProperty(id))
if (!this.comments.hasOwnProperty(id)) {
continue;
}
var info = this.comments[id];

@@ -139,5 +152,5 @@ var comment = comment_1.parseComment(info.fullText);

if (this.hidden) {
var project = context.project;
var project_1 = context.project;
this.hidden.forEach(function (reflection) {
CommentPlugin_1.removeReflection(project, reflection);
CommentPlugin_1.removeReflection(project_1, reflection);
});

@@ -147,10 +160,11 @@ }

CommentPlugin.prototype.onResolve = function (context, reflection) {
if (!(reflection instanceof index_3.DeclarationReflection))
if (!(reflection instanceof index_3.DeclarationReflection)) {
return;
}
var signatures = reflection.getAllSignatures();
if (signatures.length) {
var comment = reflection.comment;
if (comment && comment.hasTag('returns')) {
comment.returns = comment.getTag('returns').text;
CommentPlugin_1.removeTags(comment, 'returns');
var comment_2 = reflection.comment;
if (comment_2 && comment_2.hasTag('returns')) {
comment_2.returns = comment_2.getTag('returns').text;
CommentPlugin_1.removeTags(comment_2, 'returns');
}

@@ -163,9 +177,9 @@ signatures.forEach(function (signature) {

}
if (comment) {
if (comment_2) {
if (!childComment) {
childComment = signature.comment = new index_1.Comment();
}
childComment.shortText = childComment.shortText || comment.shortText;
childComment.text = childComment.text || comment.text;
childComment.returns = childComment.returns || comment.returns;
childComment.shortText = childComment.shortText || comment_2.shortText;
childComment.text = childComment.text || comment_2.text;
childComment.returns = childComment.returns || comment_2.returns;
}

@@ -175,6 +189,8 @@ if (signature.parameters) {

var tag;
if (childComment)
if (childComment) {
tag = childComment.getTag('param', parameter.name);
if (comment && !tag)
tag = comment.getTag('param', parameter.name);
}
if (comment_2 && !tag) {
tag = comment_2.getTag('param', parameter.name);
}
if (tag) {

@@ -187,11 +203,12 @@ parameter.comment = new index_1.Comment(tag.text);

});
CommentPlugin_1.removeTags(comment, 'param');
CommentPlugin_1.removeTags(comment_2, 'param');
}
};
CommentPlugin.removeTags = function (comment, tagName) {
if (!comment || !comment.tags)
if (!comment || !comment.tags) {
return;
}
var i = 0, c = comment.tags.length;
while (i < c) {
if (comment.tags[i].tagName == tagName) {
if (comment.tags[i].tagName === tagName) {
comment.tags.splice(i, 1);

@@ -209,3 +226,3 @@ c--;

parent.traverse(function (child, property) {
if (child == reflection) {
if (child === reflection) {
switch (property) {

@@ -215,4 +232,5 @@ case index_3.TraverseProperty.Children:

var index = parent.children.indexOf(reflection);
if (index != -1)
if (index !== -1) {
parent.children.splice(index, 1);
}
}

@@ -229,4 +247,5 @@ break;

var index = reflection.parent.parameters.indexOf(reflection);
if (index != -1)
if (index !== -1) {
reflection.parent.parameters.splice(index, 1);
}
}

@@ -240,4 +259,5 @@ break;

var index = parent.signatures.indexOf(reflection);
if (index != -1)
if (index !== -1) {
parent.signatures.splice(index, 1);
}
}

@@ -251,4 +271,5 @@ break;

var index = parent.typeParameters.indexOf(reflection);
if (index != -1)
if (index !== -1) {
parent.typeParameters.splice(index, 1);
}
}

@@ -262,3 +283,3 @@ break;

for (var key in project.symbolMapping) {
if (project.symbolMapping.hasOwnProperty(key) && project.symbolMapping[key] == id) {
if (project.symbolMapping.hasOwnProperty(key) && project.symbolMapping[key] === id) {
delete project.symbolMapping[key];

@@ -265,0 +286,0 @@ }

@@ -1,2 +0,2 @@

import { ConverterComponent } from "../components";
import { ConverterComponent } from '../components';
export declare class DecoratorPlugin extends ConverterComponent {

@@ -3,0 +3,0 @@ private usages;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -41,4 +47,5 @@ var _ts = require("../../ts-internal");

else {
if (!result['...'])
if (!result['...']) {
result['...'] = [];
}
result['...'].push(_ts.getTextOfNode(arg));

@@ -54,4 +61,5 @@ }

var _this = this;
if (!node || !node.decorators)
if (!node || !node.decorators) {
return;
}
node.decorators.forEach(function (decorator) {

@@ -84,8 +92,10 @@ var callExpression;

}
if (!_this.usages[symbolID])
if (!_this.usages[symbolID]) {
_this.usages[symbolID] = [];
}
_this.usages[symbolID].push(new index_1.ReferenceType(reflection.name, index_1.ReferenceType.SYMBOL_ID_RESOLVED, reflection));
}
if (!reflection.decorators)
if (!reflection.decorators) {
reflection.decorators = [];
}
reflection.decorators.push(info);

@@ -96,7 +106,9 @@ });

for (var symbolID in this.usages) {
if (!this.usages.hasOwnProperty(symbolID))
if (!this.usages.hasOwnProperty(symbolID)) {
continue;
}
var id = context.project.symbolMapping[symbolID];
if (!id)
if (!id) {
continue;
}
var reflection = context.project.reflections[id];

@@ -103,0 +115,0 @@ if (reflection) {

@@ -1,2 +0,2 @@

import { ConverterComponent } from "../components";
import { ConverterComponent } from '../components';
export declare class DeepCommentPlugin extends ConverterComponent {

@@ -3,0 +3,0 @@ initialize(): void;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var index_1 = require("../../models/reflections/index");

@@ -37,7 +43,7 @@ var index_2 = require("../../models/comments/index");

var part = parent.originalName;
if (!part || part.substr(0, 2) == '__' || parent instanceof index_1.SignatureReflection) {
if (!part || part.substr(0, 2) === '__' || parent instanceof index_1.SignatureReflection) {
part = '';
}
if (part && part != '') {
name = (name == '' ? part : part + '.' + name);
if (part && part !== '') {
name = (name === '' ? part : part + '.' + name);
}

@@ -52,10 +58,12 @@ }

if (target.comment) {
var tag;
var tag = void 0;
if (reflection instanceof index_1.TypeParameterReflection) {
tag = target.comment.getTag('typeparam', reflection.name);
if (!tag)
if (!tag) {
tag = target.comment.getTag('param', '<' + reflection.name + '>');
}
}
if (!tag)
if (!tag) {
tag = target.comment.getTag('param', name);
}
if (tag) {

@@ -62,0 +70,0 @@ target.comment.tags.splice(target.comment.tags.indexOf(tag), 1);

@@ -1,2 +0,2 @@

import { ConverterComponent } from "../components";
import { ConverterComponent } from '../components';
export declare class DynamicModulePlugin extends ConverterComponent {

@@ -3,0 +3,0 @@ private basePath;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var Path = require("path");

@@ -40,9 +46,9 @@ var abstract_1 = require("../../models/reflections/abstract");

if (reflection.kindOf(abstract_1.ReflectionKind.ExternalModule)) {
var name = reflection.name;
if (name.indexOf('/') == -1) {
var name_1 = reflection.name;
if (name_1.indexOf('/') === -1) {
return;
}
name = name.replace(/"/g, '');
name_1 = name_1.replace(/"/g, '');
this.reflections.push(reflection);
this.basePath.add(name);
this.basePath.add(name_1);
}

@@ -49,0 +55,0 @@ };

@@ -1,3 +0,3 @@

import { ConverterComponent } from "../components";
declare module "shelljs" {
import { ConverterComponent } from '../components';
declare module 'shelljs' {
interface ExecOutputReturnValue {

@@ -4,0 +4,0 @@ stdout: string;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var ShellJS = require("shelljs");

@@ -27,4 +33,4 @@ var Path = require("path");

var out = ShellJS.exec('git ls-remote --get-url', { silent: true });
if (out.code == 0) {
var url;
if (out.code === 0) {
var url = void 0;
var remotes = out.stdout.split('\n');

@@ -36,3 +42,3 @@ for (var i = 0, c = remotes.length; i < c; i++) {

this.gitHubProject = url[2];
if (this.gitHubProject.substr(-4) == '.git') {
if (this.gitHubProject.substr(-4) === '.git') {
this.gitHubProject = this.gitHubProject.substr(0, this.gitHubProject.length - 4);

@@ -45,5 +51,5 @@ }

out = ShellJS.exec('git ls-files', { silent: true });
if (out.code == 0) {
if (out.code === 0) {
out.stdout.split('\n').forEach(function (file) {
if (file != '') {
if (file !== '') {
_this.files.push(base_path_1.BasePath.normalize(path + '/' + file));

@@ -54,3 +60,3 @@ }

out = ShellJS.exec('git rev-parse --short HEAD', { silent: true });
if (out.code == 0) {
if (out.code === 0) {
this.branch = out.stdout.replace('\n', '');

@@ -61,3 +67,3 @@ }

Repository.prototype.contains = function (fileName) {
return this.files.indexOf(fileName) != -1;
return this.files.indexOf(fileName) !== -1;
};

@@ -81,5 +87,6 @@ Repository.prototype.getGitHubURL = function (fileName) {

ShellJS.popd();
if (out.code != 0)
if (out.code !== 0) {
return null;
return new Repository(base_path_1.BasePath.normalize(out.stdout.replace("\n", '')));
}
return new Repository(base_path_1.BasePath.normalize(out.stdout.replace('\n', '')));
};

@@ -105,3 +112,3 @@ return Repository;

for (var i = 0, c = this.ignoredPaths.length; i < c; i++) {
if (this.ignoredPaths[i] == dirName) {
if (this.ignoredPaths[i] === dirName) {
return null;

@@ -111,5 +118,6 @@ }

for (var path in this.repositories) {
if (!this.repositories.hasOwnProperty(path))
if (!this.repositories.hasOwnProperty(path)) {
continue;
if (fileName.substr(0, path.length) == path) {
}
if (fileName.substr(0, path.length) === path) {
return this.repositories[path];

@@ -140,3 +148,3 @@ }

var reflection = project.reflections[key];
if (reflection.sources)
if (reflection.sources) {
reflection.sources.forEach(function (source) {

@@ -147,2 +155,3 @@ if (source.file && source.file.url) {

});
}
}

@@ -149,0 +158,0 @@ };

@@ -1,4 +0,4 @@

import { Reflection, ReflectionKind } from "../../models/reflections/index";
import { ReflectionGroup } from "../../models/ReflectionGroup";
import { ConverterComponent } from "../components";
import { Reflection, ReflectionKind } from '../../models/reflections/index';
import { ReflectionGroup } from '../../models/ReflectionGroup';
import { ConverterComponent } from '../components';
export declare class GroupPlugin extends ConverterComponent {

@@ -5,0 +5,0 @@ static WEIGHTS: ReflectionKind[];

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var index_1 = require("../../models/reflections/index");

@@ -31,3 +37,2 @@ var ReflectionGroup_1 = require("../../models/ReflectionGroup");

GroupPlugin.prototype.onResolve = function (context, reflection) {
var reflection = reflection;
reflection.kindString = GroupPlugin_1.getKindSingular(reflection.kind);

@@ -46,4 +51,5 @@ if (reflection instanceof index_1.ContainerReflection) {

for (var key in directory.directories) {
if (!directory.directories.hasOwnProperty(key))
if (!directory.directories.hasOwnProperty(key)) {
continue;
}
walkDirectory(directory.directories[key]);

@@ -66,7 +72,7 @@ }

for (var i = 0; i < groups.length; i++) {
var group = groups[i];
if (group.kind != child.kind) {
var group_1 = groups[i];
if (group_1.kind !== child.kind) {
continue;
}
group.children.push(child);
group_1.children.push(child);
return;

@@ -124,13 +130,17 @@ }

var bWeight = GroupPlugin_1.WEIGHTS.indexOf(b.kind);
if (aWeight == bWeight) {
if (a.flags.isStatic && !b.flags.isStatic)
if (aWeight === bWeight) {
if (a.flags.isStatic && !b.flags.isStatic) {
return 1;
if (!a.flags.isStatic && b.flags.isStatic)
}
if (!a.flags.isStatic && b.flags.isStatic) {
return -1;
if (a.name == b.name)
}
if (a.name === b.name) {
return 0;
}
return a.name > b.name ? 1 : -1;
}
else
else {
return aWeight - bWeight;
}
};

@@ -163,3 +173,3 @@ return GroupPlugin;

index_1.ReflectionKind.GetSignature,
index_1.ReflectionKind.SetSignature,
index_1.ReflectionKind.SetSignature
];

@@ -166,0 +176,0 @@ GroupPlugin.SINGULARS = (function () {

@@ -1,2 +0,2 @@

import { ConverterComponent } from "../components";
import { ConverterComponent } from '../components';
export declare class ImplementsPlugin extends ConverterComponent {

@@ -3,0 +3,0 @@ initialize(): void;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var index_1 = require("../../models/reflections/index");

@@ -36,8 +42,13 @@ var index_2 = require("../../models/types/index");

var classMember;
if (!classReflection.children) {
return;
}
for (var index = 0, count = classReflection.children.length; index < count; index++) {
var child = classReflection.children[index];
if (child.name != interfaceMember.name)
if (child.name !== interfaceMember.name) {
continue;
if (child.flags.isStatic != interfaceMember.flags.isStatic)
}
if (child.flags.isStatic !== interfaceMember.flags.isStatic) {
continue;
}
classMember = child;

@@ -44,0 +55,0 @@ break;

@@ -1,10 +0,10 @@

export { CommentPlugin } from "./CommentPlugin";
export { DecoratorPlugin } from "./DecoratorPlugin";
export { DeepCommentPlugin } from "./DeepCommentPlugin";
export { DynamicModulePlugin } from "./DynamicModulePlugin";
export { GitHubPlugin } from "./GitHubPlugin";
export { GroupPlugin } from "./GroupPlugin";
export { ImplementsPlugin } from "./ImplementsPlugin";
export { PackagePlugin } from "./PackagePlugin";
export { SourcePlugin } from "./SourcePlugin";
export { TypePlugin } from "./TypePlugin";
export { CommentPlugin } from './CommentPlugin';
export { DecoratorPlugin } from './DecoratorPlugin';
export { DeepCommentPlugin } from './DeepCommentPlugin';
export { DynamicModulePlugin } from './DynamicModulePlugin';
export { GitHubPlugin } from './GitHubPlugin';
export { GroupPlugin } from './GroupPlugin';
export { ImplementsPlugin } from './ImplementsPlugin';
export { PackagePlugin } from './PackagePlugin';
export { SourcePlugin } from './SourcePlugin';
export { TypePlugin } from './TypePlugin';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var CommentPlugin_1 = require("./CommentPlugin");

@@ -3,0 +4,0 @@ exports.CommentPlugin = CommentPlugin_1.CommentPlugin;

@@ -1,2 +0,2 @@

import { ConverterComponent } from "../components";
import { ConverterComponent } from '../components';
export declare class PackagePlugin extends ConverterComponent {

@@ -3,0 +3,0 @@ readme: string;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var Path = require("path");

@@ -37,3 +43,3 @@ var FS = require("fs");

var readme = this.readme;
this.noReadmeFile = (readme == 'none');
this.noReadmeFile = (readme === 'none');
if (!this.noReadmeFile && readme) {

@@ -48,4 +54,5 @@ readme = Path.resolve(readme);

var _this = this;
if (!node)
if (!node) {
return;
}
if (this.readmeFile && this.packageFile) {

@@ -58,3 +65,3 @@ return;

dirName = parentDir;
if (this.visited.indexOf(dirName) != -1) {
if (this.visited.indexOf(dirName) !== -1) {
break;

@@ -64,6 +71,6 @@ }

var lfile = file.toLowerCase();
if (!_this.noReadmeFile && !_this.readmeFile && lfile == 'readme.md') {
if (!_this.noReadmeFile && !_this.readmeFile && lfile === 'readme.md') {
_this.readmeFile = Path.join(dirName, file);
}
if (!_this.packageFile && lfile == 'package.json') {
if (!_this.packageFile && lfile === 'package.json') {
_this.packageFile = Path.join(dirName, file);

@@ -74,3 +81,3 @@ }

parentDir = Path.resolve(Path.join(dirName, '..'));
} while (dirName != parentDir);
} while (dirName !== parentDir);
};

@@ -77,0 +84,0 @@ PackagePlugin.prototype.onBeginResolve = function (context) {

@@ -1,2 +0,2 @@

import { ConverterComponent } from "../components";
import { ConverterComponent } from '../components';
export declare class SourcePlugin extends ConverterComponent {

@@ -3,0 +3,0 @@ private basePath;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var Path = require("path");

@@ -55,4 +61,5 @@ var ts = require("typescript");

SourcePlugin.prototype.onBeginDocument = function (context, reflection, node) {
if (!node)
if (!node) {
return;
}
var fileName = node.fileName;

@@ -63,4 +70,5 @@ this.basePath.add(fileName);

SourcePlugin.prototype.onDeclaration = function (context, reflection, node) {
if (!node)
if (!node) {
return;
}
var sourceFile = _ts.getSourceFileOfNode(node);

@@ -76,4 +84,5 @@ var fileName = sourceFile.fileName;

}
if (!reflection.sources)
if (!reflection.sources) {
reflection.sources = [];
}
if (reflection instanceof index_1.DeclarationReflection) {

@@ -98,4 +107,5 @@ file.reflections.push(reflection);

var _this = this;
if (!reflection.sources)
if (!reflection.sources) {
return;
}
reflection.sources.forEach(function (source) {

@@ -115,3 +125,3 @@ source.fileName = _this.basePath.trim(source.fileName);

var path = Path.dirname(file.fileName);
if (path != '.') {
if (path !== '.') {
path.split('/').forEach(function (path) {

@@ -118,0 +128,0 @@ if (!Object.prototype.hasOwnProperty.call(directory, path)) {

@@ -1,3 +0,3 @@

import { DeclarationReflection } from "../../models/reflections/index";
import { ConverterComponent } from "../components";
import { DeclarationReflection } from '../../models/reflections/index';
import { ConverterComponent } from '../components';
export declare class TypePlugin extends ConverterComponent {

@@ -4,0 +4,0 @@ reflections: DeclarationReflection[];

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var index_1 = require("../../models/reflections/index");

@@ -41,3 +47,3 @@ var index_2 = require("../../models/types/index");

resolveTypes(reflection, reflection.implementedTypes);
if (reflection.decorators)
if (reflection.decorators) {
reflection.decorators.forEach(function (decorator) {

@@ -48,2 +54,3 @@ if (decorator.type) {

});
}
if (reflection.kindOf(index_1.ReflectionKind.ClassOrInterface)) {

@@ -53,4 +60,5 @@ this.postpone(reflection);

_this.postpone(target);
if (!target.implementedBy)
if (!target.implementedBy) {
target.implementedBy = [];
}
target.implementedBy.push(new index_2.ReferenceType(reflection.name, index_2.ReferenceType.SYMBOL_ID_RESOLVED, reflection));

@@ -60,4 +68,5 @@ });

_this.postpone(target);
if (!target.extendedBy)
if (!target.extendedBy) {
target.extendedBy = [];
}
target.extendedBy.push(new index_2.ReferenceType(reflection.name, index_2.ReferenceType.SYMBOL_ID_RESOLVED, reflection));

@@ -67,9 +76,12 @@ });

function walk(types, callback) {
if (!types)
if (!types) {
return;
}
types.forEach(function (type) {
if (!(type instanceof index_2.ReferenceType))
if (!(type instanceof index_2.ReferenceType)) {
return;
if (!type.reflection || !(type.reflection instanceof index_1.DeclarationReflection))
}
if (!type.reflection || !(type.reflection instanceof index_1.DeclarationReflection)) {
return;
}
callback(type.reflection);

@@ -79,4 +91,5 @@ });

function resolveTypes(reflection, types) {
if (!types)
if (!types) {
return;
}
for (var i = 0, c = types.length; i < c; i++) {

@@ -89,6 +102,6 @@ resolveType(reflection, types[i]);

var referenceType = type;
if (referenceType.symbolID == index_2.ReferenceType.SYMBOL_ID_RESOLVE_BY_NAME) {
if (referenceType.symbolID === index_2.ReferenceType.SYMBOL_ID_RESOLVE_BY_NAME) {
referenceType.reflection = reflection.findReflectionByName(referenceType.name);
}
else if (!referenceType.reflection && referenceType.symbolID != index_2.ReferenceType.SYMBOL_ID_RESOLVED) {
else if (!referenceType.reflection && referenceType.symbolID !== index_2.ReferenceType.SYMBOL_ID_RESOLVED) {
referenceType.reflection = project.reflections[project.symbolMapping[referenceType.symbolID]];

@@ -117,3 +130,3 @@ }

TypePlugin.prototype.postpone = function (reflection) {
if (this.reflections.indexOf(reflection) == -1) {
if (this.reflections.indexOf(reflection) === -1) {
this.reflections.push(reflection);

@@ -126,4 +139,5 @@ }

reflection.implementedBy.sort(function (a, b) {
if (a['name'] == b['name'])
if (a['name'] === b['name']) {
return 0;
}
return a['name'] > b['name'] ? 1 : -1;

@@ -130,0 +144,0 @@ });

@@ -1,6 +0,6 @@

import * as ts from "typescript";
import { ReferenceType } from "../../models/index";
import { ConverterTypeComponent, ITypeNodeConverter } from "../components";
import { Context } from "../context";
export declare class AliasConverter extends ConverterTypeComponent implements ITypeNodeConverter<ts.Type, ts.TypeReferenceNode> {
import * as ts from 'typescript';
import { ReferenceType } from '../../models/index';
import { ConverterTypeComponent, TypeNodeConverter } from '../components';
import { Context } from '../context';
export declare class AliasConverter extends ConverterTypeComponent implements TypeNodeConverter<ts.Type, ts.TypeReferenceNode> {
priority: number;

@@ -7,0 +7,0 @@ supportsNode(context: Context, node: ts.TypeReferenceNode, type: ts.Type): boolean;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var _ts = require("../../ts-internal");

@@ -25,23 +31,33 @@ var index_1 = require("../../models/index");

AliasConverter.prototype.supportsNode = function (context, node, type) {
if (!type || !node || !node.typeName)
if (!type || !node || !node.typeName) {
return false;
if (!type.symbol)
}
if (!type.symbol) {
return true;
}
var checker = context.checker;
var symbolName = checker.getFullyQualifiedName(type.symbol).split('.');
if (!symbolName.length)
if (!symbolName.length) {
return false;
if (symbolName[0].substr(0, 1) == '"')
}
if (symbolName[0].substr(0, 1) === '"') {
symbolName.shift();
}
var nodeName = _ts.getTextOfNode(node.typeName).split('.');
if (!nodeName.length)
if (!nodeName.length) {
return false;
}
var common = Math.min(symbolName.length, nodeName.length);
symbolName = symbolName.slice(-common);
nodeName = nodeName.slice(-common);
return nodeName.join('.') != symbolName.join('.');
return nodeName.join('.') !== symbolName.join('.');
};
AliasConverter.prototype.convertNode = function (context, node) {
var _this = this;
var name = _ts.getTextOfNode(node.typeName);
return new index_1.ReferenceType(name, index_1.ReferenceType.SYMBOL_ID_RESOLVE_BY_NAME);
var result = new index_1.ReferenceType(name, index_1.ReferenceType.SYMBOL_ID_RESOLVE_BY_NAME);
if (node.typeArguments) {
result.typeArguments = node.typeArguments.map(function (n) { return _this.owner.convertType(context, n); });
}
return result;
};

@@ -48,0 +64,0 @@ return AliasConverter;

@@ -1,8 +0,8 @@

import * as ts from "typescript";
import { Type } from "../../models/index";
import { ConverterTypeComponent, ITypeNodeConverter } from "../components";
import { Context } from "../context";
export declare class ArrayConverter extends ConverterTypeComponent implements ITypeNodeConverter<ts.Type, ts.ArrayTypeNode> {
import * as ts from 'typescript';
import { Type } from '../../models/index';
import { ConverterTypeComponent, TypeNodeConverter } from '../components';
import { Context } from '../context';
export declare class ArrayConverter extends ConverterTypeComponent implements TypeNodeConverter<ts.Type, ts.ArrayTypeNode> {
supportsNode(context: Context, node: ts.ArrayTypeNode): boolean;
convertNode(context: Context, node: ts.ArrayTypeNode): Type;
}
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -15,0 +21,0 @@ var index_1 = require("../../models/index");

@@ -1,8 +0,8 @@

import * as ts from "typescript";
import { Type } from "../../models/index";
import { ConverterTypeComponent, ITypeNodeConverter } from "../components";
import { Context } from "../context";
export declare class BindingArrayConverter extends ConverterTypeComponent implements ITypeNodeConverter<ts.Type, ts.BindingPattern> {
import * as ts from 'typescript';
import { Type } from '../../models/index';
import { ConverterTypeComponent, TypeNodeConverter } from '../components';
import { Context } from '../context';
export declare class BindingArrayConverter extends ConverterTypeComponent implements TypeNodeConverter<ts.Type, ts.BindingPattern> {
supportsNode(context: Context, node: ts.BindingPattern): boolean;
convertNode(context: Context, node: ts.BindingPattern): Type;
}
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -15,0 +21,0 @@ var index_1 = require("../../models/index");

@@ -1,8 +0,8 @@

import * as ts from "typescript";
import { Type } from "../../models/index";
import { ConverterTypeComponent, ITypeNodeConverter } from "../components";
import { Context } from "../context";
export declare class BindingObjectConverter extends ConverterTypeComponent implements ITypeNodeConverter<ts.Type, ts.BindingPattern> {
import * as ts from 'typescript';
import { Type } from '../../models/index';
import { ConverterTypeComponent, TypeNodeConverter } from '../components';
import { Context } from '../context';
export declare class BindingObjectConverter extends ConverterTypeComponent implements TypeNodeConverter<ts.Type, ts.BindingPattern> {
supportsNode(context: Context, node: ts.BindingPattern): boolean;
convertNode(context: Context, node: ts.BindingPattern): Type;
}
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -24,3 +30,3 @@ var index_1 = require("../../models/index");

BindingObjectConverter.prototype.supportsNode = function (context, node) {
return node.kind == ts.SyntaxKind.ObjectBindingPattern;
return node.kind === ts.SyntaxKind.ObjectBindingPattern;
};

@@ -27,0 +33,0 @@ BindingObjectConverter.prototype.convertNode = function (context, node) {

@@ -1,8 +0,8 @@

import * as ts from "typescript";
import { Type } from "../../models/index";
import { ConverterTypeComponent, ITypeTypeConverter } from "../components";
import { Context } from "../context";
export declare class EnumConverter extends ConverterTypeComponent implements ITypeTypeConverter<ts.Type> {
import * as ts from 'typescript';
import { Type } from '../../models/index';
import { ConverterTypeComponent, TypeTypeConverter } from '../components';
import { Context } from '../context';
export declare class EnumConverter extends ConverterTypeComponent implements TypeTypeConverter<ts.Type> {
supportsType(context: Context, type: ts.Type): boolean;
convertType(context: Context, type: ts.Type): Type;
}
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -15,0 +21,0 @@ var index_1 = require("../factories/index");

@@ -1,12 +0,12 @@

export { AliasConverter } from "./alias";
export { ArrayConverter } from "./array";
export { BindingArrayConverter } from "./binding-array";
export { BindingObjectConverter } from "./binding-object";
export { EnumConverter } from "./enum";
export { IntrinsicConverter } from "./intrinsic";
export { StringLiteralConverter } from "./string-literal";
export { ReferenceConverter } from "./reference";
export { TupleConverter } from "./tuple";
export { TypeParameterConverter } from "./type-parameter";
export { UnionConverter } from "./union";
export { UnknownConverter } from "./unknown";
export { AliasConverter } from './alias';
export { ArrayConverter } from './array';
export { BindingArrayConverter } from './binding-array';
export { BindingObjectConverter } from './binding-object';
export { EnumConverter } from './enum';
export { IntrinsicConverter } from './intrinsic';
export { StringLiteralConverter } from './string-literal';
export { ReferenceConverter } from './reference';
export { TupleConverter } from './tuple';
export { TypeParameterConverter } from './type-parameter';
export { UnionConverter } from './union';
export { UnknownConverter } from './unknown';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var alias_1 = require("./alias");

@@ -3,0 +4,0 @@ exports.AliasConverter = alias_1.AliasConverter;

@@ -1,8 +0,8 @@

import * as ts from "typescript";
import { IntrinsicType } from "../../models/index";
import { ConverterTypeComponent, ITypeTypeConverter } from "../components";
import { Context } from "../context";
export declare class IntrinsicConverter extends ConverterTypeComponent implements ITypeTypeConverter<ts.Type> {
import * as ts from 'typescript';
import { IntrinsicType } from '../../models/index';
import { ConverterTypeComponent, TypeTypeConverter } from '../components';
import { Context } from '../context';
export declare class IntrinsicConverter extends ConverterTypeComponent implements TypeTypeConverter<ts.Type> {
supportsType(context: Context, type: ts.Type): boolean;
convertType(context: Context, type: ts.Type): IntrinsicType;
}
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -19,3 +25,3 @@ var index_1 = require("../../models/index");

if (IntrinsicTypeFlags === undefined) {
throw new Error("Internal TypeScript API missing: TypeFlags.Intrinsic");
throw new Error('Internal TypeScript API missing: TypeFlags.Intrinsic');
}

@@ -22,0 +28,0 @@ var IntrinsicConverter = (function (_super) {

@@ -1,6 +0,6 @@

import * as ts from "typescript";
import { Type } from "../../models/types/index";
import { ConverterTypeComponent, ITypeNodeConverter } from "../components";
import { Context } from "../context";
export declare class ReferenceConverter extends ConverterTypeComponent implements ITypeNodeConverter<ts.TypeReference, ts.TypeReferenceNode> {
import * as ts from 'typescript';
import { Type } from '../../models/types/index';
import { ConverterTypeComponent, TypeNodeConverter } from '../components';
import { Context } from '../context';
export declare class ReferenceConverter extends ConverterTypeComponent implements TypeNodeConverter<ts.TypeReference, ts.TypeReferenceNode> {
priority: number;

@@ -7,0 +7,0 @@ supportsNode(context: Context, node: ts.TypeReferenceNode, type: ts.TypeReference): boolean;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -66,4 +72,4 @@ var index_1 = require("../../models/types/index");

if (context.visitStack.indexOf(declaration_1) !== -1) {
if (declaration_1.kind == ts.SyntaxKind.TypeLiteral ||
declaration_1.kind == ts.SyntaxKind.ObjectLiteralExpression) {
if (declaration_1.kind === ts.SyntaxKind.TypeLiteral ||
declaration_1.kind === ts.SyntaxKind.ObjectLiteralExpression) {
return index_3.createReferenceType(context, declaration_1.parent.symbol);

@@ -70,0 +76,0 @@ }

@@ -1,6 +0,6 @@

import * as ts from "typescript";
import { Type } from "../../models/types/index";
import { ConverterTypeComponent, ITypeConverter } from "../components";
import { Context } from "../context";
export declare class StringLiteralConverter extends ConverterTypeComponent implements ITypeConverter<ts.LiteralType, ts.StringLiteral> {
import * as ts from 'typescript';
import { Type } from '../../models/types/index';
import { ConverterTypeComponent, TypeConverter } from '../components';
import { Context } from '../context';
export declare class StringLiteralConverter extends ConverterTypeComponent implements TypeConverter<ts.LiteralType, ts.StringLiteral> {
supportsNode(context: Context, node: ts.StringLiteral): boolean;

@@ -7,0 +7,0 @@ supportsType(context: Context, type: ts.LiteralType): boolean;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -15,0 +21,0 @@ var index_1 = require("../../models/types/index");

@@ -1,6 +0,6 @@

import * as ts from "typescript";
import { TupleType } from "../../models/types/index";
import { ConverterTypeComponent, ITypeConverter } from "../components";
import { Context } from "../context";
export declare class TupleConverter extends ConverterTypeComponent implements ITypeConverter<ts.TypeReference, ts.TupleTypeNode> {
import * as ts from 'typescript';
import { TupleType } from '../../models/types/index';
import { ConverterTypeComponent, TypeConverter } from '../components';
import { Context } from '../context';
export declare class TupleConverter extends ConverterTypeComponent implements TypeConverter<ts.TypeReference, ts.TupleTypeNode> {
supportsNode(context: Context, node: ts.TupleTypeNode): boolean;

@@ -7,0 +7,0 @@ supportsType(context: Context, type: ts.TypeReference): boolean;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -15,0 +21,0 @@ var index_1 = require("../../models/types/index");

@@ -1,6 +0,6 @@

import * as ts from "typescript";
import { Type } from "../../models/types/index";
import { ConverterTypeComponent, ITypeNodeConverter } from "../components";
import { Context } from "../context";
export declare class TypeParameterConverter extends ConverterTypeComponent implements ITypeNodeConverter<ts.Type, ts.TypeReferenceNode> {
import * as ts from 'typescript';
import { Type } from '../../models/types/index';
import { ConverterTypeComponent, TypeNodeConverter } from '../components';
import { Context } from '../context';
export declare class TypeParameterConverter extends ConverterTypeComponent implements TypeNodeConverter<ts.Type, ts.TypeReferenceNode> {
priority: number;

@@ -7,0 +7,0 @@ supportsNode(context: Context, node: ts.TypeReferenceNode, type: ts.Type): boolean;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -30,8 +36,8 @@ var _ts = require("../../ts-internal");

if (node.typeName) {
var name = _ts.getTextOfNode(node.typeName);
if (context.typeParameters && context.typeParameters[name]) {
return context.typeParameters[name].clone();
var name_1 = _ts.getTextOfNode(node.typeName);
if (context.typeParameters && context.typeParameters[name_1]) {
return context.typeParameters[name_1].clone();
}
var result = new index_1.TypeParameterType();
result.name = name;
result.name = name_1;
return result;

@@ -38,0 +44,0 @@ }

@@ -1,6 +0,6 @@

import * as ts from "typescript";
import { UnionType } from "../../models/types/index";
import { ConverterTypeComponent, ITypeConverter } from "../components";
import { Context } from "../context";
export declare class UnionConverter extends ConverterTypeComponent implements ITypeConverter<ts.UnionType, ts.UnionTypeNode> {
import * as ts from 'typescript';
import { UnionType } from '../../models/types/index';
import { ConverterTypeComponent, TypeConverter } from '../components';
import { Context } from '../context';
export declare class UnionConverter extends ConverterTypeComponent implements TypeConverter<ts.UnionType, ts.UnionTypeNode> {
supportsNode(context: Context, node: ts.UnionTypeNode): boolean;

@@ -7,0 +7,0 @@ supportsType(context: Context, type: ts.UnionType): boolean;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -15,0 +21,0 @@ var index_1 = require("../../models/types/index");

@@ -1,6 +0,6 @@

import * as ts from "typescript";
import { Type } from "../../models/types/index";
import { ConverterTypeComponent, ITypeTypeConverter } from "../components";
import { Context } from "../context";
export declare class UnknownConverter extends ConverterTypeComponent implements ITypeTypeConverter<ts.Type> {
import * as ts from 'typescript';
import { Type } from '../../models/types/index';
import { ConverterTypeComponent, TypeTypeConverter } from '../components';
import { Context } from '../context';
export declare class UnknownConverter extends ConverterTypeComponent implements TypeTypeConverter<ts.Type> {
priority: number;

@@ -7,0 +7,0 @@ supportsType(context: Context, type: ts.Type): boolean;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var index_1 = require("../../models/types/index");

@@ -15,0 +21,0 @@ var components_1 = require("../components");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Path = require("path");

@@ -14,3 +15,3 @@ var BasePath = (function () {

for (var m = 0; m < mMax; m++) {
if (basePath[m] == filePath[m]) {
if (basePath[m] === filePath[m]) {
continue;

@@ -37,3 +38,3 @@ }

var basePath = this.basePaths[n];
if (fileName.substr(0, basePath.length) == basePath) {
if (fileName.substr(0, basePath.length) === basePath) {
return fileName.substr(basePath.length + 1);

@@ -40,0 +41,0 @@ }

@@ -1,3 +0,3 @@

import * as ts from "typescript";
import { ConverterComponent } from "../components";
import * as ts from 'typescript';
import { ConverterComponent } from '../components';
export declare class CompilerHost extends ConverterComponent implements ts.CompilerHost {

@@ -4,0 +4,0 @@ private currentDirectory;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -19,4 +25,5 @@ var _ts = require("../../ts-internal");

CompilerHost.prototype.getSourceFile = function (filename, languageVersion, onError) {
var text;
try {
var text = ts.sys.readFile(filename, this.application.options.getCompilerOptions().charset);
text = ts.sys.readFile(filename, this.application.options.getCompilerOptions().charset);
}

@@ -27,3 +34,3 @@ catch (e) {

}
text = "";
text = '';
}

@@ -30,0 +37,0 @@ return text !== undefined ? ts.createSourceFile(filename, text, languageVersion) : undefined;

@@ -1,2 +0,2 @@

import { CommentTag } from "./tag";
import { CommentTag } from './tag';
export declare class Comment {

@@ -3,0 +3,0 @@ shortText: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tag_1 = require("./tag");

@@ -12,6 +13,7 @@ var Comment = (function () {

Comment.prototype.hasTag = function (tagName) {
if (!this.tags)
if (!this.tags) {
return false;
}
for (var i = 0, c = this.tags.length; i < c; i++) {
if (this.tags[i].tagName == tagName) {
if (this.tags[i].tagName === tagName) {
return true;

@@ -23,7 +25,8 @@ }

Comment.prototype.getTag = function (tagName, paramName) {
if (!this.tags)
if (!this.tags) {
return null;
}
for (var i = 0, c = this.tags.length; i < c; i++) {
var tag = this.tags[i];
if (tag.tagName == tagName && (paramName == void 0 || tag.paramName == paramName)) {
if (tag.tagName === tagName && (paramName === void 0 || tag.paramName === paramName)) {
return this.tags[i];

@@ -42,8 +45,11 @@ }

var result = {};
if (this.shortText)
if (this.shortText) {
result.shortText = this.shortText;
if (this.text)
}
if (this.text) {
result.text = this.text;
if (this.returns)
}
if (this.returns) {
result.returns = this.returns;
}
if (this.tags && this.tags.length) {

@@ -50,0 +56,0 @@ result.tags = [];

@@ -1,2 +0,2 @@

export { Comment } from "./comment";
export { CommentTag } from "./tag";
export { Comment } from './comment';
export { CommentTag } from './tag';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var comment_1 = require("./comment");

@@ -3,0 +4,0 @@ exports.Comment = comment_1.Comment;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var CommentTag = (function () {

@@ -3,0 +4,0 @@ function CommentTag(tagName, paramName, text) {

@@ -1,4 +0,4 @@

export * from "./reflections/index";
export * from "./types/index";
export * from "./comments/index";
export * from "./sources/index";
export * from './reflections/index';
export * from './types/index';
export * from './comments/index';
export * from './sources/index';

@@ -5,2 +5,3 @@ "use strict";

}
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./reflections/index"));

@@ -7,0 +8,0 @@ __export(require("./types/index"));

@@ -1,2 +0,2 @@

import { Reflection, ReflectionKind } from "./reflections/abstract";
import { Reflection, ReflectionKind } from './reflections/abstract';
export declare class ReflectionGroup {

@@ -3,0 +3,0 @@ title: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ReflectionGroup = (function () {

@@ -23,7 +24,7 @@ function ReflectionGroup(title, kind) {

if (this.children) {
var children = [];
var children_1 = [];
this.children.forEach(function (child) {
children.push(child.id);
children_1.push(child.id);
});
result['children'] = children;
result['children'] = children_1;
}

@@ -30,0 +31,0 @@ return result;

@@ -1,5 +0,5 @@

import { ISourceReference } from "../sources/file";
import { Type } from "../types/index";
import { Comment } from "../comments/comment";
import { TypeParameterReflection } from "./type-parameter";
import { SourceReference } from '../sources/file';
import { Type } from '../types/index';
import { Comment } from '../comments/comment';
import { TypeParameterReflection } from './type-parameter';
export declare function resetReflectionID(): void;

@@ -50,3 +50,3 @@ export declare enum ReflectionKind {

}
export interface IReflectionFlags extends Array<string> {
export interface ReflectionFlags extends Array<string> {
flags?: ReflectionFlag;

@@ -64,9 +64,9 @@ isPrivate?: boolean;

}
export interface IDefaultValueContainer extends Reflection {
export interface DefaultValueContainer extends Reflection {
defaultValue: string;
}
export interface ITypeContainer extends Reflection {
export interface TypeContainer extends Reflection {
type: Type;
}
export interface ITypeParameterContainer extends Reflection {
export interface TypeParameterContainer extends Reflection {
typeParameters: TypeParameterReflection[];

@@ -84,6 +84,6 @@ }

}
export interface ITraverseCallback {
export interface TraverseCallback {
(reflection: Reflection, property: TraverseProperty): void;
}
export interface IDecorator {
export interface Decorator {
name: string;

@@ -99,7 +99,7 @@ type?: Type;

kindString: string;
flags: IReflectionFlags;
flags: ReflectionFlags;
parent: Reflection;
comment: Comment;
sources: ISourceReference[];
decorators: IDecorator[];
sources: SourceReference[];
decorators: Decorator[];
decorates: Type[];

@@ -125,3 +125,3 @@ url: string;

findReflectionByName(names: string[]): Reflection;
traverse(callback: ITraverseCallback): void;
traverse(callback: TraverseCallback): void;
toObject(): any;

@@ -128,0 +128,0 @@ toString(): string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var REFLECTION_ID = 0;

@@ -108,3 +109,3 @@ function resetReflectionID() {

var name, index;
if (relevantFlags.indexOf(flag) != -1) {
if (relevantFlags.indexOf(flag) !== -1) {
name = ReflectionFlag[flag];

@@ -116,3 +117,3 @@ name = name.replace(/(.)([A-Z])/g, function (m, a, b) { return a + ' ' + b.toLowerCase(); });

this.flags.flags |= flag;
if (name && index == -1) {
if (name && index === -1) {
this.flags.push(name);

@@ -123,3 +124,3 @@ }

this.flags.flags &= ~flag;
if (name && index != -1) {
if (name && index !== -1) {
this.flags.splice(index, 1);

@@ -176,3 +177,3 @@ }

var alias = this.name.replace(/[^a-z0-9]/gi, '_').toLowerCase();
if (alias == '') {
if (alias === '') {
alias = 'reflection-' + this.id;

@@ -184,6 +185,7 @@ }

}
if (!target._aliases)
if (!target._aliases) {
target._aliases = [];
}
var suffix = '', index = 0;
while (target._aliases.indexOf(alias + suffix) != -1) {
while (target._aliases.indexOf(alias + suffix) !== -1) {
suffix = '-' + (++index).toString();

@@ -208,3 +210,3 @@ }

this.traverse(function (child) {
if (child.name == name) {
if (child.name === name) {
if (names.length <= 1) {

@@ -242,3 +244,3 @@ result = child;

};
if (this.originalName != this.name) {
if (this.originalName !== this.name) {
result.originalName = this.originalName;

@@ -250,6 +252,8 @@ }

for (var key in this.flags) {
if (parseInt(key) == key || key == 'flags')
if (parseInt(key, 10) == key || key === 'flags') {
continue;
if (this.flags[key])
}
if (this.flags[key]) {
result.flags[key] = true;
}
}

@@ -262,6 +266,8 @@ if (this.decorates) {

var result = { name: decorator.name };
if (decorator.type)
if (decorator.type) {
result.type = decorator.type.toObject();
if (decorator.arguments)
}
if (decorator.arguments) {
result.arguments = decorator.arguments;
}
return result;

@@ -271,8 +277,10 @@ });

this.traverse(function (child, property) {
if (property == TraverseProperty.TypeLiteral)
if (property === TraverseProperty.TypeLiteral) {
return;
}
var name = TraverseProperty[property];
name = name.substr(0, 1).toLowerCase() + name.substr(1);
if (!result[name])
if (!result[name]) {
result[name] = [];
}
result[name].push(child.toObject());

@@ -279,0 +287,0 @@ });

@@ -1,4 +0,4 @@

import { Reflection, ReflectionKind, ITraverseCallback } from "./abstract";
import { ReflectionGroup } from "../ReflectionGroup";
import { DeclarationReflection } from "./declaration";
import { Reflection, ReflectionKind, TraverseCallback } from './abstract';
import { ReflectionGroup } from '../ReflectionGroup';
import { DeclarationReflection } from './declaration';
export declare class ContainerReflection extends Reflection {

@@ -8,4 +8,4 @@ children: DeclarationReflection[];

getChildrenByKind(kind: ReflectionKind): DeclarationReflection[];
traverse(callback: ITraverseCallback): void;
traverse(callback: TraverseCallback): void;
toObject(): any;
}
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var abstract_1 = require("./abstract");

@@ -33,12 +39,12 @@ var ContainerReflection = (function (_super) {

if (this.groups) {
var groups = [];
var groups_1 = [];
this.groups.forEach(function (group) {
groups.push(group.toObject());
groups_1.push(group.toObject());
});
result['groups'] = groups;
result['groups'] = groups_1;
}
if (this.sources) {
var sources = [];
var sources_1 = [];
this.sources.forEach(function (source) {
sources.push({
sources_1.push({
fileName: source.fileName,

@@ -49,3 +55,3 @@ line: source.line,

});
result['sources'] = sources;
result['sources'] = sources_1;
}

@@ -52,0 +58,0 @@ return result;

@@ -1,12 +0,12 @@

import { IDefaultValueContainer, ITypeContainer, ITypeParameterContainer, ITraverseCallback } from "./abstract";
import { Type } from "../types/index";
import { ContainerReflection } from "./container";
import { SignatureReflection } from "./signature";
import { TypeParameterReflection } from "./type-parameter";
export interface IDeclarationHierarchy {
import { DefaultValueContainer, TypeContainer, TypeParameterContainer, TraverseCallback } from './abstract';
import { Type } from '../types/index';
import { ContainerReflection } from './container';
import { SignatureReflection } from './signature';
import { TypeParameterReflection } from './type-parameter';
export interface DeclarationHierarchy {
types: Type[];
next?: IDeclarationHierarchy;
next?: DeclarationHierarchy;
isTarget?: boolean;
}
export declare class DeclarationReflection extends ContainerReflection implements IDefaultValueContainer, ITypeContainer, ITypeParameterContainer {
export declare class DeclarationReflection extends ContainerReflection implements DefaultValueContainer, TypeContainer, TypeParameterContainer {
type: Type;

@@ -26,8 +26,8 @@ typeParameters: TypeParameterReflection[];

implementedBy: Type[];
typeHierarchy: IDeclarationHierarchy;
typeHierarchy: DeclarationHierarchy;
hasGetterOrSetter(): boolean;
getAllSignatures(): SignatureReflection[];
traverse(callback: ITraverseCallback): void;
traverse(callback: TraverseCallback): void;
toObject(): any;
toString(): string;
}
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var abstract_1 = require("./abstract");

@@ -20,10 +26,14 @@ var index_1 = require("../types/index");

var result = [];
if (this.signatures)
if (this.signatures) {
result = result.concat(this.signatures);
if (this.indexSignature)
}
if (this.indexSignature) {
result.push(this.indexSignature);
if (this.getSignature)
}
if (this.getSignature) {
result.push(this.getSignature);
if (this.setSignature)
}
if (this.setSignature) {
result.push(this.setSignature);
}
return result;

@@ -86,7 +96,7 @@ };

if (this.typeParameters) {
var parameters = [];
var parameters_1 = [];
this.typeParameters.forEach(function (parameter) {
parameters.push(parameter.name);
parameters_1.push(parameter.name);
});
result += '<' + parameters.join(', ') + '>';
result += '<' + parameters_1.join(', ') + '>';
}

@@ -93,0 +103,0 @@ if (this.type) {

@@ -1,7 +0,7 @@

export { Reflection, ReflectionKind, ReflectionFlag, ITypeParameterContainer, IDecorator, TraverseProperty } from "./abstract";
export { ContainerReflection } from "./container";
export { DeclarationReflection, IDeclarationHierarchy } from "./declaration";
export { ParameterReflection } from "./parameter";
export { ProjectReflection } from "./project";
export { SignatureReflection } from "./signature";
export { TypeParameterReflection } from "./type-parameter";
export { Reflection, ReflectionKind, ReflectionFlag, TypeParameterContainer, Decorator, TraverseProperty } from './abstract';
export { ContainerReflection } from './container';
export { DeclarationReflection, DeclarationHierarchy } from './declaration';
export { ParameterReflection } from './parameter';
export { ProjectReflection } from './project';
export { SignatureReflection } from './signature';
export { TypeParameterReflection } from './type-parameter';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var abstract_1 = require("./abstract");

@@ -3,0 +4,0 @@ exports.Reflection = abstract_1.Reflection;

@@ -1,11 +0,11 @@

import { Type } from "../types/index";
import { Reflection, IDefaultValueContainer, ITypeContainer, ITraverseCallback } from "./abstract";
import { SignatureReflection } from "./signature";
export declare class ParameterReflection extends Reflection implements IDefaultValueContainer, ITypeContainer {
import { Type } from '../types/index';
import { Reflection, DefaultValueContainer, TypeContainer, TraverseCallback } from './abstract';
import { SignatureReflection } from './signature';
export declare class ParameterReflection extends Reflection implements DefaultValueContainer, TypeContainer {
parent: SignatureReflection;
defaultValue: string;
type: Type;
traverse(callback: ITraverseCallback): void;
traverse(callback: TraverseCallback): void;
toObject(): any;
toString(): string;
}
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var index_1 = require("../types/index");

@@ -8,0 +14,0 @@ var abstract_1 = require("./abstract");

@@ -1,4 +0,4 @@

import { SourceFile, SourceDirectory } from "../sources/index";
import { Reflection, ReflectionKind } from "./abstract";
import { ContainerReflection } from "./container";
import { SourceFile, SourceDirectory } from '../sources/index';
import { Reflection, ReflectionKind } from './abstract';
import { ContainerReflection } from './container';
export declare class ProjectReflection extends ContainerReflection {

@@ -5,0 +5,0 @@ reflections: {

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var index_1 = require("../sources/index");

@@ -38,4 +44,5 @@ var abstract_1 = require("./abstract");

var reflection = this.reflections[key];
if (reflection.name != name)
if (reflection.name !== name) {
continue;
}
var depth = names.length - 1;

@@ -45,4 +52,5 @@ var target = reflection;

target = target.parent;
if (target.name != names[depth])
if (target.name !== names[depth]) {
continue search;
}
depth -= 1;

@@ -49,0 +57,0 @@ }

@@ -1,7 +0,7 @@

import { Type } from "../types/index";
import { Reflection, ITypeContainer, ITypeParameterContainer, ITraverseCallback } from "./abstract";
import { ContainerReflection } from "./container";
import { ParameterReflection } from "./parameter";
import { TypeParameterReflection } from "./type-parameter";
export declare class SignatureReflection extends Reflection implements ITypeContainer, ITypeParameterContainer {
import { Type } from '../types/index';
import { Reflection, TypeContainer, TypeParameterContainer, TraverseCallback } from './abstract';
import { ContainerReflection } from './container';
import { ParameterReflection } from './parameter';
import { TypeParameterReflection } from './type-parameter';
export declare class SignatureReflection extends Reflection implements TypeContainer, TypeParameterContainer {
parent: ContainerReflection;

@@ -15,5 +15,5 @@ parameters: ParameterReflection[];

getParameterTypes(): Type[];
traverse(callback: ITraverseCallback): void;
traverse(callback: TraverseCallback): void;
toObject(): any;
toString(): string;
}
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var index_1 = require("../types/index");

@@ -15,4 +21,5 @@ var abstract_1 = require("./abstract");

SignatureReflection.prototype.getParameterTypes = function () {
if (!this.parameters)
if (!this.parameters) {
return [];
}
return this.parameters.map(function (parameter) { return parameter.type; });

@@ -51,5 +58,5 @@ };

if (this.typeParameters) {
var parameters = [];
this.typeParameters.forEach(function (parameter) { return parameters.push(parameter.name); });
result += '<' + parameters.join(', ') + '>';
var parameters_1 = [];
this.typeParameters.forEach(function (parameter) { return parameters_1.push(parameter.name); });
result += '<' + parameters_1.join(', ') + '>';
}

@@ -56,0 +63,0 @@ if (this.type) {

@@ -1,5 +0,5 @@

import { Type, TypeParameterType } from "../types/index";
import { Reflection, ITypeContainer } from "./abstract";
import { DeclarationReflection } from "./declaration";
export declare class TypeParameterReflection extends Reflection implements ITypeContainer {
import { Type, TypeParameterType } from '../types/index';
import { Reflection, TypeContainer } from './abstract';
import { DeclarationReflection } from './declaration';
export declare class TypeParameterReflection extends Reflection implements TypeContainer {
parent: DeclarationReflection;

@@ -6,0 +6,0 @@ type: Type;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var abstract_1 = require("./abstract");

@@ -8,0 +14,0 @@ var TypeParameterReflection = (function (_super) {

@@ -1,4 +0,4 @@

import { Reflection } from "../reflections/abstract";
import { ReflectionGroup } from "../ReflectionGroup";
import { SourceFile } from "./file";
import { Reflection } from '../reflections/abstract';
import { ReflectionGroup } from '../ReflectionGroup';
import { SourceFile } from './file';
export declare class SourceDirectory {

@@ -5,0 +5,0 @@ parent: SourceDirectory;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var SourceDirectory = (function () {

@@ -19,4 +20,5 @@ function SourceDirectory(name, parent) {

for (var key in this.directories) {
if (!this.directories.hasOwnProperty(key))
if (!this.directories.hasOwnProperty(key)) {
continue;
}
res += '\n' + this.directories[key].toString(indent + ' ');

@@ -23,0 +25,0 @@ }

@@ -1,5 +0,5 @@

import { Reflection } from "../reflections/abstract";
import { ReflectionGroup } from "../ReflectionGroup";
import { SourceDirectory } from "./directory";
export interface ISourceReference {
import { Reflection } from '../reflections/abstract';
import { ReflectionGroup } from '../ReflectionGroup';
import { SourceDirectory } from './directory';
export interface SourceReference {
file?: SourceFile;

@@ -6,0 +6,0 @@ fileName: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Path = require("path");

@@ -3,0 +4,0 @@ var SourceFile = (function () {

@@ -1,2 +0,2 @@

export { SourceDirectory } from "./directory";
export { SourceFile } from "./file";
export { SourceDirectory } from './directory';
export { SourceFile } from './file';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var directory_1 = require("./directory");

@@ -3,0 +4,0 @@ exports.SourceDirectory = directory_1.SourceDirectory;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Type = (function () {

@@ -21,9 +22,11 @@ function Type() {

Type.isTypeListSimiliar = function (a, b) {
if (a.length != b.length)
if (a.length !== b.length) {
return false;
}
outerLoop: for (var an = 0, count = a.length; an < count; an++) {
var at = a[an];
for (var bn = 0; bn < count; bn++) {
if (b[bn].equals(at))
if (b[bn].equals(at)) {
continue outerLoop;
}
}

@@ -35,4 +38,5 @@ return false;

Type.isTypeListEqual = function (a, b) {
if (a.length != b.length)
if (a.length !== b.length) {
return false;
}
for (var index = 0, count = a.length; index < count; index++) {

@@ -39,0 +43,0 @@ if (!a[index].equals(b[index])) {

@@ -1,9 +0,9 @@

export { Type } from "./abstract";
export { IntrinsicType } from "./intrinsic";
export { ReferenceType } from "./reference";
export { ReflectionType } from "./reflection";
export { StringLiteralType } from "./string-literal";
export { TupleType } from "./tuple";
export { TypeParameterType } from "./type-parameter";
export { UnionType } from "./union";
export { UnknownType } from "./unknown";
export { Type } from './abstract';
export { IntrinsicType } from './intrinsic';
export { ReferenceType } from './reference';
export { ReflectionType } from './reflection';
export { StringLiteralType } from './string-literal';
export { TupleType } from './tuple';
export { TypeParameterType } from './type-parameter';
export { UnionType } from './union';
export { UnknownType } from './unknown';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var abstract_1 = require("./abstract");

@@ -3,0 +4,0 @@ exports.Type = abstract_1.Type;

@@ -1,2 +0,2 @@

import { Type } from "./abstract";
import { Type } from './abstract';
export declare class IntrinsicType extends Type {

@@ -3,0 +3,0 @@ name: string;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var abstract_1 = require("./abstract");

@@ -22,4 +28,4 @@ var IntrinsicType = (function (_super) {

return type instanceof IntrinsicType &&
type.isArray == this.isArray &&
type.name == this.name;
type.isArray === this.isArray &&
type.name === this.name;
};

@@ -26,0 +32,0 @@ IntrinsicType.prototype.toObject = function () {

@@ -1,3 +0,3 @@

import { Reflection } from "../reflections/abstract";
import { Type } from "./abstract";
import { Reflection } from '../reflections/abstract';
import { Type } from './abstract';
export declare class ReferenceType extends Type {

@@ -4,0 +4,0 @@ name: string;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var abstract_1 = require("./abstract");

@@ -25,4 +31,4 @@ var ReferenceType = (function (_super) {

return type instanceof ReferenceType &&
type.isArray == this.isArray &&
(type.symbolID == this.symbolID || type.reflection == this.reflection);
type.isArray === this.isArray &&
(type.symbolID === this.symbolID || type.reflection === this.reflection);
};

@@ -29,0 +35,0 @@ ReferenceType.prototype.toObject = function () {

@@ -1,3 +0,3 @@

import { DeclarationReflection } from "../reflections/declaration";
import { Type } from "./abstract";
import { DeclarationReflection } from '../reflections/declaration';
import { Type } from './abstract';
export declare class ReflectionType extends Type {

@@ -4,0 +4,0 @@ declaration: DeclarationReflection;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var abstract_1 = require("./abstract");

@@ -21,3 +27,3 @@ var ReflectionType = (function (_super) {

ReflectionType.prototype.equals = function (type) {
return type == this;
return type === this;
};

@@ -24,0 +30,0 @@ ReflectionType.prototype.toObject = function () {

@@ -1,2 +0,2 @@

import { Type } from "./abstract";
import { Type } from './abstract';
export declare class StringLiteralType extends Type {

@@ -3,0 +3,0 @@ value: string;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var abstract_1 = require("./abstract");

@@ -22,4 +28,4 @@ var StringLiteralType = (function (_super) {

return type instanceof StringLiteralType &&
type.isArray == this.isArray &&
type.value == this.value;
type.isArray === this.isArray &&
type.value === this.value;
};

@@ -26,0 +32,0 @@ StringLiteralType.prototype.toObject = function () {

@@ -1,2 +0,2 @@

import { Type } from "./abstract";
import { Type } from './abstract';
export declare class TupleType extends Type {

@@ -3,0 +3,0 @@ elements: Type[];

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var abstract_1 = require("./abstract");

@@ -21,6 +27,8 @@ var TupleType = (function (_super) {

TupleType.prototype.equals = function (type) {
if (!(type instanceof TupleType))
if (!(type instanceof TupleType)) {
return false;
if (type.isArray != this.isArray)
}
if (type.isArray !== this.isArray) {
return false;
}
return abstract_1.Type.isTypeListEqual(type.elements, this.elements);

@@ -27,0 +35,0 @@ };

@@ -1,2 +0,2 @@

import { Type } from "./abstract";
import { Type } from './abstract';
export declare class TypeParameterType extends Type {

@@ -3,0 +3,0 @@ name: string;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var abstract_1 = require("./abstract");

@@ -35,3 +41,3 @@ var TypeParameterType = (function (_super) {

return constraintEquals &&
type.isArray == this.isArray;
type.isArray === this.isArray;
};

@@ -38,0 +44,0 @@ TypeParameterType.prototype.toObject = function () {

@@ -1,2 +0,2 @@

import { Type } from "./abstract";
import { Type } from './abstract';
export declare class UnionType extends Type {

@@ -3,0 +3,0 @@ types: Type[];

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var abstract_1 = require("./abstract");

@@ -21,6 +27,8 @@ var UnionType = (function (_super) {

UnionType.prototype.equals = function (type) {
if (!(type instanceof UnionType))
if (!(type instanceof UnionType)) {
return false;
if (type.isArray != this.isArray)
}
if (type.isArray !== this.isArray) {
return false;
}
return abstract_1.Type.isTypeListSimiliar(type.types, this.types);

@@ -27,0 +35,0 @@ };

@@ -1,2 +0,2 @@

import { Type } from "./abstract";
import { Type } from './abstract';
export declare class UnknownType extends Type {

@@ -3,0 +3,0 @@ name: string;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var abstract_1 = require("./abstract");

@@ -22,4 +28,4 @@ var UnknownType = (function (_super) {

return type instanceof UnknownType &&
type.isArray == this.isArray &&
type.name == this.name;
type.isArray === this.isArray &&
type.name === this.name;
};

@@ -26,0 +32,0 @@ UnknownType.prototype.toObject = function () {

@@ -1,5 +0,5 @@

import { Component, AbstractComponent } from "../utils/component";
import { ProjectReflection, DeclarationReflection } from "../models/reflections/index";
import { Renderer } from "./renderer";
import { RendererEvent, PageEvent } from "./events";
import { Component, AbstractComponent } from '../utils/component';
import { ProjectReflection, DeclarationReflection } from '../models/reflections/index';
import { Renderer } from './renderer';
import { RendererEvent, PageEvent } from './events';
export { Component };

@@ -6,0 +6,0 @@ export declare abstract class RendererComponent extends AbstractComponent<Renderer> {

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var Path = require("path");

@@ -8,0 +14,0 @@ var component_1 = require("../utils/component");

/// <reference types="handlebars" />
import { Event } from "../utils/events";
import { ProjectReflection } from "../models/reflections/project";
import { UrlMapping } from "./models/UrlMapping";
import { NavigationItem } from "./models/NavigationItem";
import { Event } from '../utils/events';
import { ProjectReflection } from '../models/reflections/project';
import { UrlMapping } from './models/UrlMapping';
import { NavigationItem } from './models/NavigationItem';
export declare class RendererEvent extends Event {

@@ -7,0 +7,0 @@ project: ProjectReflection;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var Path = require("path");

@@ -8,0 +14,0 @@ var events_1 = require("../utils/events");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function compact(options) {

@@ -3,0 +4,0 @@ var lines = options.fn(this).split('\n');

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function ifCond(v1, operator, v2, options) {

@@ -3,0 +4,0 @@ switch (operator) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var signature_1 = require("../../models/reflections/signature");

@@ -3,0 +4,0 @@ function ifSignature(obj, arg) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function wbr(options) {
var str = typeof options == 'string' ? options : options.fn(this);
var str = typeof options === 'string' ? options : options.fn(this);
str = str.replace(/([^_\-][_\-])([^_\-])/g, function (m, a, b) { return a + '<wbr>' + b; });

@@ -5,0 +6,0 @@ str = str.replace(/([^A-Z])([A-Z][^A-Z])/g, function (m, a, b) { return a + '<wbr>' + b; });

@@ -1,2 +0,2 @@

import { Reflection } from "../../models/reflections/abstract";
import { Reflection } from '../../models/reflections/abstract';
export declare class NavigationItem {

@@ -3,0 +3,0 @@ title: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var NavigationItem = (function () {

@@ -12,4 +13,5 @@ function NavigationItem(title, url, parent, cssClasses) {

if (this.parent) {
if (!this.parent.children)
if (!this.parent.children) {
this.parent.children = [];
}
this.parent.children.push(this);

@@ -27,4 +29,4 @@ }

name = name.trim();
if (name == '') {
name = '<em>' + reflection.kindString + '</em>';
if (name === '') {
name = "<em>" + reflection.kindString + "</em>";
}

@@ -31,0 +33,0 @@ return new NavigationItem(name, reflection.url, parent, reflection.cssClasses);

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var UrlMapping = (function () {

@@ -3,0 +4,0 @@ function UrlMapping(url, model, template) {

@@ -1,2 +0,2 @@

import { RendererComponent } from "../components";
import { RendererComponent } from '../components';
export declare class AssetsPlugin extends RendererComponent {

@@ -3,0 +3,0 @@ copyDefaultAssets: boolean;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var Path = require("path");

@@ -42,3 +48,3 @@ var FS = require("fs-extra");

var from = Path.join(this.owner.theme.basePath, 'assets');
if (from != fromDefault && FS.existsSync(from)) {
if (from !== fromDefault && FS.existsSync(from)) {
FS.copySync(from, to);

@@ -50,5 +56,5 @@ }

AssetsPlugin = __decorate([
components_1.Component({ name: "assets" })
components_1.Component({ name: 'assets' })
], AssetsPlugin);
exports.AssetsPlugin = AssetsPlugin;
//# sourceMappingURL=AssetsPlugin.js.map

@@ -1,8 +0,8 @@

export { AssetsPlugin } from "./AssetsPlugin";
export { JavascriptIndexPlugin } from "./JavascriptIndexPlugin";
export { LayoutPlugin } from "./LayoutPlugin";
export { MarkedLinksPlugin } from "./MarkedLinksPlugin";
export { MarkedPlugin } from "./MarkedPlugin";
export { NavigationPlugin } from "./NavigationPlugin";
export { PrettyPrintPlugin } from "./PrettyPrintPlugin";
export { TocPlugin } from "./TocPlugin";
export { AssetsPlugin } from './AssetsPlugin';
export { JavascriptIndexPlugin } from './JavascriptIndexPlugin';
export { LayoutPlugin } from './LayoutPlugin';
export { MarkedLinksPlugin } from './MarkedLinksPlugin';
export { MarkedPlugin } from './MarkedPlugin';
export { NavigationPlugin } from './NavigationPlugin';
export { PrettyPrintPlugin } from './PrettyPrintPlugin';
export { TocPlugin } from './TocPlugin';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var AssetsPlugin_1 = require("./AssetsPlugin");

@@ -3,0 +4,0 @@ exports.AssetsPlugin = AssetsPlugin_1.AssetsPlugin;

@@ -1,2 +0,2 @@

import { RendererComponent } from "../components";
import { RendererComponent } from '../components';
export declare class JavascriptIndexPlugin extends RendererComponent {

@@ -3,0 +3,0 @@ initialize(): void;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var Path = require("path");

@@ -33,13 +39,15 @@ var index_1 = require("../../models/reflections/index");

var reflection = event.project.reflections[key];
if (!(reflection instanceof index_1.DeclarationReflection))
if (!(reflection instanceof index_1.DeclarationReflection)) {
continue;
}
if (!reflection.url ||
!reflection.name ||
reflection.flags.isExternal ||
reflection.name == '')
reflection.name === '') {
continue;
var parent = reflection.parent;
if (parent instanceof index_1.ProjectReflection) {
parent = null;
}
var parent_1 = reflection.parent;
if (parent_1 instanceof index_1.ProjectReflection) {
parent_1 = null;
}
var row = {

@@ -52,4 +60,4 @@ id: rows.length,

};
if (parent) {
row.parent = parent.getFullName();
if (parent_1) {
row.parent = parent_1.getFullName();
}

@@ -62,5 +70,3 @@ if (!kinds[reflection.kind]) {

var fileName = Path.join(event.outputDirectory, 'assets', 'js', 'search.js');
var data = 'var typedoc = typedoc || {};' +
'typedoc.search = typedoc.search || {};' +
'typedoc.search.data = ' + JSON.stringify({ kinds: kinds, rows: rows }) + ';';
var data = "var typedoc = typedoc || {};\n typedoc.search = typedoc.search || {};\n typedoc.search.data = " + JSON.stringify({ kinds: kinds, rows: rows }) + ";";
fs_1.writeFile(fileName, data, true);

@@ -71,5 +77,5 @@ };

JavascriptIndexPlugin = __decorate([
components_1.Component({ name: "javascript-index" })
components_1.Component({ name: 'javascript-index' })
], JavascriptIndexPlugin);
exports.JavascriptIndexPlugin = JavascriptIndexPlugin;
//# sourceMappingURL=JavascriptIndexPlugin.js.map

@@ -1,2 +0,2 @@

import { RendererComponent } from "../components";
import { RendererComponent } from '../components';
export declare class LayoutPlugin extends RendererComponent {

@@ -3,0 +3,0 @@ initialize(): void;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var components_1 = require("../components");

@@ -31,5 +37,5 @@ var events_1 = require("../events");

LayoutPlugin = __decorate([
components_1.Component({ name: "layout" })
components_1.Component({ name: 'layout' })
], LayoutPlugin);
exports.LayoutPlugin = LayoutPlugin;
//# sourceMappingURL=LayoutPlugin.js.map

@@ -1,3 +0,3 @@

import { ContextAwareRendererComponent } from "../components";
import { MarkdownEvent, RendererEvent } from "../events";
import { ContextAwareRendererComponent } from '../components';
import { MarkdownEvent, RendererEvent } from '../events';
export declare class MarkedLinksPlugin extends ContextAwareRendererComponent {

@@ -4,0 +4,0 @@ private brackets;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var Util = require("util");

@@ -51,6 +57,8 @@ var components_1 = require("../components");

var monospace;
if (tagName == 'linkcode')
if (tagName === 'linkcode') {
monospace = true;
if (tagName == 'linkplain')
}
if (tagName === 'linkplain') {
monospace = false;
}
return _this.buildLink(match, target, caption, monospace);

@@ -65,3 +73,3 @@ });

else {
var reflection;
var reflection = void 0;
if (this.reflection) {

@@ -129,3 +137,3 @@ reflection = this.reflection.findReflectionByName(target);

MarkedLinksPlugin = MarkedLinksPlugin_1 = __decorate([
components_1.Component({ name: "marked-links" })
components_1.Component({ name: 'marked-links' })
], MarkedLinksPlugin);

@@ -132,0 +140,0 @@ exports.MarkedLinksPlugin = MarkedLinksPlugin;

@@ -1,3 +0,3 @@

import { ContextAwareRendererComponent } from "../components";
import { RendererEvent, MarkdownEvent } from "../events";
import { ContextAwareRendererComponent } from '../components';
import { RendererEvent, MarkdownEvent } from '../events';
export declare class MarkedPlugin extends ContextAwareRendererComponent {

@@ -4,0 +4,0 @@ includeSource: string;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var FS = require("fs-extra");

@@ -63,3 +69,3 @@ var Path = require("path");

var contents = FS.readFileSync(path, 'utf-8');
if (path.substr(-4).toLocaleLowerCase() == '.hbs') {
if (path.substr(-4).toLocaleLowerCase() === '.hbs') {
var template = Handlebars.compile(contents);

@@ -137,5 +143,5 @@ return template(context);

MarkedPlugin = __decorate([
components_1.Component({ name: "marked" })
components_1.Component({ name: 'marked' })
], MarkedPlugin);
exports.MarkedPlugin = MarkedPlugin;
//# sourceMappingURL=MarkedPlugin.js.map

@@ -1,3 +0,3 @@

import { RendererComponent } from "../components";
import { NavigationItem } from "../models/NavigationItem";
import { RendererComponent } from '../components';
import { NavigationItem } from '../models/NavigationItem';
export declare class NavigationPlugin extends RendererComponent {

@@ -4,0 +4,0 @@ navigation: NavigationItem;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var components_1 = require("../components");

@@ -37,3 +43,3 @@ var events_1 = require("../events");

item.isVisible = item.isGlobals;
if (item.url == page.url || (item.dedicatedUrls && item.dedicatedUrls.indexOf(page.url) != -1)) {
if (item.url === page.url || (item.dedicatedUrls && item.dedicatedUrls.indexOf(page.url) !== -1)) {
currentItems.push(item);

@@ -70,5 +76,5 @@ }

NavigationPlugin = __decorate([
components_1.Component({ name: "navigation" })
components_1.Component({ name: 'navigation' })
], NavigationPlugin);
exports.NavigationPlugin = NavigationPlugin;
//# sourceMappingURL=NavigationPlugin.js.map

@@ -1,3 +0,3 @@

import { RendererComponent } from "../components";
import { PageEvent } from "../events";
import { RendererComponent } from '../components';
import { PageEvent } from '../events';
export declare class PrettyPrintPlugin extends RendererComponent {

@@ -4,0 +4,0 @@ static IGNORED_TAGS: any;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var components_1 = require("../components");

@@ -48,3 +54,3 @@ var events_1 = require("../events");

if (emptyLineExp.test(line)) {
if (state == PrettyPrintState.Default) {
if (state === PrettyPrintState.Default) {
lines.splice(index, 1);

@@ -59,9 +65,9 @@ count -= 1;

while (match = tagExp.exec(line)) {
if (state == PrettyPrintState.Comment) {
if (match[0] == '-->') {
if (state === PrettyPrintState.Comment) {
if (match[0] === '-->') {
state = PrettyPrintState.Default;
}
}
else if (state == PrettyPrintState.Pre) {
if (match[2] && match[2].toLowerCase() == preName) {
else if (state === PrettyPrintState.Pre) {
if (match[2] && match[2].toLowerCase() === preName) {
state = PrettyPrintState.Default;

@@ -71,3 +77,3 @@ }

else {
if (match[0] == '<!--') {
if (match[0] === '<!--') {
state = PrettyPrintState.Comment;

@@ -77,4 +83,5 @@ }

tagName = match[1].toLowerCase();
if (tagName in PrettyPrintPlugin_1.IGNORED_TAGS)
if (tagName in PrettyPrintPlugin_1.IGNORED_TAGS) {
continue;
}
if (tagName in PrettyPrintPlugin_1.PRE_TAGS) {

@@ -85,4 +92,5 @@ state = PrettyPrintState.Pre;

else {
if (tagName == 'body')
if (tagName === 'body') {
minLineDepth = 2;
}
stack.push(tagName);

@@ -93,6 +101,7 @@ }

tagName = match[2].toLowerCase();
if (tagName in PrettyPrintPlugin_1.IGNORED_TAGS)
if (tagName in PrettyPrintPlugin_1.IGNORED_TAGS) {
continue;
}
var n = stack.lastIndexOf(tagName);
if (n != -1) {
if (n !== -1) {
stack.length = n;

@@ -103,3 +112,3 @@ }

}
if (lineState == PrettyPrintState.Default) {
if (lineState === PrettyPrintState.Default) {
lineDepth = Math.min(lineDepth, stack.length);

@@ -143,3 +152,3 @@ line = line.replace(/^\s+/, '').replace(/\s+$/, '');

PrettyPrintPlugin = PrettyPrintPlugin_1 = __decorate([
components_1.Component({ name: "pretty-print" })
components_1.Component({ name: 'pretty-print' })
], PrettyPrintPlugin);

@@ -146,0 +155,0 @@ exports.PrettyPrintPlugin = PrettyPrintPlugin;

@@ -1,4 +0,4 @@

import { Reflection } from "../../models/reflections/index";
import { RendererComponent } from "../components";
import { NavigationItem } from "../models/NavigationItem";
import { Reflection } from '../../models/reflections/index';
import { RendererComponent } from '../components';
import { NavigationItem } from '../models/NavigationItem';
export declare class TocPlugin extends RendererComponent {

@@ -5,0 +5,0 @@ initialize(): void;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var index_1 = require("../../models/reflections/index");

@@ -55,4 +61,5 @@ var components_1 = require("../components");

children.forEach(function (child) {
if (restriction && restriction.length > 0 && restriction.indexOf(child.name) === -1)
if (restriction && restriction.length > 0 && restriction.indexOf(child.name) === -1) {
return;
}
if (child.kindOf(index_1.ReflectionKind.SomeModule)) {

@@ -62,5 +69,5 @@ return;

var item = NavigationItem_1.NavigationItem.create(child, parent, true);
if (trail.indexOf(child) != -1) {
if (trail.indexOf(child) !== -1) {
item.isInPath = true;
item.isCurrent = (trail[trail.length - 1] == child);
item.isCurrent = (trail[trail.length - 1] === child);
TocPlugin_1.buildToc(child, trail, item);

@@ -74,3 +81,3 @@ }

TocPlugin = TocPlugin_1 = __decorate([
components_1.Component({ name: "toc" })
components_1.Component({ name: 'toc' })
], TocPlugin);

@@ -77,0 +84,0 @@ exports.TocPlugin = TocPlugin;

@@ -1,6 +0,6 @@

import { Application } from "../application";
import { Theme } from "./theme";
import { ProjectReflection } from "../models/reflections/project";
import { RendererComponent } from "./components";
import { ChildableComponent } from "../utils/component";
import { Application } from '../application';
import { Theme } from './theme';
import { ProjectReflection } from '../models/reflections/project';
import { RendererComponent } from './components';
import { ChildableComponent } from '../utils/component';
export declare class Renderer extends ChildableComponent<Application, RendererComponent> {

@@ -23,2 +23,2 @@ theme: Theme;

}
import "./plugins";
import './plugins';
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,5 +18,6 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var Path = require("path");
var FS = require("fs-extra");
var ProgressBar = require("progress");
var ProgressBar = require('progress');
var events_1 = require("./events");

@@ -84,3 +90,3 @@ var fs_1 = require("../utils/fs");

}
this.theme = this.addComponent("theme", new DefaultTheme_1.DefaultTheme(this, path));
this.theme = this.addComponent('theme', new DefaultTheme_1.DefaultTheme(this, path));
}

@@ -99,3 +105,3 @@ this.theme.resources.activate();

}
if (FS.readdirSync(directory).length == 0) {
if (FS.readdirSync(directory).length === 0) {
return true;

@@ -184,3 +190,3 @@ }

Renderer = Renderer_1 = __decorate([
component_1.Component({ name: "renderer", internal: true, childClass: components_1.RendererComponent })
component_1.Component({ name: 'renderer', internal: true, childClass: components_1.RendererComponent })
], Renderer);

@@ -187,0 +193,0 @@ exports.Renderer = Renderer;

@@ -1,7 +0,7 @@

import { Renderer } from "./renderer";
import { ProjectReflection } from "../models/reflections/project";
import { UrlMapping } from "./models/UrlMapping";
import { NavigationItem } from "./models/NavigationItem";
import { RendererComponent } from "./components";
import { Resources } from "./utils/resources";
import { Renderer } from './renderer';
import { ProjectReflection } from '../models/reflections/project';
import { UrlMapping } from './models/UrlMapping';
import { NavigationItem } from './models/NavigationItem';
import { RendererComponent } from './components';
import { Resources } from './utils/resources';
export declare class Theme extends RendererComponent {

@@ -8,0 +8,0 @@ basePath: string;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var components_1 = require("./components");

@@ -37,5 +43,5 @@ var component_1 = require("../utils/component");

Theme = __decorate([
component_1.Component({ name: "theme", internal: true })
component_1.Component({ name: 'theme', internal: true })
], Theme);
exports.Theme = Theme;
//# sourceMappingURL=theme.js.map

@@ -1,8 +0,8 @@

import { Theme } from "../theme";
import { Renderer } from "../renderer";
import { Reflection, ReflectionKind, ProjectReflection, ContainerReflection, DeclarationReflection } from "../../models/reflections/index";
import { ReflectionGroup } from "../../models/ReflectionGroup";
import { UrlMapping } from "../models/UrlMapping";
import { NavigationItem } from "../models/NavigationItem";
export interface ITemplateMapping {
import { Theme } from '../theme';
import { Renderer } from '../renderer';
import { Reflection, ReflectionKind, ProjectReflection, ContainerReflection, DeclarationReflection } from '../../models/reflections/index';
import { ReflectionGroup } from '../../models/ReflectionGroup';
import { UrlMapping } from '../models/UrlMapping';
import { NavigationItem } from '../models/NavigationItem';
export interface TemplateMapping {
kind: ReflectionKind[];

@@ -14,3 +14,3 @@ isLeaf: boolean;

export declare class DefaultTheme extends Theme {
static MAPPINGS: ITemplateMapping[];
static MAPPINGS: TemplateMapping[];
constructor(renderer: Renderer, basePath: string);

@@ -23,3 +23,3 @@ isOutputDirectory(path: string): boolean;

static getUrl(reflection: Reflection, relative?: Reflection, separator?: string): string;
static getMapping(reflection: DeclarationReflection): ITemplateMapping;
static getMapping(reflection: DeclarationReflection): TemplateMapping;
static buildUrls(reflection: DeclarationReflection, urls: UrlMapping[]): UrlMapping[];

@@ -26,0 +26,0 @@ static applyAnchorUrl(reflection: Reflection, container: Reflection): void;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var Path = require("path");

@@ -22,10 +28,14 @@ var FS = require("fs");

DefaultTheme.prototype.isOutputDirectory = function (path) {
if (!FS.existsSync(Path.join(path, 'index.html')))
if (!FS.existsSync(Path.join(path, 'index.html'))) {
return false;
if (!FS.existsSync(Path.join(path, 'assets')))
}
if (!FS.existsSync(Path.join(path, 'assets'))) {
return false;
if (!FS.existsSync(Path.join(path, 'assets', 'js', 'main.js')))
}
if (!FS.existsSync(Path.join(path, 'assets', 'js', 'main.js'))) {
return false;
if (!FS.existsSync(Path.join(path, 'assets', 'images', 'icons.png')))
}
if (!FS.existsSync(Path.join(path, 'assets', 'images', 'icons.png'))) {
return false;
}
return true;

@@ -36,3 +46,3 @@ };

var entryPoint = this.getEntryPoint(project);
if (this.application.options.getValue('readme') == 'none') {
if (this.application.options.getValue('readme') === 'none') {
entryPoint.url = 'index.html';

@@ -75,5 +85,6 @@ urls.push(new UrlMapping_1.UrlMapping('index.html', entryPoint, 'reflection.hbs'));

function containsExternals(modules) {
for (var index = 0, length = modules.length; index < length; index++) {
if (modules[index].flags.isExternal)
for (var index = 0, length_1 = modules.length; index < length_1; index++) {
if (modules[index].flags.isExternal) {
return true;
}
}

@@ -84,6 +95,8 @@ return false;

modules.sort(function (a, b) {
if (a.flags.isExternal && !b.flags.isExternal)
if (a.flags.isExternal && !b.flags.isExternal) {
return 1;
if (!a.flags.isExternal && b.flags.isExternal)
}
if (!a.flags.isExternal && b.flags.isExternal) {
return -1;
}
return a.getFullName() < b.getFullName() ? -1 : 1;

@@ -97,4 +110,5 @@ });

if (child.hasOwnDocument && !child.kindOf(index_1.ReflectionKind.SomeModule)) {
if (!item.dedicatedUrls)
if (!item.dedicatedUrls) {
item.dedicatedUrls = [];
}
item.dedicatedUrls.push(child.url);

@@ -122,8 +136,8 @@ walk(child);

reflections.forEach(function (reflection) {
if (hasExternals && !reflection.flags.isExternal && state != 1) {
new NavigationItem_1.NavigationItem('Internals', null, parent, "tsd-is-external");
if (hasExternals && !reflection.flags.isExternal && state !== 1) {
new NavigationItem_1.NavigationItem('Internals', null, parent, 'tsd-is-external');
state = 1;
}
else if (hasExternals && reflection.flags.isExternal && state != 2) {
new NavigationItem_1.NavigationItem('Externals', null, parent, "tsd-is-external");
else if (hasExternals && reflection.flags.isExternal && state !== 2) {
new NavigationItem_1.NavigationItem('Externals', null, parent, 'tsd-is-external');
state = 2;

@@ -133,4 +147,5 @@ }

includeDedicatedUrls(reflection, item);
if (callback)
if (callback) {
callback(reflection, item);
}
});

@@ -140,3 +155,3 @@ }

var root = new NavigationItem_1.NavigationItem('Index', 'index.html');
if (entryPoint == project) {
if (entryPoint === project) {
var globals = new NavigationItem_1.NavigationItem('Globals', hasSeparateGlobals ? 'globals.html' : 'index.html', root);

@@ -148,8 +163,10 @@ globals.isGlobals = true;

var target = someModule.parent;
var inScope = (someModule == entryPoint);
var inScope = (someModule === entryPoint);
while (target) {
if (target.kindOf(index_1.ReflectionKind.ExternalModule))
if (target.kindOf(index_1.ReflectionKind.ExternalModule)) {
return;
if (entryPoint == target)
}
if (entryPoint === target) {
inScope = true;
}
target = target.parent;

@@ -170,3 +187,3 @@ }

var entryPoint = this.getEntryPoint(project);
return build(this.application.options.getValue('readme') != 'none');
return build(this.application.options.getValue('readme') !== 'none');
};

@@ -190,5 +207,6 @@ DefaultTheme.prototype.onRendererBegin = function (event) {

var url = reflection.getAlias();
if (reflection.parent && reflection.parent != relative &&
!(reflection.parent instanceof index_1.ProjectReflection))
if (reflection.parent && reflection.parent !== relative &&
!(reflection.parent instanceof index_1.ProjectReflection)) {
url = DefaultTheme.getUrl(reflection.parent, relative, separator) + separator + url;
}
return url;

@@ -243,3 +261,4 @@ };

var classes = [];
if (reflection.kind == index_1.ReflectionKind.Accessor) {
var kind;
if (reflection.kind === index_1.ReflectionKind.Accessor) {
if (!reflection.getSignature) {

@@ -256,3 +275,3 @@ classes.push('tsd-kind-set-signature');

else {
var kind = index_1.ReflectionKind[reflection.kind];
kind = index_1.ReflectionKind[reflection.kind];
classes.push(DefaultTheme.toStyleClass('tsd-kind-' + kind));

@@ -262,3 +281,3 @@ }

kind = index_1.ReflectionKind[reflection.parent.kind];
classes.push(DefaultTheme.toStyleClass('tsd-parent-kind-' + kind));
classes.push(DefaultTheme.toStyleClass("tsd-parent-kind-" + kind));
}

@@ -269,18 +288,26 @@ var hasTypeParameters = !!reflection.typeParameters;

});
if (hasTypeParameters)
if (hasTypeParameters) {
classes.push('tsd-has-type-parameter');
if (reflection.overwrites)
}
if (reflection.overwrites) {
classes.push('tsd-is-overwrite');
if (reflection.inheritedFrom)
}
if (reflection.inheritedFrom) {
classes.push('tsd-is-inherited');
if (reflection.flags.isPrivate)
}
if (reflection.flags.isPrivate) {
classes.push('tsd-is-private');
if (reflection.flags.isProtected)
}
if (reflection.flags.isProtected) {
classes.push('tsd-is-protected');
if (reflection.flags.isStatic)
}
if (reflection.flags.isStatic) {
classes.push('tsd-is-static');
if (reflection.flags.isExternal)
}
if (reflection.flags.isExternal) {
classes.push('tsd-is-external');
if (!reflection.flags.isExported)
}
if (!reflection.flags.isExported) {
classes.push('tsd-is-not-exported');
}
reflection.cssClasses = classes.join(' ');

@@ -290,12 +317,17 @@ };

var classes = [];
if (group.allChildrenAreInherited)
if (group.allChildrenAreInherited) {
classes.push('tsd-is-inherited');
if (group.allChildrenArePrivate)
}
if (group.allChildrenArePrivate) {
classes.push('tsd-is-private');
if (group.allChildrenAreProtectedOrPrivate)
}
if (group.allChildrenAreProtectedOrPrivate) {
classes.push('tsd-is-private-protected');
if (group.allChildrenAreExternal)
}
if (group.allChildrenAreExternal) {
classes.push('tsd-is-external');
if (!group.someChildrenAreExported)
}
if (!group.someChildrenAreExported) {
classes.push('tsd-is-not-exported');
}
group.cssClasses = classes.join(' ');

@@ -302,0 +334,0 @@ };

@@ -1,6 +0,6 @@

import { DefaultTheme } from "./DefaultTheme";
import { Renderer } from "../renderer";
import { UrlMapping } from "../models/UrlMapping";
import { DeclarationReflection, ProjectReflection } from "../../models/reflections/index";
import { NavigationItem } from "../models/NavigationItem";
import { DefaultTheme } from './DefaultTheme';
import { Renderer } from '../renderer';
import { UrlMapping } from '../models/UrlMapping';
import { DeclarationReflection, ProjectReflection } from '../../models/reflections/index';
import { NavigationItem } from '../models/NavigationItem';
export declare class MinimalTheme extends DefaultTheme {

@@ -7,0 +7,0 @@ constructor(renderer: Renderer, basePath: string);

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var FS = require("fs");

@@ -26,4 +32,5 @@ var Path = require("path");

MinimalTheme.prototype.isOutputDirectory = function (path) {
if (!FS.existsSync(Path.join(path, 'index.html')))
if (!FS.existsSync(Path.join(path, 'index.html'))) {
return false;
}
return true;

@@ -30,0 +37,0 @@ };

@@ -1,4 +0,4 @@

import { Theme } from "../theme";
import { HelperStack } from "./resources/helpers";
import { TemplateStack, PartialStack } from "./resources/templates";
import { Theme } from '../theme';
import { HelperStack } from './resources/helpers';
import { TemplateStack, PartialStack } from './resources/templates';
export declare class Resources {

@@ -5,0 +5,0 @@ templates: TemplateStack;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var FS = require("fs");

@@ -19,4 +20,5 @@ var Path = require("path");

Resources.prototype.activate = function () {
if (this.isActive)
if (this.isActive) {
return false;
}
this.isActive = true;

@@ -28,4 +30,5 @@ this.partials.activate();

Resources.prototype.deactivate = function () {
if (!this.isActive)
if (!this.isActive) {
return false;
}
this.isActive = false;

@@ -41,10 +44,10 @@ this.partials.deactivate();

if (this.isActive) {
throw new Error("Cannot add directories while the resource is active.");
throw new Error('Cannot add directories while the resource is active.');
}
path = Path.resolve(path);
if (!FS.existsSync(path)) {
throw new Error(Util.format("The theme path `%s` does not exist.", path));
throw new Error(Util.format('The theme path `%s` does not exist.', path));
}
if (!FS.statSync(path).isDirectory()) {
throw new Error(Util.format("The theme path `%s` is not a directory.", path));
throw new Error(Util.format('The theme path `%s` is not a directory.', path));
}

@@ -58,3 +61,3 @@ this.templates.addOrigin(name, Path.join(path, 'templates'), true);

if (this.isActive) {
throw new Error("Cannot remove directories while the resource is active.");
throw new Error('Cannot remove directories while the resource is active.');
}

@@ -68,3 +71,3 @@ this.templates.removeOrigin(name);

if (this.isActive) {
throw new Error("Cannot remove directories while the resource is active.");
throw new Error('Cannot remove directories while the resource is active.');
}

@@ -71,0 +74,0 @@ this.templates.removeAllOrigins();

@@ -1,2 +0,2 @@

import { ResourceStack, Resource } from "./stack";
import { ResourceStack, Resource } from './stack';
export declare class Helper extends Resource {

@@ -3,0 +3,0 @@ private helpers;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var Path = require("path");

@@ -42,12 +48,14 @@ var Handlebars = require("handlebars");

HelperStack.prototype.activate = function () {
if (!_super.prototype.activate.call(this))
if (!_super.prototype.activate.call(this)) {
return false;
}
var resources = this.getAllResources();
for (var resourceName in resources) {
var helpers = resources[resourceName].getHelpers();
for (var name in helpers) {
if (this.registeredNames.indexOf(name) !== -1)
for (var name_1 in helpers) {
if (this.registeredNames.indexOf(name_1) !== -1) {
continue;
this.registeredNames.push(name);
Handlebars.registerHelper(name, helpers[name]);
}
this.registeredNames.push(name_1);
Handlebars.registerHelper(name_1, helpers[name_1]);
}

@@ -58,7 +66,8 @@ }

HelperStack.prototype.deactivate = function () {
if (!_super.prototype.activate.call(this))
if (!_super.prototype.activate.call(this)) {
return false;
}
for (var _i = 0, _a = this.registeredNames; _i < _a.length; _i++) {
var name = _a[_i];
Handlebars.unregisterHelper(name);
var name_2 = _a[_i];
Handlebars.unregisterHelper(name_2);
}

@@ -65,0 +74,0 @@ this.registeredNames = [];

@@ -1,5 +0,5 @@

export interface IResourceClass<T extends Resource> extends Function {
export interface ResourceClass<T extends Resource> extends Function {
new (origin: ResourceOrigin<T>, name: string, fileName: string): T;
}
export interface IResourceMap<T extends Resource> {
export interface ResourceMap<T extends Resource> {
[name: string]: T;

@@ -20,3 +20,3 @@ }

constructor(stack: ResourceStack<T>, name: string, path: string);
mergeResources(target: IResourceMap<T>): void;
mergeResources(target: ResourceMap<T>): void;
hasResource(name: string): boolean;

@@ -32,8 +32,8 @@ getResource(name: string): T;

private origins;
constructor(ressourceClass: IResourceClass<T>, ressourceRegExp?: RegExp);
constructor(ressourceClass: ResourceClass<T>, ressourceRegExp?: RegExp);
activate(): boolean;
deactivate(): boolean;
getResource(name: string): T;
getAllResources(): IResourceMap<T>;
getResourceClass(): IResourceClass<T>;
getAllResources(): ResourceMap<T>;
getResourceClass(): ResourceClass<T>;
getRessourceRegExp(): RegExp;

@@ -40,0 +40,0 @@ getOrigin(name: string): ResourceOrigin<T>;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var FS = require("fs");

@@ -30,6 +31,7 @@ var Path = require("path");

var resources = this.resources;
for (var name in resources) {
if (name in target)
for (var name_1 in resources) {
if (name_1 in target) {
continue;
target[name] = resources[name];
}
target[name_1] = resources[name_1];
}

@@ -55,4 +57,5 @@ };

var path = this.path;
if (dir)
if (dir) {
path = Path.join(path, dir);
}
for (var _i = 0, _a = FS.readdirSync(path); _i < _a.length; _i++) {

@@ -65,4 +68,4 @@ var fileName = _a[_i];

else if (ressourceRegExp.test(fileName)) {
var name = normalizeName(dir ? Path.join(dir, fileName) : fileName);
this.resources[name] = new resourceClass(this, name, fullName);
var name_2 = normalizeName(dir ? Path.join(dir, fileName) : fileName);
this.resources[name_2] = new resourceClass(this, name_2, fullName);
}

@@ -81,4 +84,5 @@ }

ResourceStack.prototype.activate = function () {
if (this.isActive)
if (this.isActive) {
return false;
}
this.isActive = true;

@@ -88,4 +92,5 @@ return true;

ResourceStack.prototype.deactivate = function () {
if (!this.isActive)
if (!this.isActive) {
return false;
}
this.isActive = false;

@@ -103,3 +108,3 @@ return true;

}
throw new Error(Util.format("Cannot find resource `%s`.", name));
throw new Error(Util.format('Cannot find resource `%s`.', name));
};

@@ -123,3 +128,3 @@ ResourceStack.prototype.getAllResources = function () {

var origin = _a[_i];
if (origin.getName() == name) {
if (origin.getName() === name) {
return origin;

@@ -135,6 +140,6 @@ }

if (this.isActive) {
throw new Error("Cannot add origins while the resource is active.");
throw new Error('Cannot add origins while the resource is active.');
}
if (this.hasOrigin(name)) {
throw new Error(Util.format("The origin `%s` is already registered.", name));
throw new Error(Util.format('The origin `%s` is already registered.', name));
}

@@ -144,3 +149,3 @@ path = Path.resolve(path);

if (!ignoreErrors) {
throw new Error(Util.format("The resource path `%s` does not exist.", path));
throw new Error(Util.format('The resource path `%s` does not exist.', path));
}

@@ -151,3 +156,3 @@ return;

if (!ignoreErrors) {
throw new Error(Util.format("The resource path `%s` is not a directory.", path));
throw new Error(Util.format('The resource path `%s` is not a directory.', path));
}

@@ -160,3 +165,3 @@ return;

if (this.isActive) {
throw new Error("Cannot remove origins while the resource is active.");
throw new Error('Cannot remove origins while the resource is active.');
}

@@ -177,3 +182,3 @@ var index = 0, count = this.origins.length;

if (this.isActive) {
throw new Error("Cannot remove origins while the resource is active.");
throw new Error('Cannot remove origins while the resource is active.');
}

@@ -180,0 +185,0 @@ this.origins = [];

/// <reference types="handlebars" />
import { ResourceStack, Resource } from "./stack";
import { ResourceStack, Resource } from './stack';
export declare class Template extends Resource {

@@ -4,0 +4,0 @@ private template;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var Handlebars = require("handlebars");

@@ -47,12 +53,14 @@ var fs_1 = require("../../../utils/fs");

PartialStack.prototype.activate = function () {
if (!_super.prototype.activate.call(this))
if (!_super.prototype.activate.call(this)) {
return false;
}
var resources = this.getAllResources();
for (var name in resources) {
if (this.registeredNames.indexOf(name) !== -1)
for (var name_1 in resources) {
if (this.registeredNames.indexOf(name_1) !== -1) {
continue;
this.registeredNames.push(name);
var partial = resources[name];
}
this.registeredNames.push(name_1);
var partial = resources[name_1];
var template = partial.getTemplate();
Handlebars.registerPartial(name, template);
Handlebars.registerPartial(name_1, template);
}

@@ -62,7 +70,8 @@ return true;

PartialStack.prototype.deactivate = function () {
if (!_super.prototype.deactivate.call(this))
if (!_super.prototype.deactivate.call(this)) {
return false;
}
for (var _i = 0, _a = this.registeredNames; _i < _a.length; _i++) {
var name = _a[_i];
Handlebars.unregisterPartial(name);
var name_2 = _a[_i];
Handlebars.unregisterPartial(name_2);
}

@@ -69,0 +78,0 @@ this.registeredNames = [];

@@ -1,3 +0,3 @@

import * as ts from "typescript";
declare module "typescript" {
import * as ts from 'typescript';
declare module 'typescript' {
interface Symbol {

@@ -4,0 +4,0 @@ id?: number;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -3,0 +4,0 @@ var tsany = ts;

@@ -1,13 +0,13 @@

import { Application } from "../application";
import { EventDispatcher, Event, IEventMap } from "./events";
import { IOptionDeclaration } from "./options/declaration";
export interface IComponentHost {
import { Application } from '../application';
import { EventDispatcher, Event, EventMap } from './events';
import { DeclarationOption } from './options/declaration';
export interface ComponentHost {
application: Application;
}
export interface IComponent extends AbstractComponent<IComponentHost> {
export interface Component extends AbstractComponent<ComponentHost> {
}
export interface IComponentClass<T extends IComponent> extends Function {
new (owner: IComponentHost): T;
export interface ComponentClass<T extends Component> extends Function {
new (owner: ComponentHost): T;
}
export interface IComponentOptions {
export interface ComponentOptions {
name?: string;

@@ -17,12 +17,12 @@ childClass?: Function;

}
export declare function Component(options: IComponentOptions): ClassDecorator;
export declare function Option(options: IOptionDeclaration): PropertyDecorator;
export declare function Component(options: ComponentOptions): ClassDecorator;
export declare function Option(options: DeclarationOption): PropertyDecorator;
export declare class ComponentEvent extends Event {
owner: IComponentHost;
component: AbstractComponent<IComponentHost>;
owner: ComponentHost;
component: AbstractComponent<ComponentHost>;
static ADDED: string;
static REMOVED: string;
constructor(name: string, owner: IComponentHost, component: AbstractComponent<IComponentHost>);
constructor(name: string, owner: ComponentHost, component: AbstractComponent<ComponentHost>);
}
export declare abstract class AbstractComponent<O extends IComponentHost> extends EventDispatcher implements IComponentHost {
export declare abstract class AbstractComponent<O extends ComponentHost> extends EventDispatcher implements ComponentHost {
private _componentOwner;

@@ -33,8 +33,8 @@ componentName: string;

protected initialize(): void;
protected bubble(name: Event | IEventMap | string, ...args: any[]): this;
getOptionDeclarations(): IOptionDeclaration[];
protected bubble(name: Event | EventMap | string, ...args: any[]): this;
getOptionDeclarations(): DeclarationOption[];
readonly application: Application;
readonly owner: O;
}
export declare abstract class ChildableComponent<O extends IComponentHost, C extends IComponent> extends AbstractComponent<O> {
export declare abstract class ChildableComponent<O extends ComponentHost, C extends Component> extends AbstractComponent<O> {
private _componentChildren;

@@ -46,5 +46,5 @@ private _defaultComponents;

hasComponent(name: string): boolean;
addComponent<T extends C & IComponent>(name: string, componentClass: T | IComponentClass<T>): T;
addComponent<T extends C & Component>(name: string, componentClass: T | ComponentClass<T>): T;
removeComponent(name: string): C;
removeAllComponents(): void;
}
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var _ = require("lodash");

@@ -33,4 +39,5 @@ var events_1 = require("./events");

var childMapping = childMappings_1[_i];
if (!(proto instanceof childMapping.child))
if (!(proto instanceof childMapping.child)) {
continue;
}
var host = childMapping.host;

@@ -126,4 +133,4 @@ var defaults = host._defaultComponents || (host._defaultComponents = {});

var _this = _super.call(this, owner) || this;
for (var name in _this._defaultComponents) {
_this.addComponent(name, _this._defaultComponents[name]);
for (var name_1 in _this._defaultComponents) {
_this.addComponent(name_1, _this._defaultComponents[name_1]);
}

@@ -154,5 +161,5 @@ return _this;

else {
var component = typeof componentClass == "function" ? new componentClass(this) : componentClass;
var event = new ComponentEvent(ComponentEvent.ADDED, this, component);
this.bubble(event);
var component = typeof componentClass === 'function' ? new componentClass(this) : componentClass;
var event_1 = new ComponentEvent(ComponentEvent.ADDED, this, component);
this.bubble(event_1);
this._componentChildren[name] = component;

@@ -163,4 +170,5 @@ return component;

ChildableComponent.prototype.removeComponent = function (name) {
if (!this._componentChildren)
if (!this._componentChildren) {
return null;
}
var component = this._componentChildren[name];

@@ -178,7 +186,8 @@ if (component) {

ChildableComponent.prototype.removeAllComponents = function () {
if (!this._componentChildren)
if (!this._componentChildren) {
return;
for (var name in this._componentChildren) {
this._componentChildren[name].stopListening();
}
for (var name_2 in this._componentChildren) {
this._componentChildren[name_2].stopListening();
}
this._componentChildren = {};

@@ -185,0 +194,0 @@ };

@@ -1,6 +0,6 @@

export interface IEventCallback extends Function {
export interface EventCallback extends Function {
_callback?: Function;
}
export interface IEventMap {
[name: string]: IEventCallback;
export interface EventMap {
[name: string]: EventCallback;
}

@@ -23,10 +23,16 @@ export declare class Event {

private _listenId;
on(name: IEventMap | string, callback: IEventCallback, context?: any, priority?: number): this;
on(eventMap: EventMap, context?: any): any;
on(eventMap: EventMap, callback?: EventCallback, context?: any, priority?: number): any;
on(name: string, callback: EventCallback, context?: any, priority?: number): any;
private internalOn(name, callback, context?, priority?, listening?);
once(name: IEventMap | string, callback: IEventCallback, context?: any, priority?: number): this;
off(name: IEventMap | string, callback: IEventCallback, context?: any): this;
listenTo(obj: EventDispatcher, name: IEventMap | string, callback?: IEventCallback, priority?: number): this;
listenToOnce(obj: EventDispatcher, name: IEventMap | string, callback: IEventCallback, priority?: number): this;
stopListening(obj?: EventDispatcher, name?: IEventMap | string, callback?: IEventCallback): this;
trigger(name: Event | IEventMap | string, ...args: any[]): this;
once(eventMap: EventMap, context?: any): any;
once(name: string, callback: EventCallback, context?: any, priority?: any): any;
off(): any;
off(eventMap: EventMap, context?: any): any;
off(name: string, callback?: EventCallback, context?: any): any;
listenTo(obj: EventDispatcher, name: EventMap | string, callback?: EventCallback, priority?: number): this;
listenToOnce(obj: EventDispatcher, eventMap: EventMap): any;
listenToOnce(obj: EventDispatcher, name: string, callback: EventCallback, priority?: number): any;
stopListening(obj?: EventDispatcher, name?: EventMap | string, callback?: EventCallback): this;
trigger(name: Event | EventMap | string, ...args: any[]): this;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var _ = require("lodash");

@@ -27,9 +28,10 @@ var eventSplitter = /\s+/;

var handlers = events[name] || (events[name] = []);
var context = options.context, ctx = options.ctx, listening = options.listening, priority = options.priority;
if (listening)
var context_1 = options.context, ctx = options.ctx, listening = options.listening, priority = options.priority;
if (listening) {
listening.count++;
}
handlers.push({
callback: callback,
context: context,
ctx: context || ctx,
context: context_1,
ctx: context_1 || ctx,
listening: listening,

@@ -43,4 +45,5 @@ priority: priority

function offApi(events, name, callback, options) {
if (!events)
if (!events) {
return;
}
var i = 0, listening;

@@ -61,4 +64,5 @@ var context = options.context, listeners = options.listeners;

var handlers = events[name];
if (!handlers)
if (!handlers) {
break;
}
var remaining = [];

@@ -93,7 +97,7 @@ for (var j = 0; j < handlers.length; j++) {

if (callback) {
var once = map[name] = _.once(function () {
offer(name, once);
var once_1 = map[name] = _.once(function () {
offer(name, once_1);
callback.apply(this, arguments);
});
once._callback = callback;
once_1._callback = callback;
}

@@ -107,8 +111,11 @@ return map;

var allEvents = objEvents['all'];
if (events && allEvents)
if (events && allEvents) {
allEvents = allEvents.slice();
if (events)
}
if (events) {
triggerer(events, args);
if (allEvents)
}
if (allEvents) {
triggerer(allEvents, [name].concat(args));
}
}

@@ -121,20 +128,25 @@ return objEvents;

case 0:
while (++i < l)
while (++i < l) {
(ev = events[i]).callback.call(ev.ctx);
}
return;
case 1:
while (++i < l)
while (++i < l) {
(ev = events[i]).callback.call(ev.ctx, a1);
}
return;
case 2:
while (++i < l)
while (++i < l) {
(ev = events[i]).callback.call(ev.ctx, a1, a2);
}
return;
case 3:
while (++i < l)
while (++i < l) {
(ev = events[i]).callback.call(ev.ctx, a1, a2, a3);
}
return;
default:
while (++i < l)
while (++i < l) {
(ev = events[i]).callback.apply(ev.ctx, args);
}
return;

@@ -180,4 +192,4 @@ }

}
EventDispatcher.prototype.on = function (name, callback, context, priority) {
this.internalOn(name, callback, context, priority);
EventDispatcher.prototype.on = function (nameOrMap, callback, context, priority) {
this.internalOn(nameOrMap, callback, context, priority);
return this;

@@ -203,4 +215,5 @@ };

EventDispatcher.prototype.off = function (name, callback, context) {
if (!this._events)
if (!this._events) {
return this;
}
this._events = eventsApi(offApi, this._events, name, callback, {

@@ -213,4 +226,5 @@ context: context,

EventDispatcher.prototype.listenTo = function (obj, name, callback, priority) {
if (!obj)
if (!obj) {
return this;
}
var id = obj._listenId || (obj._listenId = _.uniqueId('l'));

@@ -238,13 +252,16 @@ var listeningTo = this._listeningTo || (this._listeningTo = {});

var listeningTo = this._listeningTo;
if (!listeningTo)
if (!listeningTo) {
return this;
}
var ids = obj ? [obj._listenId] : _.keys(listeningTo);
for (var i = 0; i < ids.length; i++) {
var listening = listeningTo[ids[i]];
if (!listening)
if (!listening) {
break;
}
listening.obj.off(name, callback, this);
}
if (_.isEmpty(listeningTo))
if (_.isEmpty(listeningTo)) {
this._listeningTo = void 0;
}
return this;

@@ -257,4 +274,5 @@ };

}
if (!this._events)
if (!this._events) {
return this;
}
if (name instanceof Event) {

@@ -264,4 +282,5 @@ triggerApi(this._events, name.name, void 0, [name], function (events, args) {

while (++i < l) {
if (name.isPropagationStopped)
if (name.isPropagationStopped) {
return;
}
ev = events[i];

@@ -268,0 +287,0 @@ ev.callback.apply(ev.ctx, args);

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -7,3 +8,3 @@ var _ts = require("../ts-internal");

function normalizePath(path) {
return path.replace(/\\/g, "/");
return path.replace(/\\/g, '/');
}

@@ -36,4 +37,5 @@ exports.normalizePath = normalizePath;

catch (e) {
if (onError)
if (onError) {
onError(e.message);
}
}

@@ -54,3 +56,3 @@ }

}
return buffer.toString("ucs2", 2);
return buffer.toString('ucs2', 2);
}

@@ -60,3 +62,3 @@ break;

if (buffer[1] === 0xFE) {
return buffer.toString("ucs2", 2);
return buffer.toString('ucs2', 2);
}

@@ -66,8 +68,8 @@ break;

if (buffer[1] === 0xBB) {
return buffer.toString("utf8", 3);
return buffer.toString('utf8', 3);
}
}
return buffer.toString("utf8", 0);
return buffer.toString('utf8', 0);
}
exports.readFile = readFile;
//# sourceMappingURL=fs.js.map

@@ -1,5 +0,5 @@

export { Component, Option, AbstractComponent, ChildableComponent } from "./component";
export { Event, EventDispatcher } from "./events";
export { normalizePath, directoryExists, ensureDirectoriesExist, writeFile } from "./fs";
export { Logger, LogLevel, ConsoleLogger, CallbackLogger } from "./loggers";
export { PluginHost } from "./plugins";
export { Component, Option, AbstractComponent, ChildableComponent } from './component';
export { Event, EventDispatcher } from './events';
export { normalizePath, directoryExists, ensureDirectoriesExist, writeFile } from './fs';
export { Logger, LogLevel, ConsoleLogger, CallbackLogger } from './loggers';
export { PluginHost } from './plugins';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var component_1 = require("./component");

@@ -3,0 +4,0 @@ exports.Component = component_1.Component;

@@ -1,2 +0,2 @@

import * as ts from "typescript";
import * as ts from 'typescript';
export declare enum LogLevel {

@@ -3,0 +3,0 @@ Verbose = 0,

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -71,3 +77,3 @@ var Util = require("util");

if (level === void 0) { level = LogLevel.Info; }
if (level == LogLevel.Error) {
if (level === LogLevel.Error) {
this.errorCount += 1;

@@ -113,16 +119,20 @@ }

if (level === void 0) { level = LogLevel.Info; }
if (level == LogLevel.Error) {
if (level === LogLevel.Error) {
this.errorCount += 1;
}
var output = '';
if (level == LogLevel.Error)
if (level === LogLevel.Error) {
output += 'Error: ';
if (level == LogLevel.Warn)
}
if (level === LogLevel.Warn) {
output += 'Warning: ';
}
output += message;
if (newLine || level == LogLevel.Success)
if (newLine || level === LogLevel.Success) {
ts.sys.write(ts.sys.newLine);
}
ts.sys.write(output + ts.sys.newLine);
if (level == LogLevel.Success)
if (level === LogLevel.Success) {
ts.sys.write(ts.sys.newLine);
}
};

@@ -141,3 +151,3 @@ return ConsoleLogger;

if (level === void 0) { level = LogLevel.Info; }
if (level == LogLevel.Error) {
if (level === LogLevel.Error) {
this.errorCount += 1;

@@ -144,0 +154,0 @@ }

@@ -17,3 +17,3 @@ export declare enum ParameterHint {

}
export interface IOptionDeclaration {
export interface DeclarationOption {
name: string;

@@ -40,9 +40,9 @@ component?: string;

scope: ParameterScope;
map: Object;
protected map: Object | Map<string, any> | 'object';
mapError: string;
isArray: boolean;
defaultValue: any;
constructor(data: IOptionDeclaration);
constructor(data: DeclarationOption);
getNames(): string[];
convert(value: any, errorCallback?: Function): any;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ParameterHint;

@@ -39,3 +40,3 @@ (function (ParameterHint) {

case ParameterType.Number:
value = parseInt(value);
value = parseInt(value, 10);
break;

@@ -46,3 +47,3 @@ case ParameterType.Boolean:

case ParameterType.String:
value = value || "";
value = value || '';
break;

@@ -53,13 +54,18 @@ case ParameterType.Array:

}
else if (typeof value === "string") {
value = value.split(",");
else if (typeof value === 'string') {
value = value.split(',');
}
break;
case ParameterType.Map:
if (this.map !== 'object') {
var key = value ? (value + "").toLowerCase() : '';
if (key in this.map) {
value = this.map[key];
var map_1 = this.map;
if (map_1 !== 'object') {
var key = value ? (value + '').toLowerCase() : '';
var values = Object.keys(map_1).map(function (key) { return map_1[key]; });
if (map_1 instanceof Map) {
value = map_1.has(key) ? map_1.get(key) : key;
}
else if (errorCallback) {
else if (key in map_1) {
value = map_1[key];
}
else if (values.indexOf(value) === -1 && errorCallback) {
if (this.mapError) {

@@ -66,0 +72,0 @@ errorCallback(this.mapError);

@@ -1,3 +0,3 @@

import { Options } from "./options";
export interface IParameterHelp {
import { Options } from './options';
export interface ParameterHelp {
names: string[];

@@ -4,0 +4,0 @@ helps: string[];

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -15,18 +16,20 @@ var _ts = require("../../ts-internal");

var parameter = parameters[i];
if (!parameter.help)
if (!parameter.help) {
continue;
var name = " ";
}
var name_1 = ' ';
if (parameter.short) {
name += "-" + parameter.short;
if (typeof parameter.hint != 'undefined') {
name += ' ' + declaration_1.ParameterHint[parameter.hint].toUpperCase();
name_1 += '-' + parameter.short;
if (typeof parameter.hint !== 'undefined') {
name_1 += ' ' + declaration_1.ParameterHint[parameter.hint].toUpperCase();
}
name += ", ";
name_1 += ', ';
}
name += "--" + parameter.name;
if (parameter.hint)
name += ' ' + declaration_1.ParameterHint[parameter.hint].toUpperCase();
names.push(name);
name_1 += '--' + parameter.name;
if (parameter.hint) {
name_1 += ' ' + declaration_1.ParameterHint[parameter.hint].toUpperCase();
}
names.push(name_1);
helps.push(parameter.help);
margin = Math.max(name.length, margin);
margin = Math.max(name_1.length, margin);
}

@@ -56,3 +59,3 @@ return { names: names, helps: helps, margin: margin };

function padding(length) {
return Array(length + 1).join(" ");
return Array(length + 1).join(' ');
}

@@ -59,0 +62,0 @@ }

@@ -1,3 +0,3 @@

export { Options, OptionsReadMode, IOptionsReadResult } from "./options";
import "./readers/index";
import "./sources/index";
export { Options, OptionsReadMode, OptionsReadResult } from './options';
import './readers/index';
import './sources/index';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var options_1 = require("./options");

@@ -3,0 +4,0 @@ exports.Options = options_1.Options;

@@ -1,6 +0,6 @@

import * as ts from "typescript";
import { Event } from "../events";
import { AbstractComponent, ChildableComponent } from "../component";
import { Application } from "../../application";
import { OptionDeclaration, IOptionDeclaration, ParameterScope } from "./declaration";
import * as ts from 'typescript';
import { Event } from '../events';
import { AbstractComponent, ChildableComponent } from '../component';
import { Application } from '../../application';
import { OptionDeclaration, DeclarationOption, ParameterScope } from './declaration';
export declare class OptionsComponent extends AbstractComponent<Options> {

@@ -12,3 +12,3 @@ }

}
export interface IOptionsReadResult {
export interface OptionsReadResult {
hasErrors: boolean;

@@ -31,3 +31,3 @@ inputFiles: string[];

initialize(): void;
read(data?: any, mode?: OptionsReadMode): IOptionsReadResult;
read(data?: any, mode?: OptionsReadMode): OptionsReadResult;
getValue(name: string): any;

@@ -40,6 +40,6 @@ getRawValues(): any;

setValues(obj: Object, prefix?: string, errorCallback?: Function): void;
addDeclaration(declaration: OptionDeclaration | IOptionDeclaration): void;
addDeclarations(declarations: (OptionDeclaration | IOptionDeclaration)[]): void;
addDeclaration(declaration: OptionDeclaration | DeclarationOption): void;
addDeclarations(declarations: (OptionDeclaration | DeclarationOption)[]): void;
removeDeclaration(declaration: OptionDeclaration): void;
removeDeclarationByName(name: string): void;
}
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var _ = require("lodash");

@@ -76,3 +82,3 @@ var Util = require("util");

this.setValues(event.data, '', event.addError.bind(event));
if (mode == OptionsReadMode.Fetch) {
if (mode === OptionsReadMode.Fetch) {
var logger = this.application.logger;

@@ -92,6 +98,6 @@ for (var _i = 0, _a = event.errors; _i < _a.length; _i++) {

if (!declaration) {
throw new Error(Util.format("Unknown option `%s`.", name));
throw new Error(Util.format('Unknown option `%s`.', name));
}
if (declaration.scope == declaration_1.ParameterScope.TypeScript) {
throw new Error("TypeScript options cannot be fetched using `getValue`, use `getCompilerOptions` instead.");
if (declaration.scope === declaration_1.ParameterScope.TypeScript) {
throw new Error('TypeScript options cannot be fetched using `getValue`, use `getCompilerOptions` instead.');
}

@@ -116,5 +122,5 @@ if (name in this.values) {

var result = [];
for (var name in this.declarations) {
var declaration = this.declarations[name];
if (declaration.scope == scope) {
for (var name_1 in this.declarations) {
var declaration = this.declarations[name_1];
if (declaration.scope === scope) {
result.push(declaration);

@@ -131,9 +137,6 @@ }

if (!declaration) {
if (errorCallback) {
errorCallback('Unknown option `%s`.', name.toString());
}
return;
}
var key = declaration.name;
if (declaration.scope == declaration_1.ParameterScope.TypeScript) {
if (declaration.scope === declaration_1.ParameterScope.TypeScript) {
this.compilerOptions[key] = declaration.convert(value, errorCallback);

@@ -150,4 +153,4 @@ }

var declaration = this.getDeclaration(key);
var shouldValueBeAnObject = declaration && declaration.map === 'object';
if (typeof value === 'object' && !shouldValueBeAnObject) {
var shouldValueBeAnObject = declaration && declaration['map'] === 'object';
if (!Array.isArray(value) && typeof value === 'object' && !shouldValueBeAnObject) {
this.setValues(value, prefix + key + '.', errorCallback);

@@ -169,8 +172,8 @@ }

for (var _i = 0, _a = decl.getNames(); _i < _a.length; _i++) {
var name = _a[_i];
if (name in this.declarations) {
this.application.logger.error('The option "%s" has already been registered by the "%s" component.', name, this.declarations[name].component);
var name_2 = _a[_i];
if (name_2 in this.declarations) {
this.application.logger.error('The option "%s" has already been registered by the "%s" component.', name_2, this.declarations[name_2].component);
}
else {
this.declarations[name] = decl;
this.declarations[name_2] = decl;
}

@@ -187,3 +190,4 @@ }

var names = _.keys(this.declarations);
for (var name in names) {
var name;
for (name in names) {
if (this.declarations[name] === declaration) {

@@ -207,5 +211,5 @@ delete this.declarations[name];

Options = __decorate([
component_1.Component({ name: "options", internal: true, childClass: OptionsComponent })
component_1.Component({ name: 'options', internal: true, childClass: OptionsComponent })
], Options);
exports.Options = Options;
//# sourceMappingURL=options.js.map

@@ -1,2 +0,2 @@

import { DiscoverEvent, OptionsComponent } from "../options";
import { DiscoverEvent, OptionsComponent } from '../options';
export declare class ArgumentsReader extends OptionsComponent {

@@ -3,0 +3,0 @@ initialize(): void;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -75,11 +81,14 @@ var _ts = require("../../../ts-internal");

while (true) {
while (pos < text.length && text.charCodeAt(pos) <= _ts.CharacterCodes.space)
while (pos < text.length && text.charCodeAt(pos) <= _ts.CharacterCodes.space) {
pos++;
if (pos >= text.length)
}
if (pos >= text.length) {
break;
}
var start = pos;
if (text.charCodeAt(start) === _ts.CharacterCodes.doubleQuote) {
pos++;
while (pos < text.length && text.charCodeAt(pos) !== _ts.CharacterCodes.doubleQuote)
while (pos < text.length && text.charCodeAt(pos) !== _ts.CharacterCodes.doubleQuote) {
pos++;
}
if (pos < text.length) {

@@ -95,4 +104,5 @@ args.push(text.substring(start + 1, pos));

else {
while (text.charCodeAt(pos) > _ts.CharacterCodes.space)
while (text.charCodeAt(pos) > _ts.CharacterCodes.space) {
pos++;
}
args.push(text.substring(start, pos));

@@ -106,5 +116,5 @@ }

ArgumentsReader = __decorate([
component_1.Component({ name: "options:arguments" })
component_1.Component({ name: 'options:arguments' })
], ArgumentsReader);
exports.ArgumentsReader = ArgumentsReader;
//# sourceMappingURL=arguments.js.map

@@ -1,3 +0,3 @@

export { ArgumentsReader } from "./arguments";
export { TSConfigReader } from "./tsconfig";
export { TypedocReader } from "./typedoc";
export { ArgumentsReader } from './arguments';
export { TSConfigReader } from './tsconfig';
export { TypedocReader } from './typedoc';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var arguments_1 = require("./arguments");

@@ -3,0 +4,0 @@ exports.ArgumentsReader = arguments_1.ArgumentsReader;

@@ -1,2 +0,2 @@

import { OptionsComponent, DiscoverEvent } from "../options";
import { OptionsComponent, DiscoverEvent } from '../options';
export declare class TSConfigReader extends OptionsComponent {

@@ -3,0 +3,0 @@ options: string;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var Path = require("path");

@@ -35,3 +41,3 @@ var FS = require("fs");

else if (this.application.isCLI) {
var file = ts.findConfigFile(".", ts.sys.fileExists);
var file = ts.findConfigFile('.', ts.sys.fileExists);
if (file) {

@@ -47,20 +53,19 @@ this.load(event, file);

}
var data = ts.readConfigFile(fileName, ts.sys.readFile).config;
if (data === undefined) {
var config = ts.readConfigFile(fileName, ts.sys.readFile).config;
if (config === undefined) {
event.addError('The tsconfig file %s does not contain valid JSON.', fileName);
return;
}
if (!_.isPlainObject(data)) {
if (!_.isPlainObject(config)) {
event.addError('The tsconfig file %s does not contain a JSON object.', fileName);
return;
}
data = ts.parseJsonConfigFileContent(data, ts.sys, Path.resolve(Path.dirname(fileName)), {}, Path.resolve(fileName));
event.inputFiles = data.fileNames;
var _a = ts.parseJsonConfigFileContent(config, ts.sys, Path.resolve(Path.dirname(fileName)), {}, Path.resolve(fileName)), fileNames = _a.fileNames, options = _a.options, typedocOptions = _a.raw.typedocOptions;
event.inputFiles = fileNames;
var ignored = typescript_1.TypeScriptSource.IGNORED;
var compilerOptions = _.clone(data.raw.compilerOptions);
for (var _i = 0, ignored_1 = ignored; _i < ignored_1.length; _i++) {
var key = ignored_1[_i];
delete compilerOptions[key];
delete options[key];
}
_.defaults(event.data, data.raw.typedocOptions, compilerOptions);
_.defaults(event.data, typedocOptions, options);
};

@@ -79,3 +84,3 @@ return TSConfigReader;

TSConfigReader = TSConfigReader_1 = __decorate([
component_1.Component({ name: "options:tsconfig" })
component_1.Component({ name: 'options:tsconfig' })
], TSConfigReader);

@@ -82,0 +87,0 @@ exports.TSConfigReader = TSConfigReader;

@@ -1,2 +0,2 @@

import { OptionsComponent, DiscoverEvent } from "../options";
import { OptionsComponent, DiscoverEvent } from '../options';
export declare class TypedocReader extends OptionsComponent {

@@ -3,0 +3,0 @@ options: string;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var Path = require("path");

@@ -45,6 +51,6 @@ var FS = require("fs");

var data = require(optionFile);
if (typeof data == 'function') {
if (typeof data === 'function') {
data = data(this.application);
}
if (!(typeof data == 'object')) {
if (!(typeof data === 'object')) {
event.addError('The option file %s could not be read, it must either export a function or an object.', optionFile);

@@ -54,3 +60,3 @@ }

if (data.src) {
if (typeof data.src == 'string') {
if (typeof data.src === 'string') {
event.inputFiles = [data.src];

@@ -81,3 +87,3 @@ }

TypedocReader = TypedocReader_1 = __decorate([
component_1.Component({ name: "options:typedoc" })
component_1.Component({ name: 'options:typedoc' })
], TypedocReader);

@@ -84,0 +90,0 @@ exports.TypedocReader = TypedocReader;

@@ -1,2 +0,2 @@

import { OptionsComponent } from "../options";
import { OptionsComponent } from '../options';
export declare class ComponentSource extends OptionsComponent {

@@ -3,0 +3,0 @@ private knownComponents;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var component_1 = require("../../component");

@@ -33,3 +39,3 @@ var options_1 = require("../options");

if (!name) {
this.application.logger.error("Component without name found.");
this.application.logger.error('Component without name found.');
return;

@@ -51,3 +57,3 @@ }

var index = this.knownComponents.indexOf(name);
if (index != -1) {
if (index !== -1) {
this.knownComponents.slice(index, 1);

@@ -79,5 +85,5 @@ for (var _i = 0, _a = component.getOptionDeclarations(); _i < _a.length; _i++) {

ComponentSource = __decorate([
component_1.Component({ name: "options:component" })
component_1.Component({ name: 'options:component' })
], ComponentSource);
exports.ComponentSource = ComponentSource;
//# sourceMappingURL=component.js.map

@@ -1,2 +0,2 @@

export { ComponentSource } from "./component";
export { TypeScriptSource } from "./typescript";
export { ComponentSource } from './component';
export { TypeScriptSource } from './typescript';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var component_1 = require("./component");

@@ -3,0 +4,0 @@ exports.ComponentSource = component_1.ComponentSource;

@@ -1,3 +0,3 @@

import { OptionsComponent } from "../options";
import { IOptionDeclaration } from "../declaration";
import { OptionsComponent } from '../options';
import { DeclarationOption } from '../declaration';
export declare class TypeScriptSource extends OptionsComponent {

@@ -7,4 +7,4 @@ private declarations;

initialize(): void;
getOptionDeclarations(): IOptionDeclaration[];
getOptionDeclarations(): DeclarationOption[];
private addTSOption(option);
}
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");

@@ -46,11 +52,14 @@ var _ts = require("../../../ts-internal");

switch (option.type) {
case "number":
case 'number':
param.type = declaration_1.ParameterType.Number;
break;
case "boolean":
case 'boolean':
param.type = declaration_1.ParameterType.Boolean;
break;
case "string":
case 'string':
param.type = declaration_1.ParameterType.String;
break;
case 'list':
param.type = declaration_1.ParameterType.Array;
break;
default:

@@ -79,9 +88,6 @@ param.type = declaration_1.ParameterType.Map;

'watch', 'declaration', 'mapRoot',
'sourceMap', 'inlineSources', 'removeComments',
'lib', 'noImplicitThis',
'traceResolution', 'noUnusedParameters', 'noUnusedLocals',
'skipLibCheck', 'declarationDir', 'types', 'typeRoots'
'sourceMap', 'inlineSources', 'removeComments'
];
TypeScriptSource = TypeScriptSource_1 = __decorate([
component_1.Component({ name: "options:typescript" })
component_1.Component({ name: 'options:typescript' })
], TypeScriptSource);

@@ -88,0 +94,0 @@ exports.TypeScriptSource = TypeScriptSource;

@@ -1,3 +0,3 @@

import { Application } from "../application";
import { AbstractComponent } from "./component";
import { Application } from '../application';
import { AbstractComponent } from './component';
export declare class PluginHost extends AbstractComponent<Application> {

@@ -4,0 +4,0 @@ plugins: string[];

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -13,2 +18,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var FS = require("fs");

@@ -30,7 +36,7 @@ var Path = require("path");

var plugin = plugins[i];
if (typeof plugin != 'string') {
if (typeof plugin !== 'string') {
logger.error('Unknown plugin %s', plugin);
return false;
}
else if (plugin.toLowerCase() == 'none') {
else if (plugin.toLowerCase() === 'none') {
return true;

@@ -43,3 +49,3 @@ }

var instance = require(plugin);
if (typeof instance == 'function') {
if (typeof instance === 'function') {
instance(this);

@@ -72,3 +78,3 @@ logger.write('Loaded plugin %s', plugin);

path = Path.resolve(Path.join(previous, '..'));
} while (previous != path);
} while (previous !== path);
}

@@ -104,3 +110,3 @@ function discoverModules(basePath) {

var keyword = keywords[i];
if (typeof keyword == 'string' && keyword.toLowerCase() == 'typedocplugin') {
if (typeof keyword === 'string' && keyword.toLowerCase() === 'typedocplugin') {
return true;

@@ -107,0 +113,0 @@ }

{
"name": "typedoc",
"description": "Create api documentations for typescript projects.",
"version": "0.5.7",
"version": "0.5.8",
"homepage": "http://typedoc.org",

@@ -30,3 +30,3 @@ "main": "dist/index.js",

"engines": {
"node": ">= 4"
"node": ">= 4.2.0"
},

@@ -50,8 +50,10 @@ "dependencies": {

"typedoc-default-themes": "^0.4.2",
"typescript": "2.1.6"
"typescript": "2.2.1"
},
"devDependencies": {
"@types/mocha": "^2.2.39",
"grunt": "^1.0.1",
"grunt-cli": "^1.2.0",
"grunt-contrib-clean": "^1.0.0",
"grunt-contrib-copy": "^1.0.0",
"grunt-contrib-watch": "^1.0.0",

@@ -61,4 +63,6 @@ "grunt-mocha-istanbul": "^5.0.1",

"grunt-ts": "^5.5.1",
"grunt-tslint": "^4.0.1",
"istanbul": "^0.4.1",
"mocha": "^3.0.2"
"mocha": "^3.0.2",
"tslint": "^4.4.2"
},

@@ -68,2 +72,3 @@ "files": [

"dist",
"!dist/test",
"tasks",

@@ -73,3 +78,3 @@ "LICENSE"

"scripts": {
"test": "mocha -t 4000",
"test": "mocha -t 4000 dist/test",
"build": "grunt build_and_test",

@@ -76,0 +81,0 @@ "prepublish": "npm run build"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc