feat(package): skillcheck typings

This commit is contained in:
Luke authored and Luke committed 2022-10-18 20:03:00 +02:00
1 parent d4b331c104
commit 5c4853798e
2 files changed
+5

No files matched your search

+1
View File
@@ -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';
@@ -0,0 +1,4 @@
type SkillCheckDifficulty = 'easy' | 'medium' | 'hard' | { areaSize: number; speedMultiplier: number };
export const skillCheck = (difficulty: SkillCheckDifficulty | SkillCheckDifficulty[]) =>
exports.ox_lib.skillCheck(difficulty);