Type-Alias

 view release on metacpan or  search on metacpan

README.md  view on Meta::CPAN


```perl
type ID => Str;

ID->check('foo'); # OK
```

Internally `ID` is equivalent to the following type:

```perl
sub ID() { Str }
```

#### `$type_args` is an undefined value

Given a undefined value in `$type_args`, it returns the type constraint defined by Type::Tiny's Undef type.

```perl
type Foo => Undef;

Foo->check(undef); # OK



( run in 1.842 second using v1.01-cache-2.11-cpan-524268b4103 )