Skip to content

Commit

Permalink
fix: LanguageMessages type now supports languages in TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobkapitein authored and Marsup committed Jan 15, 2024
1 parent 9f60493 commit fe89d2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ declare namespace Joi {

type BasicType = boolean | number | string | any[] | object | null;

type LanguageMessages = Record<string, string>;
type LanguageMessages = Record<string, string | Record<string, string>>;

type PresenceMode = 'optional' | 'required' | 'forbidden';

Expand Down

0 comments on commit fe89d2d

Please sign in to comment.