mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-22 02:23:30 +00:00
11 lines
298 B
TypeScript
11 lines
298 B
TypeScript
import type { OpenAPIV3 } from '@scalar/openapi-types';
|
|
|
|
/**
|
|
* Check if an entity should be ignored
|
|
*/
|
|
export function shouldIgnoreEntity(
|
|
data: undefined | OpenAPIV3.TagObject | OpenAPIV3.OperationObject
|
|
) {
|
|
return data?.['x-internal'] === true || data?.['x-gitbook-ignore'] === true;
|
|
}
|