Giter Site home page Giter Site logo

Comments (7)

fatcerberus avatar fatcerberus commented on April 27, 2024 2

The Cursed? tag doesn't get used often so it's always a hoot when I see it. I love that it exists.

from typescript.

RyanCavanaugh avatar RyanCavanaugh commented on April 27, 2024 1

What's the right tag for "PRs accepted but you'll likely have to be more clever than the entire TS team to figure it out"...

from typescript.

Andarist avatar Andarist commented on April 27, 2024

This one works today:

type Foo = '/foo' | '/foo/:id' | (`/foo/${string}` & {})

const bar: Foo = ''

It likely has changed in #56434

from typescript.

jakebailey avatar jakebailey commented on April 27, 2024

Yes, that was the intended change for people to make:

image

Of course, that doesn't work before TS 5.3. See also #54188 (#56434 was in 5.4 which "finalized" the behavior).

from typescript.

RyanCavanaugh avatar RyanCavanaugh commented on April 27, 2024

Would accept a (very) non-invasive/non-impactful PR to allow both workarounds to work

from typescript.

jakebailey avatar jakebailey commented on April 27, 2024

My understanding from the design meeting discussions surrounding #56434 (#56450 ?) is that doing that was a problem as it involved traversing deeply into the elements (which I originally added but Anders removed?)

from typescript.

jakebailey avatar jakebailey commented on April 27, 2024

cursed

from typescript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.