In one of my Angular projects, I have a Typescript class called APIResponse
that I want to convert into an NPM package for use in other projects. This class is not specific to Angular like a Service
or Component
. After doing some research on creating non-Angular libraries, I found helpful information in this question.
Although the APIResponse
class uses the Angular class HttpErrorResponse
from @angular/common/http
, I'm unsure if this means I should create an Angular library or simply add a dependency to an Angular package in the package.json
. If the latter, which Angular package do I need to include?
This is my first time working on publishing an NPM package, so I'm still getting familiar with the language and terms related to the process.