Function defineWrite
-
Parameters
- pattern: string
- declaration: ResourceWriteDeclaration
Returns ResourceWrite
-
Declares a write class, or with a route pattern a resource write: the request reaches the server once and the device applies the rows the server reports. A class throws
bad-writefor a public scope, a kind other thanlast-value, a name or pattern that does not parse, a missing function or a limit that is not a positive integer within its cap.Parameters
- declaration: WriteDeclaration
Returns Write
Declares a write class, or with a route pattern a resource write: the request reaches the server once and the device applies the rows the server reports. A class throws
bad-writefor a public scope, a kind other thanlast-value, a name or pattern that does not parse, a missing function or a limit that is not a positive integer within its cap.