mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-04 02:09:18 +02:00
refactor: enable strict TypeScript options
This commit is contained in:
parent
594648d033
commit
55cd69d47b
15 changed files with 82 additions and 104 deletions
|
@ -78,7 +78,7 @@ export class AdbReverseCommand extends AutoDisposable {
|
|||
|
||||
const response = await AdbReverseStringResponse.deserialize(stream);
|
||||
return response.content!.split('\n').map(line => {
|
||||
const [deviceSerial, localName, remoteName] = line.split(' ');
|
||||
const [deviceSerial, localName, remoteName] = line.split(' ') as [string, string, string];
|
||||
return { deviceSerial, localName, remoteName };
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue