We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
shouldIgnoreEntity
1 parent 725952a commit 53f5dbeCopy full SHA for 53f5dbe
.changeset/famous-bags-report.md
@@ -0,0 +1,5 @@
1
+---
2
+'@gitbook/openapi-parser': patch
3
4
+
5
+Fix typing of `shouldIgnoreEntity`
packages/openapi-parser/src/helpers/shouldIgnoreEntity.ts
@@ -4,10 +4,7 @@ import type { OpenAPIV3 } from '@scalar/openapi-types';
* Check if an entity should be ignored
*/
6
export function shouldIgnoreEntity(
7
- data:
8
- | undefined
9
- | Pick<OpenAPIV3.TagObject, 'x-internal' | 'x-gitbook-ignore'>
10
- | Pick<OpenAPIV3.OperationObject, 'x-internal' | 'x-gitbook-ignore'>
+ data: undefined | OpenAPIV3.TagObject | OpenAPIV3.OperationObject
11
) {
12
return data?.['x-internal'] === true || data?.['x-gitbook-ignore'] === true;
13
}
0 commit comments