import { success, err } from '@orago/status';
success('Everything works!', { cat: 'meow' });
// Result =>
{
response: 'Everything works!',
status: true,
cat: 'meow'
}
err('Something went wrong!', { userID: 5 });
// Result =>
{
response: 'Something went wrong!',
status: false,
userID: 5
}
success({ something: 'random' }, { dog: 'woof' });
// Result =>
{
response: { something: 'random' },
status: true,
dog: 'woof'
}
-
Notifications
You must be signed in to change notification settings - Fork 0
Orago/status-responses
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published