During build of typescript (npx tsc --pretty) the following errors occur:
node_modules/rage-rpc/dist/rage-rpc.d.ts:5:57 - error TS2371: A parameter initializer is only allowed in a function or constructor implementation.
export function call<T = any>(name: string, args?: any, options: CallOptions = {}): Promise<T>;
~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/rage-rpc/dist/rage-rpc.d.ts:6:63 - error TS2371: A parameter initializer is only allowed in a function or constructor implementation.
export function callServer<T = any>(name: string, args?: any, options: CallOptions = {}): Promise<T>;
~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/rage-rpc/dist/rage-rpc.d.ts:7:79 - error TS2371: A parameter initializer is only allowed in a function or constructor implementation.
export function callClient<T = any>(player: Player, name: string, args?: any, options: CallOptions = {}): Promise<T>;
~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/rage-rpc/dist/rage-rpc.d.ts:8:63 - error TS2371: A parameter initializer is only allowed in a function or constructor implementation.
export function callClient<T = any>(name: string, args?: any, options: CallOptions = {}): Promise<T>;
~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/rage-rpc/dist/rage-rpc.d.ts:9:81 - error TS2371: A parameter initializer is only allowed in a function or constructor implementation.
export function callBrowsers<T = any>(player: Player, name: string, args?: any, options: CallOptions = {}): Promise<T>;
~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/rage-rpc/dist/rage-rpc.d.ts:10:65 - error TS2371: A parameter initializer is only allowed in a function or constructor implementation.
export function callBrowsers<T = any>(name: string, args?: any, options: CallOptions = {}): Promise<T>;
~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/rage-rpc/dist/rage-rpc.d.ts:11:82 - error TS2371: A parameter initializer is only allowed in a function or constructor implementation.
export function callBrowser<T = any>(browser: Browser, name: string, args?: any, options: CallOptions = {}): Promise<T>;
If the initializer ={} is omitted from the CallOptions, a warning is passed:
A required parameter cannot follow an optional parameter.
due to args? being appended before.
Maybe its something to ignore or seomthing that my settings are causing, since the export is a function? Any advice is appreciated :)
During build of typescript (npx tsc --pretty) the following errors occur:
If the initializer
={}
is omitted from the CallOptions, a warning is passed:A required parameter cannot follow an optional parameter.
due toargs?
being appended before.Maybe its something to ignore or seomthing that my settings are causing, since the export is a function? Any advice is appreciated :)