deltaDAO / nautilus

The Data Economy TypeScript Toolkit
https://nautilus.delta-dao.com
Apache License 2.0
4 stars 2 forks source link

[Enhancement] Define Service FileType only 1 time instead of 2 times #49

Open Abrom8 opened 1 year ago

Abrom8 commented 1 year ago

Motivation / Problem

Service FileType is defined as 2nd parameter on instance creation and in the urlFile object. This should be streamlined and only be defined once to prevent mistakes.

    const serviceBuilder = new ServiceBuilder(ServiceTypes.ACCESS, FileTypes.URL) 

    const urlFile: UrlFile = {
        type: 'url',
        url: 'https://bitcoin.org/bitcoin.pdf',
        method: 'GET'
    }