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>
|
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 }>
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue