Border style type issue
vinaysharma14 opened this issue · 5 comments
vinaysharma14 commented
sindresorhus commented
It's an enum in TS. Look at https://github.com/sindresorhus/boxen/blob/master/index.d.ts
vinaysharma14 commented
@sindresorhus so how would you suggest to pass the value then? The app won't compile due to this error.
sindresorhus commented
Look at the type tests. You just use it like any TS enum.
vinaysharma14 commented
By types tests you mean this file, right? Well, the screenshot above literally uses the code snippet from the usage in readme. How else am I supposed to use it?
console.log(boxen('unicorn', { padding: 1, margin: 1, borderStyle: 'double' }));