Skip to content

Commit

Permalink
refactor(package): omit id from registerRadial items array
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeWasTakenn committed Feb 15, 2023
1 parent dab7e8d commit 19d8a6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package/client/resource/interface/radial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const addRadialItem = (items: RadialItem | RadialItem[]) => exports.ox_li

export const removeRadialItem = (item: string) => exports.ox_lib.removeRadialItem(item);

export const registerRadial = (radial: { id: string; items: RadialItem[] }) => exports.ox_lib.registerRadial(radial);
export const registerRadial = (radial: { id: string; items: Omit<RadialItem, 'id'>[] }) =>
exports.ox_lib.registerRadial(radial);

export const hideRadial = () => exports.ox_lib.hideRadial();

0 comments on commit 19d8a6e

Please sign in to comment.