bynk.consumes.type_alias_unknown_export
Error consumes U { T as Alias } names a type U does not export.
consumes payment { AuthId as Auth } brings a type that payment exports in under another name, so the type has to be one it exports. A misspelt name, or a type that payment keeps to itself, is the usual cause. Correct the name, or ask payment to export the type.
Example
context shop
consumes payment { AuthIdd as Auth } // ✗ `payment` exports no `AuthIdd`
consumes payment { AuthId as Auth } // ✓ a type it exportsIn the Book
See also
- The grammar rule it governs:
consumes_decl. - Every code in its category, Consumes, on the diagnostic index.
bynk explain bynk.consumes.type_alias_unknown_exportshows the same from the installed toolchain, without a network.