Skip to content

Commit eaeaf63

Browse files
fix: add null to primitives (#284)
1 parent 93c7248 commit eaeaf63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ export const isEmitter = (doc: ParsedDocumentationResult[0]) => {
293293
return false;
294294
};
295295
export const isPrimitive = (type: string) => {
296-
const primitives = ['boolean', 'number', 'any', 'string', 'void', 'unknown'];
296+
const primitives = ['boolean', 'number', 'any', 'string', 'void', 'null', 'unknown'];
297297
return primitives.indexOf(type.toLowerCase().replace(/\[\]/g, '')) !== -1;
298298
};
299299
export const isBuiltIn = (type: string) => {

0 commit comments

Comments
 (0)