Problem with BorderStyle
j2pb opened this issue · 2 comments
import * as boxen from 'boxen';
console.log(boxen("text", { padding: 1, margin: 1, borderStyle: 'double'}));
returns
....Type '"double"' is not assignable to type 'BorderStyle | CustomBorderStyle'.
The answer is easily discoverable if you spend just a little bit of time debugging.
Line 24 in c577620
Am I correct to say that when using const enums for BorderStyle
, typescript projects compiled with the --isolatedModules flag will not be able to use BorderStyle
? I think --isolatedModules is sort of required when compiling with babel.
For example, I get the following error when trying to access BorderStyle:
Cannot access ambient const enums when the '--isolatedModules' flag is provided.ts(2748)
Am I missing something?