Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
thomtrp committed Jan 10, 2025
1 parent 9de6454 commit a0abc18
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type FakeValueTypes =
| { [key: string]: FakeValueTypes }
| null;

type TypeClassification = 'primitive' | 'FieldMetadataType';
type TypeClassification = 'Primitive' | 'FieldMetadataType';

const generatePrimitiveValue = (valueType: string): FakeValueTypes => {
if (valueType === 'string') {
Expand Down Expand Up @@ -40,7 +40,7 @@ const generatePrimitiveValue = (valueType: string): FakeValueTypes => {
objData[key] = generateFakeValue(valueType);
});

return objData.toString();
return objData;
} else {
return null;
}
Expand Down Expand Up @@ -78,10 +78,10 @@ const generateFieldMetadataTypeValue = (

export const generateFakeValue = (
valueType: string,
classification: TypeClassification = 'primitive',
classification: TypeClassification = 'Primitive',
): FakeValueTypes => {
switch (classification) {
case 'primitive':
case 'Primitive':
return generatePrimitiveValue(valueType);
case 'FieldMetadataType':
return generateFieldMetadataTypeValue(valueType);
Expand Down

0 comments on commit a0abc18

Please sign in to comment.