Skip to content

Commit

Permalink
allow null
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasneirynck committed Apr 21, 2020
1 parent 7d79866 commit 237d7ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/maps/public/layers/styles/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface IStyle {
}

export class AbstractStyle implements IStyle {
readonly _descriptor: StyleDescriptor;
readonly _descriptor: StyleDescriptor | null;

constructor(descriptor: StyleDescriptor | null) {
this._descriptor = descriptor;
Expand All @@ -45,7 +45,7 @@ export class AbstractStyle implements IStyle {
return { fieldMeta: {} };
}

getDescriptor(): StyleDescriptor {
getDescriptor(): StyleDescriptor | null {
return this._descriptor;
}

Expand Down

0 comments on commit 237d7ed

Please sign in to comment.