import { createExtension , isExtension , IExtension } from '@cloudbeaver/core-extensions' ; const objectSchemaSetterSymbol = Symbol ( '@extension/ObjectSchemaSetter' ) ; export type IObjectSchemaSetter < T = never > = ( schemaId : string , context : T ) => Promise < boolean > | boolean ; export function objectSchemaSetter < T > ( provider ) { return createExtension < T > ( provider , objectSchemaSetterSymbol ) ; } export function isObjectSchemaSetter < T > ( obj ) { return isExtension ( obj , objectSchemaSetterSymbol ) as boolean ; }