Skip to content

Commit b1cde39

Browse files
committed
Set noUnusedLocals TSConfig option
1 parent 2ddd1bb commit b1cde39

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

src/ClientWidgetApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export class ClientWidgetApi extends EventEmitter {
161161
*/
162162
public constructor(
163163
public readonly widget: Widget,
164-
private readonly iframe: HTMLIFrameElement,
164+
iframe: HTMLIFrameElement,
165165
private readonly driver: WidgetDriver,
166166
) {
167167
super();

src/WidgetApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export class WidgetApi extends EventEmitter {
144144
*/
145145
public constructor(
146146
widgetId: string | null = null,
147-
private readonly clientOrigin: string | null = null,
147+
clientOrigin: string | null = null,
148148
) {
149149
super();
150150
if (!globalThis.parent) {

src/transport/PostmessageTransport.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class PostmessageTransport extends EventEmitter implements ITransport {
5959

6060
public constructor(
6161
private readonly sendDirection: WidgetApiDirection,
62-
private readonly initialWidgetId: string | null,
62+
initialWidgetId: string | null,
6363
private readonly transportWindow: Window | typeof globalThis,
6464
private readonly inboundWindow: Window | typeof globalThis,
6565
) {

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"declaration": true,
1212
"types": ["jest"],
1313
"lib": ["es2020", "dom"],
14-
"strict": true
14+
"strict": true,
15+
"noUnusedLocals": true
1516
},
1617
"include": ["./src/**/*.ts"]
1718
}

0 commit comments

Comments
 (0)