feat: git hook config (husky eslint prettier)
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
export class AbstractService<In, Out> {
|
||||
receptionChannel(): string {
|
||||
throw new Error("Method not implemented yet.");
|
||||
}
|
||||
receptionChannel(): string {
|
||||
throw new Error('Method not implemented yet.');
|
||||
}
|
||||
|
||||
sendingChannel(): string {
|
||||
throw new Error("Method not implemented yet.");
|
||||
}
|
||||
sendingChannel(): string {
|
||||
throw new Error('Method not implemented yet.');
|
||||
}
|
||||
|
||||
process(_input: In): Out {
|
||||
throw new Error("Method not implemented yet.");
|
||||
}
|
||||
process(_input: In): Out {
|
||||
throw new Error('Method not implemented yet.');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
import { WindowApiConst } from "shared-lib";
|
||||
import { AbstractService } from "./abstract-service";
|
||||
import { WindowApiConst } from 'shared-lib';
|
||||
import { AbstractService } from './abstract-service';
|
||||
|
||||
export class MultiplesService extends AbstractService<number, number[]> {
|
||||
receptionChannel(): string {
|
||||
return WindowApiConst.MULTIPLES_INPUT;
|
||||
}
|
||||
receptionChannel(): string {
|
||||
return WindowApiConst.MULTIPLES_INPUT;
|
||||
}
|
||||
|
||||
sendingChannel(): string {
|
||||
return WindowApiConst.MULTIPLES_OUTPUT;
|
||||
}
|
||||
sendingChannel(): string {
|
||||
return WindowApiConst.MULTIPLES_OUTPUT;
|
||||
}
|
||||
|
||||
process(input: number): number[] {
|
||||
// From 1 to 10, return input multiples
|
||||
const multiples = [];
|
||||
for (let n = 1; n <= 10; n++) {
|
||||
multiples.push(n * input);
|
||||
}
|
||||
return multiples;
|
||||
}
|
||||
process(input: number): number[] {
|
||||
// From 1 to 10, return input multiples
|
||||
const multiples = [];
|
||||
for (let n = 1; n <= 10; n++) {
|
||||
multiples.push(n * input);
|
||||
}
|
||||
return multiples;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user