Skip to content

Commit

Permalink
feat(package): skillcheck typings
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeWasTakenn committed Oct 18, 2022
1 parent d4b331c commit 5c48537
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions package/client/resource/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export * from './interface/menu';
export * from './interface/notify';
export * from './interface/progress';
export * from './interface/textui';
export * from './interface/skillcheck';

export * from './streaming';

Expand Down
4 changes: 4 additions & 0 deletions package/client/resource/interface/skillcheck.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
type SkillCheckDifficulty = 'easy' | 'medium' | 'hard' | { areaSize: number; speedMultiplier: number };

export const skillCheck = (difficulty: SkillCheckDifficulty | SkillCheckDifficulty[]) =>
exports.ox_lib.skillCheck(difficulty);

0 comments on commit 5c48537

Please sign in to comment.