Skip to content

eganjs/protocol-lib

Repository files navigation

protocol-lib

Build

Protocols for better structural typing

Goals

Implement Protocols for:

  • Container
  • Hashable
  • Iterable
  • Iterator
  • Reversible
  • Generator
  • Sized
  • Callable
  • Collection
  • Sequence
  • MutableSequence
  • ByteString
  • Set
  • MutableSet
  • Mapping
  • MutableMapping
  • MappingView
  • ItemsView
  • KeysView
  • ValuesView
  • Awaitable
  • Coroutine
  • AsyncIterable
  • AsyncIterator
  • AsyncGenerator

Notes

Generator is not currently implemented in this library. This is due to challenges encountered when attempting to implement it.

Updating project config

To edit project configuration, update the .projenrc.js file in the root of the project and run make projen.