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

Change $$iterator and $$asyncIterator to unique symbols in declaration file #50

Merged
merged 1 commit into from
Jan 3, 2020

Conversation

stephentuso
Copy link
Contributor

From the docs:

To enable treating symbols as unique literals a new type unique symbol is available

That seems appropriate here. Additionally, only unique symbols can be referenced in types, e.g.

import { $$asyncIterator } from 'iterall'

type IterallAsyncIterable<T> {
  [$$asyncIterator]: AsyncIterator<T>
}

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling f3e0e3d on stephentuso:unique-symbols into 76ce9a5 on leebyron:master.

@leebyron leebyron merged commit 0451f6c into leebyron:master Jan 3, 2020
@stephentuso stephentuso deleted the unique-symbols branch January 4, 2020 18:45
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.

None yet

3 participants