Skip to content

Create index.d.ts#1

Open
muzammal1 wants to merge 1 commit intomasterfrom
muzammal1-patch-for-outdating-http-1
Open

Create index.d.ts#1
muzammal1 wants to merge 1 commit intomasterfrom
muzammal1-patch-for-outdating-http-1

Conversation

@muzammal1
Copy link
Copy Markdown
Owner

Http module has been deprecated in angular and according to http module author recommendation we need to import headers from common/http

Please fill in this template.

Select one of these and delete the others:

If adding a new definition:

  • The package does not already provide its own types, or cannot have its .d.ts files generated via --declaration
  • If this is for an npm package, match the name. If not, do not conflict with the name of an npm package.
  • Create it with dts-gen --dt, not by basing it on an existing project.
  • Represents shape of module/library correctly
  • tslint.json should contain { "extends": "@definitelytyped/dtslint/dt.json" }, and no additional rules.
  • tsconfig.json should have noImplicitAny, noImplicitThis, strictNullChecks, and strictFunctionTypes set to true.

If changing an existing definition:

  • Provide a URL to documentation or source code which provides context for the suggested changes: <>
  • If this PR brings the type definitions up to date with a new version of the JS library, update the version number in the header.

If removing a declaration:

  • If a package was never on Definitely Typed, you don't need to do anything. (If you wrote a package and provided types, you don't need to register it with us.)
  • Delete the package's directory.
  • Add it to notNeededPackages.json.

Http module has been deprecated in angular and according to http module author recommendation  we need to import headers from common/http
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.

1 participant