Printer Logo

Printer

Please note the project has upgraded to Next App Directories in v2.x.x

Creating Types

The type command creates an interface and type in a Printer compatible way. The generated code structure is mandatory to benefit from Printer's automatic type declarations via injections. If the type is not used for Printer decorations then there is no need to follow this code structure.

λ Usage
λ printer type [name of type]
λ Example Usage
λ printer type example
λ This command then creates
λ types/example.tsx

This then generates in the file types/example.tsx the following code.