Skip to content

Commit

Permalink
Changed tsconfig to be able to build docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsmalm committed May 8, 2021
1 parent 5fc3848 commit aea456c
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/animation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ export abstract class Animation extends PIXI.utils.EventEmitter {
this.position = this.duration
this.stop()
}
// @ts-expect-error
this.emit("complete")
}
}
1 change: 0 additions & 1 deletion src/camera/camera-orbit-control.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export class CameraOrbitControl {
* by default.
*/
constructor(element: HTMLElement, public camera = Camera.main) {
// @ts-expect-error
this.camera.renderer.on("prerender", () => {
this.updateCamera()
})
Expand Down
1 change: 0 additions & 1 deletion src/camera/camera.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export class Camera extends Container3D implements TransformId {
constructor(public renderer: PIXI.Renderer) {
super()

// @ts-expect-error
this.renderer.on("prerender", () => {
if (!this._aspect) {
// When there is no specific aspect set, this is used for the
Expand Down
1 change: 0 additions & 1 deletion src/lighting/lighting-environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export class LightingEnvironment {
* @param renderer The renderer to use.
*/
constructor(public renderer: PIXI.Renderer, imageBasedLighting?: ImageBasedLighting) {
// @ts-expect-error
this.renderer.on("prerender", () => {
for (let light of this.lights) {
// Make sure the transform has been updated in the case where the light
Expand Down
1 change: 0 additions & 1 deletion src/picking/picking-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export class PickingManager {
constructor(public renderer: PIXI.Renderer) {
this._map = new PickingMap(this.renderer, 128 * Math.floor(this.renderer.width / this.renderer.height), 128)

// @ts-expect-error
renderer.on("postrender", () => {
// Because of how PixiJS interaction works and the design of the picking,
// the "hitTest" function needs to be called. Otherwise, in some
Expand Down
1 change: 0 additions & 1 deletion src/pipeline/post-processing-sprite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export class PostProcessingSprite extends PIXI.Sprite {
this.filters = [this._fxaa]

if (!options || !options.width || !options.height) {
// @ts-expect-error
renderer.on("prerender", () => {
this._renderTexture.resize(renderer.width, renderer.height)
})
Expand Down
1 change: 0 additions & 1 deletion src/pipeline/standard-pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export class StandardPipeline extends PIXI.ObjectRenderer {
this._shadowPass = this.addRenderPass(new ShadowRenderPass(renderer, "shadow"))
this._materialPass = this.addRenderPass(new MaterialRenderPass(renderer, "material"))

// @ts-expect-error
renderer.on("prerender", () => {
for (let pass of this._renderPasses) {
if (pass.clear) { pass.clear() }
Expand Down
9 changes: 8 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@
"downlevelIteration": true,
"sourceMap": true,
"declaration": true,
"declarationDir": "types"
"declarationDir": "types",
// Required for docs
"esModuleInterop": true,
"paths": {
"mini-signals": [
"./node_modules/resource-loader/typings/mini-signals.d.ts"
]
}
},
"include": [
"src/**/*"
Expand Down

0 comments on commit aea456c

Please sign in to comment.