1 // This is an example of a definition.
3 +glyphs <Array<String>>
10 // Allowed in the middle
11 ~>textUpdated(text <String>)
12 ->authorUpdated(author <Author>)
13 <~textWillUpdate(text <String>)
14 <-postWillRender(post <Forum.Models.Post>)
15 +>authorUpdated(author <Author>)
16 <+textWillUpdate(text <String>)
17 ::getAll(parent_id <UUID>) => Promise<Array<Forum.Models.Post>> #> NotFoundError,DisplayError
18 ::get(id <UUID>) => Promise<Forum.Models.Post>
19 #update(text <String>) => Promise<void>
20 #transform([transformer] <Function<T>(T) => boolean>)