Fix declarations

This commit is contained in:
Adria Navarro 2025-01-08 14:29:28 +01:00
parent 10fca945d2
commit 95d3238d1e
2 changed files with 20 additions and 16 deletions

View File

@ -1 +1,3 @@
export const cloneDeep: <T>(obj: T) => T declare module "./helpers" {
export const cloneDeep: <T>(obj: T) => T
}

View File

@ -2,20 +2,22 @@ import { JsonFieldMetadata, QuerySchema } from "@budibase/types"
type Schema = Record<string, QuerySchema | string> type Schema = Record<string, QuerySchema | string>
export const getJSONArrayDatasourceSchema: ( declare module "./json" {
export const getJSONArrayDatasourceSchema: (
tableSchema: Schema, tableSchema: Schema,
datasource: any datasource: any
) => Record<string, { type: string; name: string; prefixKeys: string }> ) => Record<string, { type: string; name: string; prefixKeys: string }>
export const generateQueryArraySchemas: ( export const generateQueryArraySchemas: (
schema: Schema, schema: Schema,
nestedSchemaFields?: Record<string, Schema> nestedSchemaFields?: Record<string, Schema>
) => Schema ) => Schema
export const convertJSONSchemaToTableSchema: ( export const convertJSONSchemaToTableSchema: (
jsonSchema: JsonFieldMetadata, jsonSchema: JsonFieldMetadata,
options: { options: {
squashObjects?: boolean squashObjects?: boolean
prefixKeys?: string prefixKeys?: string
} }
) => Record<string, { type: string; name: string; prefixKeys: string }> ) => Record<string, { type: string; name: string; prefixKeys: string }>
}