Skip to content

Commit 6eb27d7

Browse files
author
Jacob Logan
committed
add error type
1 parent 62ac034 commit 6eb27d7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/ApiDocs/display/ParameterType.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ interface typeDataType {
2020
name: string;
2121
};
2222
signatures?: number[];
23+
targetType?: {
24+
name: string;
25+
};
2326
}
2427
interface ParameterComponentType {
2528
typeData: typeDataType;
@@ -86,6 +89,8 @@ export const ParameterType = ({ typeData }: ParameterComponentType) => {
8689
return `"${typeData.value}"`;
8790
case 'intrinsic':
8891
return typeData.name;
92+
case 'predicate':
93+
return typeData.targetType?.name;
8994
case 'array':
9095
return <ArrayType data={typeData.elementType} />;
9196
case 'function':

0 commit comments

Comments
 (0)