Fix declarations
This commit is contained in:
parent
10fca945d2
commit
95d3238d1e
|
@ -1 +1,3 @@
|
|||
export const cloneDeep: <T>(obj: T) => T
|
||||
declare module "./helpers" {
|
||||
export const cloneDeep: <T>(obj: T) => T
|
||||
}
|
||||
|
|
|
@ -2,20 +2,22 @@ import { JsonFieldMetadata, QuerySchema } from "@budibase/types"
|
|||
|
||||
type Schema = Record<string, QuerySchema | string>
|
||||
|
||||
export const getJSONArrayDatasourceSchema: (
|
||||
tableSchema: Schema,
|
||||
datasource: any
|
||||
) => Record<string, { type: string; name: string; prefixKeys: string }>
|
||||
declare module "./json" {
|
||||
export const getJSONArrayDatasourceSchema: (
|
||||
tableSchema: Schema,
|
||||
datasource: any
|
||||
) => Record<string, { type: string; name: string; prefixKeys: string }>
|
||||
|
||||
export const generateQueryArraySchemas: (
|
||||
schema: Schema,
|
||||
nestedSchemaFields?: Record<string, Schema>
|
||||
) => Schema
|
||||
export const generateQueryArraySchemas: (
|
||||
schema: Schema,
|
||||
nestedSchemaFields?: Record<string, Schema>
|
||||
) => Schema
|
||||
|
||||
export const convertJSONSchemaToTableSchema: (
|
||||
jsonSchema: JsonFieldMetadata,
|
||||
options: {
|
||||
squashObjects?: boolean
|
||||
prefixKeys?: string
|
||||
}
|
||||
) => Record<string, { type: string; name: string; prefixKeys: string }>
|
||||
export const convertJSONSchemaToTableSchema: (
|
||||
jsonSchema: JsonFieldMetadata,
|
||||
options: {
|
||||
squashObjects?: boolean
|
||||
prefixKeys?: string
|
||||
}
|
||||
) => Record<string, { type: string; name: string; prefixKeys: string }>
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue