Skip to content

Commit

Permalink
refactor(quad-edge): address TS strictNullChecks flag
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jun 7, 2019
1 parent 8efd286 commit c95bc8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/quad-edge/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class Edge<T> {

id: number;
parent: QuadEdge<T>;
origin: T | undefined;
origin!: T;

constructor(parent: QuadEdge<T>, id: number) {
this.parent = parent;
Expand All @@ -60,7 +60,7 @@ export class Edge<T> {
/**
* Next CCW edge from this edge's origin.
*/
onext: Edge<T> | undefined;
onext!: Edge<T>;

/**
* Next CW edge from this edge's origin.
Expand Down

0 comments on commit c95bc8f

Please sign in to comment.