X-Git-Url: https://git.r.bdr.sh/rbdr/tree-sitter-api-notation/blobdiff_plain/5d5dd65cee63b8805a186d28660ed65072b3b88a..20fe4b1e1cee75463cd63cfe202e05e0b61d941a:/example.api diff --git a/example.api b/example.api new file mode 100644 index 0000000..37e08d8 --- /dev/null +++ b/example.api @@ -0,0 +1,19 @@ +Forum.Models.Post + +glyphs > + -id + -created_at + -parent_id + -text + -author + // Comments are also + // Allowed in the middle + ~>textUpdated(text ) + ->authorUpdated(author ) + <~textWillUpdate(text ) + <-postWillRender(post ) + +>authorUpdated(author ) + <+textWillUpdate(text ) + ::getAll(parent_id ) => Promise> #> NotFoundError,DisplayError + ::get(id ) => Promise + #update(text ) => Promise + #transform([transformer] (T) => boolean>)