Skip to content

Commit aec2958

Browse files
committed
Lint
1 parent 713c586 commit aec2958

24 files changed

+25
-25
lines changed

manual/assets/js/src/components/SidebarManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export class SidebarManager implements Component {
1010

1111
const sidebar = document.querySelector(".sidebar");
1212
const sidebarButtonOpen = document.querySelector(".sidebar-button-open");
13-
const sidebarButtonClose = document.querySelector(".sidebar-button-close")!;
13+
const sidebarButtonClose = document.querySelector<HTMLElement>(".sidebar-button-close")!;
1414

1515
if(sidebar === null || sidebarButtonOpen === null || sidebarButtonClose === null) {
1616

manual/assets/js/src/demos/bloom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ window.addEventListener("load", () => void load().then((assets) => {
114114

115115
// Settings
116116

117-
const pane = new Pane({ container: container.querySelector(".tp")! });
117+
const pane = new Pane({ container: container.querySelector<HTMLElement>(".tp")! });
118118
const fpsGraph = Utils.createFPSGraph(pane);
119119

120120
const folder = pane.addFolder({ title: "Settings" });

manual/assets/js/src/demos/blur.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ window.addEventListener("load", () => void load().then((assets) => {
125125

126126
// Settings
127127

128-
const pane = new Pane({ container: container.querySelector(".tp")! });
128+
const pane = new Pane({ container: container.querySelector<HTMLElement>(".tp")! });
129129
const fpsGraph = Utils.createFPSGraph(pane);
130130

131131
const folder = pane.addFolder({ title: "Settings" });

manual/assets/js/src/demos/brightness-contrast.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ window.addEventListener("load", () => void load().then((assets) => {
104104

105105
// Settings
106106

107-
const pane = new Pane({ container: container.querySelector(".tp")! });
107+
const pane = new Pane({ container: container.querySelector<HTMLElement>(".tp")! });
108108
const fpsGraph = Utils.createFPSGraph(pane);
109109

110110
/*

manual/assets/js/src/demos/chromatic-aberration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ window.addEventListener("load", () => void load().then((assets) => {
108108

109109
// Settings
110110

111-
const pane = new Pane({ container: container.querySelector(".tp")! });
111+
const pane = new Pane({ container: container.querySelector<HTMLElement>(".tp")! });
112112
const fpsGraph = Utils.createFPSGraph(pane);
113113

114114
/*

manual/assets/js/src/demos/color-depth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ window.addEventListener("load", () => void load().then((assets) => {
9898

9999
// Settings
100100

101-
const pane = new Pane({ container: container.querySelector(".tp")! });
101+
const pane = new Pane({ container: container.querySelector<HTMLElement>(".tp")! });
102102
const fpsGraph = Utils.createFPSGraph(pane);
103103

104104
const folder = pane.addFolder({ title: "Settings" });

manual/assets/js/src/demos/depth-of-field.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ window.addEventListener("load", () => void load().then((assets) => {
150150

151151
// Settings
152152

153-
const pane = new Pane({ container: container.querySelector(".tp")! });
153+
const pane = new Pane({ container: container.querySelector<HTMLElement>(".tp")! });
154154
const fpsGraph = Utils.createFPSGraph(pane);
155155

156156
/*

manual/assets/js/src/demos/depth-picking.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,11 @@ window.addEventListener("load", () => void load().then((assets) => {
135135

136136
}
137137

138-
container.addEventListener("pointermove", (e) => void pickDepth(e), { passive: true });
138+
container.addEventListener("pointermove", (e) => void pickDepth(e as PointerEvent), { passive: true });
139139

140140
// Settings
141141

142-
const pane = new Pane({ container: container.querySelector(".tp")! });
142+
const pane = new Pane({ container: container.querySelector<HTMLElement>(".tp")! });
143143
const fpsGraph = Utils.createFPSGraph(pane);
144144

145145
// Resize Handler

manual/assets/js/src/demos/fxaa.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ window.addEventListener("load", () => void load().then((assets) => {
102102

103103
// Settings
104104

105-
const pane = new Pane({ container: container.querySelector(".tp")! });
105+
const pane = new Pane({ container: container.querySelector<HTMLElement>(".tp")! });
106106
const fpsGraph = Utils.createFPSGraph(pane);
107107

108108
const folder = pane.addFolder({ title: "Settings" });

manual/assets/js/src/demos/gbuffer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ window.addEventListener("load", () => void load().then((assets) => {
121121
const gBufferOptions = Object.assign({ NONE: "" }, Utils.enumToRecord(GBuffer));
122122
bufferDebugPass.bufferFocus = gBufferOptions.NONE;
123123

124-
const pane = new Pane({ container: container.querySelector(".tp")! });
124+
const pane = new Pane({ container: container.querySelector<HTMLElement>(".tp")! });
125125
const fpsGraph = Utils.createFPSGraph(pane);
126126
const folder = pane.addFolder({ title: "Settings" });
127127
folder.addBinding(bufferDebugPass, "bufferFocus", { options: gBufferOptions });

0 commit comments

Comments
 (0)