Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Add noUnusedLocals to tsconfig to improve type checks. #33

Merged
merged 1 commit into from
Dec 10, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/array/range.pipe.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Pipe, PipeTransform } from '@angular/core';
import { isArray } from '../utils/utils';

@Pipe({
name: 'range'
Expand Down
2 changes: 1 addition & 1 deletion src/array/shuffle.pipe.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Pipe, PipeTransform } from '@angular/core';
import { isArray, shuffle } from '../utils/utils';
import { shuffle } from '../utils/utils';

@Pipe({
name: 'shuffle'
Expand Down
2 changes: 1 addition & 1 deletion src/math/degrees.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { isNumberFinite } from '../utils/utils';
@Pipe({
name: 'degrees'
})
export class DegreesPipe {
export class DegreesPipe implements PipeTransform{


transform (input: any): any {
Expand Down
4 changes: 2 additions & 2 deletions src/math/radians.pipe.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Pipe, PipeTransform } from '@angular/core';
import { isNumberFinite, isInteger } from '../utils/utils';
import { isNumberFinite } from '../utils/utils';

@Pipe({
name: 'radians'
})
export class RadiansPipe {
export class RadiansPipe implements PipeTransform {

transform (input: any): any {

Expand Down
2 changes: 1 addition & 1 deletion src/math/random.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { isNumberFinite } from '../utils/utils';
@Pipe({
name: 'random'
})
export class RandomPipe {
export class RandomPipe implements PipeTransform {

transform (input: any, min: number = 0, max: number = 1): any {

Expand Down
2 changes: 1 addition & 1 deletion src/string/encode-uri-component.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { isString } from '../utils/utils';
@Pipe({
name: 'encodeURIComponent'
})
export class EncodeURIComponentPipe {
export class EncodeURIComponentPipe implements PipeTransform {

transform (input: any) {

Expand Down
2 changes: 1 addition & 1 deletion src/string/encode-uri.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { isString } from '../utils/utils';
@Pipe({
name: 'encodeURI'
})
export class EncodeURIPipe {
export class EncodeURIPipe implements PipeTransform {

transform (input: any) {

Expand Down
2 changes: 1 addition & 1 deletion src/string/repeat.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { isString } from '../utils/utils';
@Pipe({
name: 'repeat'
})
export class RepeatPipe {
export class RepeatPipe implements PipeTransform {

transform (input: any, times: number = 1, characters: string = ''): any {

Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": true,
"noUnusedLocals": true,
"suppressImplicitAnyIndexErrors": false,
"declaration": true,
"types": [
Expand Down