mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-02 06:28:54 +00:00
7 lines
279 B
TypeScript
7 lines
279 B
TypeScript
import type { CFXCallback, CFXParameters } from '../types';
|
|
|
|
export const setCallback = (parameters?: CFXParameters | CFXCallback, cb?: CFXCallback) => {
|
|
if (cb && typeof cb === 'function') return cb;
|
|
if (parameters && typeof parameters === 'function') return parameters;
|
|
};
|