Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const makeTextStyle = (style: TextStyle, shadows?: Array): FileFormat.Style => {
const json = makeStyle(style, undefined, shadows);
json.textStyle = {
_class: 'textStyle',
encodedAttributes: makeTextStyleAttributes(style),
verticalAlignment: FileFormat.TextVerticalAlignment.Top,
};
return json;
};