Skip to content

kfly8/Type-Simple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Actions Status MetaCPAN Release

NAME

Type::Simple - Minimalist type constraints with Moo(se)

SYNOPSIS

use Type::Simple type => qw(Int Str Dict);

type ID => Int;

type User => Dict[
    id   => ID,
    name => Str,
];

my $user = { id => 1, name => "John" };
ok User->check($user);

DESCRIPTION

Type::Simple is a type constraint module designed with five key objectives:

  • Instant Start

    Simple, so you can start using it in no time.

  • Powerful Simplicity

    Its simplicity belies its power. By combining built-in types and utilities, you can create potent type constraints. For instance, it has enabled the porting of GraphQL-JS.

  • Broad Compatibility

    Types defined using Type::Simple are compatible and can coexist with modules like Moo, Moose, Mouse, Function::Parameters, and Type::Params.

  • Developer-Friendly

    Provides clear and helpful feedback during type errors to enhance the developer's experience.

  • Speed Matters

    Leveraging XS modules, the built-in types work faster, because faster is always better.

LICENSE

Copyright (C) kobaken.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

kobaken kentafly88@gmail.com

About

Minimalist type constraints with Moo(se)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages