mirror of
https://github.com/documenso/documenso.git
synced 2025-11-12 15:53:02 +10:00
15 lines
387 B
TypeScript
15 lines
387 B
TypeScript
/**
|
|
* 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>;
|