mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-15 11:04:49 +00:00
prettier v3 changes
This commit is contained in:
committed by
David Lechner
parent
e2c86c82c5
commit
061d22a7aa
+4
-2
@@ -60,8 +60,10 @@ export type AlertCallback<
|
||||
* @template D The domain.
|
||||
* @template S The specific instance name in the domain.
|
||||
*/
|
||||
export type AlertActions<D extends AlertDomain, S extends AlertSpecific<D>> =
|
||||
| Parameters<Parameters<AlertInstance<D, S>>[0]>[0];
|
||||
export type AlertActions<
|
||||
D extends AlertDomain,
|
||||
S extends AlertSpecific<D>,
|
||||
> = Parameters<Parameters<AlertInstance<D, S>>[0]>[0];
|
||||
|
||||
/**
|
||||
* Gets the type of the properties for a specific instance in the lookup table.
|
||||
|
||||
@@ -253,7 +253,10 @@ export class ProtocolError extends Error {
|
||||
* @param message The error message
|
||||
* @param value The bytecodes that caused the error
|
||||
*/
|
||||
constructor(message: string, public value: DataView) {
|
||||
constructor(
|
||||
message: string,
|
||||
public value: DataView,
|
||||
) {
|
||||
super(message);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -99,7 +99,10 @@ export class ProtocolError extends Error {
|
||||
* @param message The error message
|
||||
* @param data The bytecodes that caused the error
|
||||
*/
|
||||
constructor(message: string, public data: DataView) {
|
||||
constructor(
|
||||
message: string,
|
||||
public data: DataView,
|
||||
) {
|
||||
super(message);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user