feat: ghetto durable compute

This commit is contained in:
Mythie
2024-05-16 15:44:39 +10:00
parent 61827ad729
commit 991f808890
20 changed files with 847 additions and 151 deletions

View File

@ -2,13 +2,13 @@
* Below type is borrowed from Trigger.dev's SDK, it may be moved elsewhere later.
*/
type JsonPrimitive = string | number | boolean | null | undefined | Date | symbol;
export type JsonPrimitive = string | number | boolean | null | undefined | Date | symbol;
type JsonArray = Json[];
export type JsonArray = Json[];
type JsonRecord<T> = {
export type JsonRecord<T> = {
[Property in keyof T]: Json;
};
// eslint-disable-next-line @typescript-eslint/no-explicit-any
type Json<T = any> = JsonPrimitive | JsonArray | JsonRecord<T>;
export type Json<T = any> = JsonPrimitive | JsonArray | JsonRecord<T>;