Skip to content

add missing fetch api types from constructor signatures - #96

Merged
lquixada merged 1 commit into
lquixada:mainfrom
jstewmon:fix-types
Mar 18, 2021
Merged

add missing fetch api types from constructor signatures#96
lquixada merged 1 commit into
lquixada:mainfrom
jstewmon:fix-types

Conversation

@jstewmon

@jstewmon jstewmon commented Mar 18, 2021

Copy link
Copy Markdown
Contributor

lib.fetch.d.ts was generated and validated with the following command:

npm i --no-save typescript@4.2.3 \
&& cat <<EOF > .ts-graftrc.yaml \
&& npx ts-graft@1.0.1 \
&& rm .ts-graftrc.yaml \
&& npx tsc --lib ES6 index.d.ts \
&& npm un typescript
grafts:
- source: typescript/lib/lib.dom.d.ts
  output: lib.fetch.d.ts
  include:
    - BodyInit
    - HeadersInit
    - RequestInfo
    - RequestInit
    - Response
    - ResponseInit
EOF

@jstewmon jstewmon changed the title fix: add missing types from constructor signatures add missing fetch api types from constructor signatures Mar 18, 2021
lib.fetch.d.ts was generated and validated with the following command:

npm i --no-save typescript@4.2.3 \
&& cat <<EOF > .ts-graftrc.yaml \
&& npx ts-graft@1.0.1 \
&& rm .ts-graftrc.yaml \
&& npx tsc --lib ES6 index.d.ts \
&& npm un typescript
grafts:
- source: typescript/lib/lib.dom.d.ts
  output: lib.fetch.d.ts
  include:
    - BodyInit
    - HeadersInit
    - RequestInfo
    - RequestInit
    - Response
    - ResponseInit
EOF
@lquixada

lquixada commented Mar 18, 2021

Copy link
Copy Markdown
Owner

@jstewmon thanks for the quick response! 👍 I'll add a task on CI to run a type check as well.

@lquixada
lquixada merged commit 237ef8b into lquixada:main Mar 18, 2021
@lquixada

Copy link
Copy Markdown
Owner

This also solves #94 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants