Fixes for types based on CI.

This commit is contained in:
mike12345567 2024-12-06 16:14:46 +00:00
parent a3df34b350
commit 17d421f12b
2 changed files with 4 additions and 5 deletions

View File

@ -10,7 +10,6 @@ import {
import env from "../../../environment" import env from "../../../environment"
import { groups } from "@budibase/pro" import { groups } from "@budibase/pro"
import { import {
Ctx,
DevInfo, DevInfo,
FetchAPIKeyResponse, FetchAPIKeyResponse,
GenerateAPIKeyRequest, GenerateAPIKeyRequest,

View File

@ -14,8 +14,8 @@ import {
FindGlobalTemplateResponse, FindGlobalTemplateResponse,
SaveGlobalTemplateRequest, SaveGlobalTemplateRequest,
SaveGlobalTemplateResponse, SaveGlobalTemplateResponse,
TemplateBinding, GlobalTemplateBinding,
TemplateDefinition, GlobalTemplateDefinition,
UserCtx, UserCtx,
} from "@budibase/types" } from "@budibase/types"
@ -41,8 +41,8 @@ export async function save(
export async function definitions( export async function definitions(
ctx: UserCtx<void, FetchGlobalTemplateDefinitionResponse> ctx: UserCtx<void, FetchGlobalTemplateDefinitionResponse>
) { ) {
const bindings: Record<string, TemplateBinding[]> = {} const bindings: Record<string, GlobalTemplateBinding[]> = {}
const info: Record<string, TemplateDefinition> = {} const info: Record<string, GlobalTemplateDefinition> = {}
for (let template of TemplateMetadata.email) { for (let template of TemplateMetadata.email) {
bindings[template.purpose] = template.bindings bindings[template.purpose] = template.bindings
info[template.purpose] = { info[template.purpose] = {