Skip to content
#

types

Here are 1,179 public repositories matching this topic...

sindresorhus
sindresorhus commented Mar 14, 2019

My goal is to have the best documentation for each provided type.

If something is unclear in any of the types, please comment or open a PR to improve it.

Some things you could contribute:

  • Fix typos.
  • Improved description of the type.
  • More examples.
  • Provide more real-world use-cases. This helps the user understand where a type might come in handy.
  • Add links to relevant discu
help wanted good first issue
goofiw
goofiw commented Oct 12, 2020

I'd like to add a config and the ability to have a .js config file in order to generate nestjs repositories and files that just have types. The easiest way to do this, and without introducing much additional maintenance would be to let folks supply their own generator templates.

Splitting the types to a different library might be a little tricky to add in a config, so at first it might not b

good first issue
JukkaL
JukkaL commented Nov 6, 2021

References to typing.TYPE_CHECKING are evaluated at runtime, even though they should be treated as compile-time constants. This can have a significant performance impact within hot functions.

Example:

from typing import TYPE_CHECKING  # Or from typing_extensions import ...

if TYPE_CHECKING:  # This should compile to nothing
    whatever
starlite
relsunkaev
relsunkaev commented Mar 23, 2022

Starlette's ASGI types use MutableMapping[str, Any] which is not too different from just typing them dict. This package is fully spec compliant and would help in implementing additional ASGI functionality, as it would allow us to see exactly which keys are available/required to support a feature. There is currently a PR for Starlette that addres

enhancement good first issue
kotlingrad
breandan
breandan commented Oct 25, 2020

Debugging Kotlin∇ code within IntelliJ IDEA can be somewhat cumbersome due to the functional API structure (lots of deeply-nested stack traces and context switching). To facilitate more user-friendly debugging, we should add support for visual debugging by exposing Kaliningraph’s built-in graph visualization capabilities. For example, the use

help wanted good first issue
capfredf
capfredf commented Oct 5, 2021

What version of Racket are you using?

Racket 8.2.0.8

What program did you run?


(: hi (All (r #:row)
           (-> r r)))
(define (hi a)
  a)

What should have happened?

The type checker should reject the program, because a type variable for a polymorphic row type is in fact only allowed to appear in (Class #:row-var _) in Typed Racket.

If you got an erro

corranwebster
corranwebster commented Sep 30, 2020

It is common to have Union traits of the form Union(None, <something>). As a convenience to developers, and following a similar convention in Python's typing module, we should consider having Optional(<something>) as an alternative way of writing Union(None, <something>).

An alternative would be to make allow_none metadata universally accepted across TraitType instances.

Improve this page

Add a description, image, and links to the types topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the types topic, visit your repo's landing page and select "manage topics."

Learn more