mirror of
https://github.com/documenso/documenso.git
synced 2025-11-15 09:12:02 +10:00
wip: background tasks
This commit is contained in:
14
packages/lib/jobs/client/_internal/json.ts
Normal file
14
packages/lib/jobs/client/_internal/json.ts
Normal file
@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Below type is borrowed from Trigger.dev's SDK, it may be moved elsewhere later.
|
||||
*/
|
||||
|
||||
type JsonPrimitive = string | number | boolean | null | undefined | Date | symbol;
|
||||
|
||||
type JsonArray = Json[];
|
||||
|
||||
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>;
|
||||
Reference in New Issue
Block a user