Skip to content

Commit 43d63cf

Browse files
committed
fix: return type
1 parent 0243c71 commit 43d63cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/helper/lib/base-nlp-helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export default abstract class BaseNlpHelper<
123123
async format(
124124
samples: NlpSampleFull[],
125125
entities: NlpEntityFull[],
126-
): Promise<Record<string, any>[]> {
126+
): Promise<Record<string, any>[] | Record<string, any>> {
127127
const entityMap = NlpEntity.getEntityMap(entities);
128128
const valueMap = NlpValue.getValueMap(
129129
NlpValue.getValuesFromEntities(entities),

0 commit comments

Comments
 (0)