Skip to content

Commit

Permalink
fix(flex-offset): correct type when using with 'strictNullChecks'
Browse files Browse the repository at this point in the history
  • Loading branch information
Teamop committed Dec 17, 2018
1 parent d322ea7 commit 744ecef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/flex/flex-offset/flex-offset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ export class FlexOffsetStyleBuilder extends StyleBuilder {
offset = offset + '%';
}
const horizontalLayoutKey = parent.isRtl ? 'margin-right' : 'margin-left';
const styles = isFlowHorizontal(parent.layout) ? {[horizontalLayoutKey]: `${offset}`} :
{'margin-top': `${offset}`};
const styles: StyleDefinition = isFlowHorizontal(parent.layout) ?
{[horizontalLayoutKey]: `${offset}`} : {'margin-top': `${offset}`};

return styles;
}
Expand Down

0 comments on commit 744ecef

Please sign in to comment.