Internal
Readonly
This hack is to work around TypeScript types not existing at runtime. We can specify the return type here.
This function is never actually called, so the implementation can be simply:
T = (response: unknown) => response as LavalinkResponse; Copy
T = (response: unknown) => response as LavalinkResponse;
Or using the t utility function
t
import { t } from 'shoukaku';T = t<LavalinkResponse>; Copy
import { t } from 'shoukaku';T = t<LavalinkResponse>;
This hack is to work around TypeScript types not existing at runtime. We can specify the return type here.