Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 505 Bytes

scalars.md

File metadata and controls

30 lines (20 loc) · 505 Bytes
title
Scalars

Scalars

These are types without any fields(For example string, int32, boolean, etc.)

Scalar can be declared using the scalar keyword

scalar ternary;

Extend another scalar

Scalar can be extended using the extends keyword.

scalar Password extends string;

Template scalar

Scalar support template parameters. Note: the only use for those template are decorators.

@doc(Type)
scalar Unreal<Type extends string>;