pr comments

This commit is contained in:
Peter Clement 2025-03-03 09:00:02 +00:00
parent a0c4093645
commit 2b090c3a62
3 changed files with 5 additions and 5 deletions

View File

@ -15,7 +15,7 @@ interface Notification {
}
export const createNotificationStore = () => {
const timeoutIds = new Set<NodeJS.Timeout>()
const timeoutIds = new Set<ReturnType<typeof setTimeout>>()
const _notifications = writable<Notification[]>([], () => {
return () => {
// clear all the timers

View File

@ -8,9 +8,9 @@
import InternalRenderer from "./InternalRenderer.svelte"
import { processStringSync } from "@budibase/string-templates"
export let row: any
export let schema: any
export let value: any
export let row: Record<string, any>
export let schema: Record<string, any>
export let value: Record<string, any>
export let customRenderers: { column: string; component: any }[] = []
export let snippets: any

View File

@ -7,7 +7,7 @@
// adding the 0- will turn a string like 00:00:00 into a valid ISO
// date, but will make actual ISO dates invalid
$: time = new Date(`0-${value}`)
$: isTimeOnly = !isNaN(time.getTime()) || schema?.timeOnly
$: isTimeOnly = !isNaN(time as any) || schema?.timeOnly
$: isDateOnly = schema?.dateOnly
$: format = isTimeOnly
? "HH:mm:ss"