Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

chore(typings): remove ptor from gulp types #3307

Merged
merged 1 commit into from
Jun 28, 2016

Conversation

cnishina
Copy link
Contributor

  • after investigation, variables in the namespace cannot be assigned a value

  • types will require import of the classes and then setting the value from global

    import {Browser} from 'protractor';
    var browser: Browser = global['browser'];
    

@cnishina
Copy link
Contributor Author

Here's a sample typescript file for the proposed change.

https://github.com/cnishina/protractor-typings/blob/master/src/spec.ts

@cnishina cnishina added this to the 4.0.0 milestone Jun 27, 2016
- after investigation, variables in the namespace cannot be assigned a value
- types will require import of the classes and then setting the value from global

  ```
  import {Browser} from 'protractor';
  var browser: Browser = global['browser'];
  ```

- update typing tests to set the value of the type
@cnishina cnishina mentioned this pull request Jun 27, 2016
@cnishina cnishina merged commit 5dab402 into angular:master Jun 28, 2016
@cnishina cnishina deleted the fix_typings branch June 29, 2016 20:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants