Creates a standardized success response
The data to include in the success response
SuccessResponse object with the data and null error
const result = success({ id: '123', name: 'John' });// Result: { data: { id: '123', name: 'John' }, error: null } Copy
const result = success({ id: '123', name: 'John' });// Result: { data: { id: '123', name: 'John' }, error: null }
Creates a standardized success response