refactor(banners): ♻️ rename config param to
`libConfig`
This commit is contained in:
@@ -11,7 +11,7 @@ export default async function banner({
|
||||
title,
|
||||
subtitle = '',
|
||||
layout = 'horizontal',
|
||||
config,
|
||||
libConfig: config,
|
||||
}) {
|
||||
if (layout === 'horizontal') {
|
||||
title = truncateText(title, 45);
|
||||
|
||||
2
packages/banners/src/types.d.ts
vendored
2
packages/banners/src/types.d.ts
vendored
@@ -15,7 +15,7 @@ export interface BannerOptions {
|
||||
title: string,
|
||||
subtitle?: string,
|
||||
layout?: 'horizontal' | 'vertical' = 'horizontal',
|
||||
config?: {
|
||||
libConfig?: {
|
||||
reader?: Reader,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user