Create a class to manipulate ReadableContent. It is Buffer under the hood, but Buffer must not be used directly by other ones
- First method to be implemented is
append(...contents: ReadableContent[]): ReadableContent;
This method must replace the existing usage FormatterAdapter.appendContent, so the method FormatterAdapter.appendContent must be removed.
- The second method to be implemented is:
from(content:string), and should be used everywhere to replace the class of Buffer.from
Create a class to manipulate ReadableContent. It is Buffer under the hood, but Buffer must not be used directly by other ones
append(...contents: ReadableContent[]): ReadableContent;This method must replace the existing usage
FormatterAdapter.appendContent, so the methodFormatterAdapter.appendContentmust be removed.from(content:string), and should be used everywhere to replace the class ofBuffer.from