Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add missing fetch api types from constructor signatures #96

Merged
merged 1 commit into from Mar 18, 2021

Conversation

jstewmon
Copy link
Contributor

@jstewmon jstewmon commented 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

@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
Copy link
Owner

lquixada commented Mar 18, 2021

@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
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.

None yet

2 participants