From 5c4853798e11101752f8a0613b0be5702e430574 Mon Sep 17 00:00:00 2001 From: Luke Date: Sat, 15 Oct 2022 14:47:19 +0200 Subject: [PATCH] feat(package): skillcheck typings --- package/client/resource/index.ts | 1 + package/client/resource/interface/skillcheck.ts | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 package/client/resource/interface/skillcheck.ts diff --git a/package/client/resource/index.ts b/package/client/resource/index.ts index 300fac493..307b1377c 100644 --- a/package/client/resource/index.ts +++ b/package/client/resource/index.ts @@ -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'; diff --git a/package/client/resource/interface/skillcheck.ts b/package/client/resource/interface/skillcheck.ts new file mode 100644 index 000000000..8056354dc --- /dev/null +++ b/package/client/resource/interface/skillcheck.ts @@ -0,0 +1,4 @@ +type SkillCheckDifficulty = 'easy' | 'medium' | 'hard' | { areaSize: number; speedMultiplier: number }; + +export const skillCheck = (difficulty: SkillCheckDifficulty | SkillCheckDifficulty[]) => + exports.ox_lib.skillCheck(difficulty);