feat(package): skillcheck typings

This commit is contained in:
Luke
2022-10-15 14:47:19 +02:00
committed by Luke
parent d4b331c104
commit 5c4853798e
2 changed files with 5 additions and 0 deletions

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';

View File

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