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

Commits on Mar 18, 2021

  1. add missing fetch api types from constructor signatures

    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 committed Mar 18, 2021
    Copy the full SHA
    478c242 View commit details
    Browse the repository at this point in the history