diff options
Diffstat (limited to 'node_modules/tslint/lib/rules/completedDocsRule.d.ts')
-rw-r--r-- | node_modules/tslint/lib/rules/completedDocsRule.d.ts | 50 |
1 files changed, 42 insertions, 8 deletions
diff --git a/node_modules/tslint/lib/rules/completedDocsRule.d.ts b/node_modules/tslint/lib/rules/completedDocsRule.d.ts index 67c76d562..d876d8c64 100644 --- a/node_modules/tslint/lib/rules/completedDocsRule.d.ts +++ b/node_modules/tslint/lib/rules/completedDocsRule.d.ts @@ -1,3 +1,19 @@ +/** + * @license + * Copyright 2013 Palantir Technologies, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import * as ts from "typescript"; import * as Lint from "../index"; import { IInputExclusionDescriptors } from "./completed-docs/exclusionDescriptors"; @@ -22,7 +38,7 @@ export declare const PRIVACY_PRIVATE = "private"; export declare const PRIVACY_PROTECTED = "protected"; export declare const PRIVACY_PUBLIC = "public"; export declare const TAGS_FOR_CONTENT = "content"; -export declare const TAGS_FOR_EXISTENCE = "exists"; +export declare const TAGS_FOR_EXISTENCE = "existence"; export declare const VISIBILITY_EXPORTED = "exported"; export declare const VISIBILITY_INTERNAL = "internal"; export declare type All = typeof ALL; @@ -35,16 +51,23 @@ export declare class Rule extends Lint.Rules.TypedRule { static defaultArguments: IInputExclusionDescriptors; static ARGUMENT_DESCRIPTOR_BLOCK: { properties: { - [x: string]: { + [DESCRIPTOR_TAGS]: { properties: { - [x: string]: { + [TAGS_FOR_CONTENT]: { + items: { + type: string; + }; + type: string; + }; + [TAGS_FOR_EXISTENCE]: { items: { type: string; }; type: string; }; }; - } | { + }; + [DESCRIPTOR_VISIBILITIES]: { enum: string[]; type: string; }; @@ -53,16 +76,27 @@ export declare class Rule extends Lint.Rules.TypedRule { }; static ARGUMENT_DESCRIPTOR_CLASS: { properties: { - [x: string]: { + [DESCRIPTOR_TAGS]: { properties: { - [x: string]: { + [TAGS_FOR_CONTENT]: { + items: { + type: string; + }; + type: string; + }; + [TAGS_FOR_EXISTENCE]: { items: { type: string; }; type: string; }; }; - } | { + }; + [DESCRIPTOR_LOCATIONS]: { + enum: string[]; + type: string; + }; + [DESCRIPTOR_PRIVACIES]: { enum: string[]; type: string; }; @@ -72,5 +106,5 @@ export declare class Rule extends Lint.Rules.TypedRule { static metadata: Lint.IRuleMetadata; private readonly exclusionFactory; applyWithProgram(sourceFile: ts.SourceFile, program: ts.Program): Lint.RuleFailure[]; - private getExclusionsMap(ruleArguments); + private getExclusionsMap; } |