mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-22 17:41:32 +00:00
fix: remove explicit typing
Apparently this is not need anymore and the linter does not like it. Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
f35d00806e
commit
cf51c7572a
4 changed files with 5 additions and 5 deletions
|
@ -108,7 +108,7 @@ export const OpenApi = (
|
|||
ApiOkResponse({
|
||||
description: description ?? okDescription,
|
||||
isArray: isArray,
|
||||
type: dto ? (): BaseDto => dto as BaseDto : undefined,
|
||||
type: dto ? (): BaseDto => dto : undefined,
|
||||
}),
|
||||
);
|
||||
break;
|
||||
|
@ -117,7 +117,7 @@ export const OpenApi = (
|
|||
ApiCreatedResponse({
|
||||
description: description ?? createdDescription,
|
||||
isArray: isArray,
|
||||
type: dto ? (): BaseDto => dto as BaseDto : undefined,
|
||||
type: dto ? (): BaseDto => dto : undefined,
|
||||
}),
|
||||
HttpCode(201),
|
||||
);
|
||||
|
|
|
@ -86,7 +86,7 @@ describe('realtime user status adapter', () => {
|
|||
clientGuest,
|
||||
clientNotReady,
|
||||
clientDecline,
|
||||
].filter((value) => value !== undefined) as RealtimeUserStatusAdapter[];
|
||||
].filter((value) => value !== undefined);
|
||||
}
|
||||
|
||||
clientLoggedIn1 = new RealtimeUserStatusAdapter(
|
||||
|
|
|
@ -116,7 +116,7 @@ export class RealtimeUserStatusAdapter {
|
|||
const realtimeUsers = this.collectOtherAdapters()
|
||||
.filter((adapter) => adapter !== this)
|
||||
.map((adapter) => adapter.getSendableState())
|
||||
.filter((value) => value !== undefined) as RealtimeUser[];
|
||||
.filter((value) => value !== undefined);
|
||||
|
||||
this.messageTransporter.sendMessage({
|
||||
type: MessageType.REALTIME_USER_STATE_SET,
|
||||
|
|
|
@ -38,7 +38,7 @@ export const remoteCursorStateField = StateField.define<RemoteCursor[]>({
|
|||
},
|
||||
update(currentValue: RemoteCursor[], transaction: Transaction): RemoteCursor[] {
|
||||
return Optional.ofNullable(transaction.effects.find((effect) => effect.is(remoteCursorUpdateEffect)))
|
||||
.map((remoteCursor) => remoteCursor.value as RemoteCursor[])
|
||||
.map((remoteCursor) => remoteCursor.value)
|
||||
.orElse(currentValue)
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue