Typed
Generated from the engine's own definition: compute-engine's symbol, which we neither extend nor document by hand. No examples yet — the crosswalk is the reason it has a page.
Ascribe a type to an expression. The type is asserted for the type system. At evaluation, a concrete value that does not conform to the type is an incompatible-type error; any other value is returned unchanged. Used to annotate Function literal parameters and return types.
Typed(any, string | symbol) -> unknownas compute-engine declares itTyped signatures
| Type | Package | Applies |
|---|---|---|
(any, string | symbol) -> unknown | compute-engine | always |