mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-03 02:21:44 +00:00
12 lines
346 B
TypeScript
12 lines
346 B
TypeScript
import { IRepository } from './repository';
|
|
|
|
export class SqlRepository implements IRepository {
|
|
find(id: number): string;
|
|
find(name: string): string;
|
|
find(arg: number | string): string {
|
|
return typeof arg === 'number' ? 'found-by-id' : 'found-by-name';
|
|
}
|
|
save(data: string): void {
|
|
console.log(data);
|
|
}
|
|
}
|