-
-Here's an example of usage
-
-```
-HypotheticalModule
- +staticProperty <String>
- +anotherStaticProperty <Boolean>
- ::toggleAnotherStaticProperty()
- ::setStaticProperty(newValue <String>)
- -instanceProperty <Number>
- -anotherInstanceProperty <String>
- #instanceMethodSync([optionalParameter]<Boolean>) => resultOfCall <String>
- #instanceMethodAsync(someValue <Number>, [callback] <Function>) ->(error <String|null>, result <Number|null>)
+// Definitions start with object / module / class names, with namespaces
+// separated by periods. Types are marked between angular brackets.
+Definitions.Models.Post
+ // Properties.
+ +static_property <Type>
+ -instance_property <Types<Can<Be<Nested>>>>
+ // Methods. Parameters are listed in parentheses, and comma separated.
+ // Optional values are inside brackets
+ // => defines return values
+ // #> defines thrown exceptions, can be comma separated.
+ ::static_methods(parameter_label <Type>) => ReturnValueType #> BadTimesException,UnknownError
+ #update(text <String>, [options] <GlobalOptions.tOptions>) => Promise<Void>
+ // Listened Events
+ +>static_listener(parameters_expected <Bool>)
+ ->instance_listener()
+ ~>network_events(peer <Networking.Peer>)
+ // Emitted Events
+ <+emitted_statically(payload <StaticEventPayload>)
+ <-emitted_by_instance(reason <String>, code <Int>)
+ <~emitted_through_network(text <String>)