parent
0f08e9f1ee
commit
a44eea520a
5 changed files with 14 additions and 6 deletions
|
|
@ -58,9 +58,10 @@ export type UISlider = $ReadOnly<{|
|
|||
topic: string,
|
||||
icon?: Icon,
|
||||
enableCondition?: (s: State) => boolean,
|
||||
marks?: boolean | Array<{ value: number, label: string}>,
|
||||
min?: number,
|
||||
max?: number,
|
||||
step?: number
|
||||
step?: ?number
|
||||
|}>;
|
||||
|
||||
export type UISection = $ReadOnly<{|
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ export const json = (path: string, innerType?: TopicType): TopicType => {
|
|||
from: (msg) => parseAgain(Buffer.from(
|
||||
at(JSON.parse(msg.toString()), path)[0].toString())),
|
||||
to: (msg) => Buffer.from(
|
||||
JSON.serialize(set({}, path, parseFirst(msg).toString())))
|
||||
JSON.stringify(set({}, path, parseFirst(msg).toString())))
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue