refactor: update ErrTuple to have a generic type that defaults to any
This commit is contained in:
parent
7e61534c7b
commit
b2007a6c81
|
@ -29,7 +29,7 @@ type ErrFn = (errMsg: string) => void;
|
||||||
// returned, the err should be 'null'. If an error is returned, the data field
|
// returned, the err should be 'null'. If an error is returned, the data field
|
||||||
// should generally be empty. Callers are expected to check the error before
|
// should generally be empty. Callers are expected to check the error before
|
||||||
// they access any part of the data field.
|
// they access any part of the data field.
|
||||||
type ErrTuple = [data: any, err: Err];
|
type ErrTuple<T = any> = [data: T, err: Err];
|
||||||
|
|
||||||
// KernelAuthStatus is the structure of a message that gets sent by the kernel
|
// KernelAuthStatus is the structure of a message that gets sent by the kernel
|
||||||
// containing its auth status. Auth occurs in 5 stages.
|
// containing its auth status. Auth occurs in 5 stages.
|
||||||
|
|
Loading…
Reference in New Issue