Skip to content

Commit

Permalink
Fix power_level_content_override type (#2741)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonBrandner authored Oct 7, 2022
1 parent 62007ec commit e37aab2
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/@types/requests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { IRoomEventFilter } from "../filter";
import { Direction } from "../models/event-timeline";
import { PushRuleAction } from "./PushRules";
import { IRoomEvent } from "../sync-accumulator";
import { RoomType } from "./event";
import { EventType, RoomType } from "./event";

// allow camelcase as these are things that go onto the wire
/* eslint-disable camelcase */
Expand Down Expand Up @@ -98,7 +98,18 @@ export interface ICreateRoomOpts {
name?: string;
topic?: string;
preset?: Preset;
power_level_content_override?: object;
power_level_content_override?: {
ban?: number;
events?: Record<EventType | string, number>;
events_default?: number;
invite?: number;
kick?: number;
notifications?: Record<string, number>;
redact?: number;
state_default?: number;
users?: Record<string, number>;
users_default?: number;
};
creation_content?: object;
initial_state?: ICreateRoomStateEvent[];
invite?: string[];
Expand Down

0 comments on commit e37aab2

Please sign in to comment.