Skip to content
On this page

.utils.AsyncFunction

The async function constructor for property schema types. See AsyncFunctionConstructor.

Usage example:

javascript
parser.parse(
  {
    callback: async () => {
      await something()
    },
  },
  {
    callback: parser.utils.AsyncFunction,
  }
)
// => a 'callback' property is valid

Released under the MIT License.