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

added fetch api type definitions extracted from official dom lib using ts-graft #93

Merged
merged 1 commit into from Mar 12, 2021

Commits on Mar 12, 2021

  1. added fetch api type definitions extracted from official dom lib usin…

    …g ts-graft
    
    lib.fetch.d.ts includes all types from the dom lib needed to define the
    fetch function and the Request, Response, and Headers classes. The file
    was generated by ts-graft as follows:
    
    npm i --no-save typescript@4.2.3 \
    && cat <<EOF > .ts-graftrc.yaml \
    && npx ts-graft@1.0.1 \
    && rm .ts-graftrc.yaml \
    && npm un typescript
    grafts:
    - source: typescript/lib/lib.dom.d.ts
      output: lib.fetch.d.ts
      include: [RequestInfo, RequestInit, Response]
    EOF
    jstewmon committed Mar 12, 2021
    Configuration menu
    Copy the full SHA
    2fb7aa1 View commit details
    Browse the repository at this point in the history