Skip to content

Commit

Permalink
fix: unexported symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
mgechev committed Jun 23, 2018
1 parent 801e4e1 commit d17f7cf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/angular/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export interface CodeWithSourceMap {
source?: string;
}

interface PropertyMetadata {
export interface PropertyMetadata {
node?: ts.Node;
url?: string;
}
Expand Down
5 changes: 3 additions & 2 deletions src/componentClassSuffixRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ import { sprintf } from 'sprintf-js';
import * as Lint from 'tslint';
import * as ts from 'typescript';
import { ComponentMetadata } from './angular/metadata';
import { Maybe } from './util/function';
import { Maybe, F2 } from './util/function';
import { Failure } from './walkerFactory/walkerFactory';
import { all, validateComponent } from './walkerFactory/walkerFn';
import { NgWalker } from '.';

export class Rule extends Lint.Rules.AbstractRule {
static readonly metadata: Lint.IRuleMetadata = {
Expand All @@ -27,7 +28,7 @@ export class Rule extends Lint.Rules.AbstractRule {

static readonly FAILURE_STRING = 'The name of the class %s should end with the suffix %s (https://angular.io/styleguide#style-02-03)';

static walkerBuilder = all(
static walkerBuilder: F2<ts.SourceFile, Lint.IOptions, NgWalker> = all(
validateComponent((meta: ComponentMetadata, suffixList: string[] = []) =>
Maybe.lift(meta.controller)
.fmap(controller => controller.name)
Expand Down
2 changes: 1 addition & 1 deletion src/maxInlineDeclarationsRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class Rule extends Rules.AbstractRule {
}
}

type PropertyType = 'animations' | 'styles' | 'template';
export type PropertyType = 'animations' | 'styles' | 'template';
export type PropertyPair = { [key in PropertyType]?: number };

const generateFailure = (type: PropertyType, limit: number, value: number): string => {
Expand Down

0 comments on commit d17f7cf

Please sign in to comment.