Skip to content

Cant use named import for delete #12

@el-davo

Description

@el-davo

Hi, I have been using your wonderful module recently and I noticed that if i try and use the delete functionality as a named import it wont compile as delete is a reserved word in javascript. For example

import {json, delete} from 'web-request';

The above throws an error because of the name "delete". Is it possible to rename this to something that is not a reserved word?

I should note that the below works, however I really like having named imports, I feel its a lot cleaner

import WebRequest from 'web-request';

WebRequest.delete('http://bla.com/bla');

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