Skip to content

feature TypeScript definitions: add @types/angular-http-status #3

@igorlino

Description

@igorlino

Hi,

I'm migrating my angular 1.x code into TypeScript, and there seems to be no type definition for angular-http-status.

Typically: @types/angular-http-status would be available.

The pattern to follow could be:
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/angular-ui-bootstrap/index.d.ts

A probably type for HttpCodes constant could be:

interface IHttpCodes {
CONTINUE  number;
SWITCHING_PROTOCOLS: number;
...
..
.
}

If the type definition file would be available, it would supper easly to consume/auto-complete codes of the HttpCodes constant.

How add a new Type is shown here :
https://github.com/DefinitelyTyped/DefinitelyTyped

-Thanks,
Igor

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions