import { API_EXTENSION_TYPES , APP_EXTENSION_TYPES , EXTENSION_PACKAGE_TYPES , EXTENSION_TYPES } from '../constants' ; import { ApiExtensionType , AppExtensionType , ExtensionPackageType , ExtensionType } from '../types' ; export function isExtension ( type ) { return ( EXTENSION_TYPES as readonly string [ ] ) . includes ( type ) ; } export function isAppExtension ( type ) { return ( APP_EXTENSION_TYPES as readonly string [ ] ) . includes ( type ) ; } export function isApiExtension ( type ) { return ( API_EXTENSION_TYPES as readonly string [ ] ) . includes ( type ) ; } export function isExtensionPackage ( type ) { return ( EXTENSION_PACKAGE_TYPES as readonly string [ ] ) . includes ( type ) ; }