-
the `$options` argument of the various methods in FormTypeInterface and FormTypeExtensionInterface are typed as `array` for now, because there is no other way to type them in phpdoc. However, the actu…
-
The idea is that you can use a limited form of expression to constrain a type. The syntax could look like this:
```
type positiveInt = int where self > 0;
```
The difficulty is that static type …
-
Need to provide better type safety in:
- [x] Smithy specification
- [x] [Domain](https://github.com/lenguyenthanh/fide/blob/main/modules/domain/src/main/scala/Domain.scala)
- [ ] [Config](https:/…
-
Refinement types are an important part of what we hope to add to Fathom. These should allow us to avoid the overflow and out-of-bounds access errors that are a common source of bugs and security vulne…
-
This is a further development of the idea of [tag types](https://github.com/Microsoft/TypeScript/issues/4895).
There are situations where being able to encode a certain predicate about a given value …
-
Allow refinement types to act as factory and be instantiated in different circumstances with varying parameters.
```
# define as
type GreaterThan(x :: a) := [y ~ a | y > x]
# use as
GreaterTh…
-
```ts
z.string()
.refine((s): s is FooBarString => ...)
.refine((s: FooBarString) => // no TS error, but this can get called with a non-FooBarString
...
)
```
I don't personally under…
-
**Principal refinement types refine the native [Principal](https://docs.blockstack.org/smart-contracts/principals) type with optional [traits](https://github.com/blockstack/stacks-blockchain/issues/11…
-
**Clarity should support declaring _string refinement types_** that refine the native `string` type from issue #3 with an optional character set. This is similar to the _integer refinement types_ prop…
-
```julia-repl
julia> f(t::Tuple, n::Bool) = t[10 + n]
f (generic function with 1 method)
julia> Core.Compiler.return_type(f, Tuple{Tuple{Bool,String,Vararg{Int}},Bool})
Union{Bool, Int64, String…