adobe / adobe/aio-lib-files

Typescript error

Open
#120 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
13
Forks
10
PR merge metrics
No merged PRs in 30d

Description

### Expected Behaviour
files.d.ts line 53 should be Promise<T> instead of Promise
### Actual Behaviour
```
types/adobe/files.d.ts:53:106 - error TS2314: Generic type 'Promise' requires 1 type argument(s).

53 protected _wrapProviderRequest(requestPromise: Promise, details: any, filePathToThrowOn404: string): Promise;

```
### Reproduce Scenario (including but not limited to)

#### Steps to Reproduce

#### Platform and Version

#### Sample Code that illustrates the problem

#### Logs taken while reproducing problem

Contributor guide

Open the contributing guide

Research direction

Open types/adobe/files.d.ts at line 53 and inspect the _wrapProviderRequest declaration. Change the Promise types to match the expected generic form, then verify that the reported TS2314 error no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.