X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futility-types.ts;h=e177adaeb7ccaf8022c338013284201e23ed1ed7;hb=d3c8a1a8022726094160d1413f1f289c5d84d715;hp=5a3ef4c565f184e5712d2f47f755848a62f3cb42;hpb=b53f9ec9ada29530084186e5b1bd9b578be76a92;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