]> git.r.bdr.sh - rbdr/tree-sitter-api-notation/blob - example.api
Add lua plugin
[rbdr/tree-sitter-api-notation] / example.api
1 Forum.Models.Post
2 +glyphs <Array<String>>
3 -id <UUID>
4 -created_at <Date>
5 -parent_id <UUID>
6 -text <String>
7 -author <Author>
8 // Comments are also
9 // Allowed in the middle
10 ~>textUpdated(text <String>)
11 ->authorUpdated(author <Author>)
12 <~textWillUpdate(text <String>)
13 <-postWillRender(post <Forum.Models.Post>)
14 +>authorUpdated(author <Author>)
15 <+textWillUpdate(text <String>)
16 ::getAll(parent_id <UUID>) => Promise<Array<Forum.Models.Post>> #> NotFoundError,DisplayError
17 ::get(id <UUID>) => Promise<Forum.Models.Post>
18 #update(text <String>) => Promise<void>
19 #transform([transformer] <Function<T>(T) => boolean>)