Skip to content

Commit 543802e

Browse files
committed
add ignore .d.ts in tslint
1 parent dec398c commit 543802e

File tree

5 files changed

+18
-16
lines changed

5 files changed

+18
-16
lines changed

docs-commands.ignorenpm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@
55
# Run check:
66
> tslint -c tslint.json 'src/**/*.ts'
77
# Run check and fixed:
8-
> tslint -c tslint.json 'src/**/*.ts' --fix
8+
> tslint -c tslint.json 'src/**/*.ts' --fix
9+
# Run check with exclude .d.ts:
10+
> tslint -c tslint.json 'src/**/*.ts' --fix --exclude "src/**/*.d.ts"

src/expression-utils.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { Expression } from "./types";
22
export declare class ExpressionUtils {
33
private _defaultSeparator;
44
constructor(_defaultSeparator?: string);
5-
getValueByExpression<T>(instance: any, expression: Expression<T>): any;
6-
getValueByProperties(instance: any, properties: string[]): any;
7-
getValue(instance: any, property: string): any;
8-
getColumnByExpression<T>(expression: Expression<T>, separator?: string): string;
9-
getColumnByProperties(properties: string[], separator?: string): string;
10-
getPropertiesByExpression<T>(expression: Expression<T>): string[];
5+
public getValueByExpression<T>(instance: any, expression: Expression<T>): any;
6+
public getValueByProperties(instance: any, properties: string[]): any;
7+
public getValue(instance: any, property: string): any;
8+
public getColumnByExpression<T>(expression: Expression<T>, separator?: string): string;
9+
public getColumnByProperties(properties: string[], separator?: string): string;
10+
public getPropertiesByExpression<T>(expression: Expression<T>): string[];
1111
private getPropertiesByExpressionString(expression);
1212
private getColumnByLambdaExpression<T>(expression);
1313
private getPropertiesByLambdaExpression<T>(expression);

src/test/models/model-test.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { ReferencesModelTest } from "./reference-model-test";
22
export declare class ModelTest {
3-
id: number;
4-
name: string;
5-
description: string;
6-
date: Date;
7-
isValid: boolean;
8-
reference: ReferencesModelTest;
3+
public id: number;
4+
public name: string;
5+
public description: string;
6+
public date: Date;
7+
public isValid: boolean;
8+
public reference: ReferencesModelTest;
99
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export declare class ReferencesModelTest {
2-
id: number;
3-
name: string;
2+
public id: number;
3+
public name: string;
44
}

src/test/test.spec.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import { Expression } from "../types";
22
export declare class ExpressionUsage {
3-
static expression<T>(expression: Expression<T>): string;
3+
public static expression<T>(expression: Expression<T>): string;
44
}

0 commit comments

Comments
 (0)