mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-06 03:50:18 +02:00
refactor(struct): type plugin system rewrok v2
This commit is contained in:
parent
f9502f0e6f
commit
c37e3dd953
32 changed files with 865 additions and 729 deletions
|
@ -22,8 +22,9 @@ const AdbReverseStringResponse =
|
|||
.string('content', { lengthField: 'length' });
|
||||
|
||||
const AdbReverseErrorResponse =
|
||||
AdbReverseStringResponse
|
||||
.afterParsed((value) => {
|
||||
new Struct({ littleEndian: true })
|
||||
.fields(AdbReverseStringResponse)
|
||||
.postDeserialize((value) => {
|
||||
throw new Error(value.content);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue