Skip to content

Commit

Permalink
interfaces renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
SKarolFolio committed Nov 26, 2024
1 parent dfccaad commit 62eef6d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/common/services/record/record.interface.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface IRecord {
export interface IRecordGenerator {
init: (params: {
schema: Map<string, SchemaEntry>;
initKey: string | null;
Expand Down
4 changes: 2 additions & 2 deletions src/common/services/record/record.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { filterUserValues } from '@common/helpers/profile.helper';
import { SchemaTraverser } from './schemaTraverser';
import { IRecord } from './record.interface';
import { IRecordGenerator } from './record.interface';

export class RecordGenerator implements IRecord {
export class RecordGenerator implements IRecordGenerator {
private schema: Map<string, SchemaEntry>;
private initKey: string | null;
private userValues: UserValues;
Expand Down
2 changes: 1 addition & 1 deletion src/test/__mocks__/common/hooks/useServicesContext.mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const schemaCreatorService = {
export const recordGeneratorService = {
init: jest.fn(),
generate: jest.fn(),
} as IRecordService;
} as IRecordGeneratorService;

jest.mock('@common/hooks/useServicesContext.ts', () => ({
useServicesContext: () => ({
Expand Down
4 changes: 2 additions & 2 deletions src/types/serviceContext.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type IRecordNormalizingService =
type IRecordToSchemaMappingService =
import('@common/services/recordToSchemaMapping/recordToSchemaMapping.interface').IRecordToSchemaMapping;
type ISchemaService = import('@common/services/schema/schema.interface').ISchema;
type IRecordService = import('@common/services/record/record.interface').IRecord;
type IRecordGeneratorService = import('@common/services/record/record.interface').IRecordGenerator;

type ServicesParams = {
selectedEntriesService?: ISelectedEntriesService;
Expand All @@ -16,5 +16,5 @@ type ServicesParams = {
recordNormalizingService?: IRecordNormalizingService;
recordToSchemaMappingService?: IRecordToSchemaMappingService;
schemaCreatorService?: ISchemaService;
recordGeneratorService?: IRecordService;
recordGeneratorService?: IRecordGeneratorService;
};

0 comments on commit 62eef6d

Please sign in to comment.