You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-19 15:06:20 +00:00
Fix self-referential ConstructorParameters in two Wired composers
WiredRoomSettingsRequestComposer and WiredUserVariablesRequestComposer declared 'implements IMessageComposer<ConstructorParameters<typeof Self>>' but neither defines a constructor, so ConstructorParameters resolved to 'any[]' and getMessageArray() returning [] (any[]) failed the narrower base-type signature () => []. Both composers send zero payload; type as IMessageComposer<[]> directly + annotate the return type.
This commit is contained in:
+2
-2
@@ -1,8 +1,8 @@
|
|||||||
import { IMessageComposer } from '@nitrots/api';
|
import { IMessageComposer } from '@nitrots/api';
|
||||||
|
|
||||||
export class WiredRoomSettingsRequestComposer implements IMessageComposer<ConstructorParameters<typeof WiredRoomSettingsRequestComposer>>
|
export class WiredRoomSettingsRequestComposer implements IMessageComposer<[]>
|
||||||
{
|
{
|
||||||
public getMessageArray()
|
public getMessageArray(): []
|
||||||
{
|
{
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -1,8 +1,8 @@
|
|||||||
import { IMessageComposer } from '@nitrots/api';
|
import { IMessageComposer } from '@nitrots/api';
|
||||||
|
|
||||||
export class WiredUserVariablesRequestComposer implements IMessageComposer<ConstructorParameters<typeof WiredUserVariablesRequestComposer>>
|
export class WiredUserVariablesRequestComposer implements IMessageComposer<[]>
|
||||||
{
|
{
|
||||||
public getMessageArray()
|
public getMessageArray(): []
|
||||||
{
|
{
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user