-
-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Description
Prerequisites
- I have written a descriptive issue title
- I have searched existing issues to ensure the issue has not already been raised
Issue
If I would need to implement this function I would implement it differently. E.g. calling warning.emit('XYZ') makes it necessary to lookup the existing warnings.
From the API usage I would do it like this:
const warning = require('process-warning')()
const FSTWRN001 = warning.create('FastifyWarning', 'FSTWRN001', 'The %s schema for %s: %s is missing. This may indicate the schema is not well specified.', { unlimited: true })
FSTWRN001.emit()Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels