Shoukaku
    Preparing search index...

    Interface TFieldInternal

    interface TField {
        T: TFn;
    }

    Hierarchy (View Summary)

    Index

    Properties

    T

    Properties

    T: TFn

    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;
    

    Or using the t utility function

    import { t } from 'shoukaku';

    T = t<LavalinkResponse>;