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

Commit

Permalink
Add noUnusedLocals to tsconfig to improve type checks. (#33)
Browse files Browse the repository at this point in the history
Update relevant import to support noUnusedLocals.
  • Loading branch information
PeterEnevoldsen authored and fknop committed Dec 10, 2016
1 parent 9c08ad7 commit f4cc6d5
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
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

0 comments on commit f4cc6d5

Please sign in to comment.