top | item 46018598 (no title) theogravity | 3 months ago The second example confuses me. The Person type has isCool: boolean, not an explicit true. How does using satisfies here pass coolPeopleOnly? discuss order hn newest auxiliarymoose|3 months ago You can sorta think of `satisfies Foo` as "the type is exactly the literal value, but also make sure the value could be used in the place of a Foo"
auxiliarymoose|3 months ago You can sorta think of `satisfies Foo` as "the type is exactly the literal value, but also make sure the value could be used in the place of a Foo"
auxiliarymoose|3 months ago