We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8b658b commit ad034b3Copy full SHA for ad034b3
1 file changed
lib/utils.ts
@@ -24,6 +24,10 @@ export function isNotReferenceObject<
24
return !isReferenceObject(obj);
25
}
26
27
+export function isNotNullOrUndefined<T>(obj: T | null | undefined): obj is T {
28
+ return obj !== null && typeof obj !== undefined;
29
+}
30
+
31
export function getDependents(
32
obj: OpenAPIV3_1.ReferenceObject | OpenAPIV3_1.SchemaObject,
33
): string[] {
0 commit comments