lisan-types
Advanced tools
Comparing version 0.0.35 to 0.0.36
@@ -10,13 +10,21 @@ // Dictionary | ||
type TMethod = (entryKey: string, placeholders: Placeholders) => string; | ||
type TMethod = (entryKey: string, placeholders?: Placeholders) => string; | ||
type CMethod = ( | ||
entryKey: string, | ||
value: string | number, | ||
placeholders: Placeholders, | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
value: any, | ||
placeholders?: Placeholders, | ||
) => string; | ||
interface TranslateFunctions { | ||
t: TMethod; | ||
c: CMethod; | ||
} | ||
type DictionaryEntryHelpers = FormatFunctions & TranslateFunctions; | ||
type DictionaryEntryFunction = ( | ||
placeholders: Placeholders, | ||
fns?: { t: TMethod; c: CMethod } | Record<string, FormatFunction>, | ||
fns: DictionaryEntryHelpers, | ||
) => string; | ||
@@ -45,2 +53,3 @@ | ||
FormatFunctions, | ||
DictionaryEntryHelpers, | ||
}; |
{ | ||
"name": "lisan-types", | ||
"version": "0.0.35", | ||
"version": "0.0.36", | ||
"description": "Lisan Typescript Type Declarations", | ||
@@ -27,3 +27,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "febf84caed8c70fa8884660b5215259c1ebe327d" | ||
"gitHead": "4872282c21852106abd1979ee6dc6586f1923bda" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6159
138