X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Futility-types.ts;h=e177adaeb7ccaf8022c338013284201e23ed1ed7;hb=afbc1e280c219008e0afeddc6bf4ae2d00a85b2e;hp=5a3ef4c565f184e5712d2f47f755848a62f3cb42;hpb=325f50bc1777ea44abc9736ce9d780ec0c8f90e2;p=poolifier.git diff --git a/src/utility-types.ts b/src/utility-types.ts index 5a3ef4c5..e177adae 100644 --- a/src/utility-types.ts +++ b/src/utility-types.ts @@ -1,6 +1,12 @@ export type Draft = { -readonly [P in keyof T]?: T[P] } -export interface MessageValue { +export type JSONPrimitive = number | boolean | string | null +// eslint-disable-next-line no-use-before-define +export type JSONValue = JSONPrimitive | JSONArray | JSONObject +export type JSONObject = { [k: string]: JSONValue } +export type JSONArray = Array + +export interface MessageValue { readonly data?: Data readonly id?: number readonly kill?: number