mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-01 00:26:39 +00:00
17 lines
447 B
TypeScript
17 lines
447 B
TypeScript
import type { TableType, UnifiedMetaType } from 'nocodb-sdk'
|
|
|
|
export const validateFormulaGetMeta = (
|
|
getMeta: (
|
|
baseId: string,
|
|
tableIdOrTitle: string,
|
|
force?: boolean,
|
|
skipIfCacheMiss?: boolean,
|
|
disableError?: boolean,
|
|
navigateOnNotFound?: boolean,
|
|
) => Promise<TableType | null>,
|
|
) => {
|
|
return (async (context, { id }) => {
|
|
return getMeta(context.base_id, id, false, false)
|
|
}) as UnifiedMetaType.IGetModel
|
|
}
|