id
int64 0
3.78k
| code
stringlengths 13
37.9k
| declarations
stringlengths 16
64.6k
|
---|---|---|
900 | function declension(
scheme: FormatDistanceTokenValue,
count: number,
time: keyof Tense
) {
const group = declensionGroup(scheme, count)
const finalText = typeof group === 'string' ? group : group[time]
return finalText.replace('{{count}}', String(count))
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
901 | function declension(
scheme: FormatDistanceTokenValue,
count: number,
time: keyof Tense
) {
const group = declensionGroup(scheme, count)
const finalText = typeof group === 'string' ? group : group[time]
return finalText.replace('{{count}}', String(count))
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
902 | function declension(
scheme: FormatDistanceTokenValue,
count: number,
time: keyof Tense
) {
const group = declensionGroup(scheme, count)
const finalText = typeof group === 'string' ? group : group[time]
return finalText.replace('{{count}}', String(count))
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
903 | function declension(
scheme: FormatDistanceTokenValue,
count: number,
time: keyof Tense
) {
const group = declensionGroup(scheme, count)
const finalText = typeof group === 'string' ? group : group[time]
return finalText.replace('{{count}}', String(count))
} | type FormatDistanceTokenValue =
| {
type?: undefined
regular: Plural
past?: Plural
future?: Plural
}
| {
type: 'weeks'
one: string
other: string
}
// eslint-disable-next-line no-unused-vars
| ((options?: FormatDistanceFnOptions) => string) |
904 | function declension(
scheme: FormatDistanceTokenValue,
count: number,
time: keyof Tense
) {
const group = declensionGroup(scheme, count)
const finalText = typeof group === 'string' ? group : group[time]
return finalText.replace('{{count}}', String(count))
} | type FormatDistanceTokenValue = string |
905 | function declension(
scheme: FormatDistanceTokenValue,
count: number,
time: keyof Tense
) {
const group = declensionGroup(scheme, count)
const finalText = typeof group === 'string' ? group : group[time]
return finalText.replace('{{count}}', String(count))
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
906 | function declension(
scheme: FormatDistanceTokenValue,
count: number,
time: keyof Tense
) {
const group = declensionGroup(scheme, count)
const finalText = typeof group === 'string' ? group : group[time]
return finalText.replace('{{count}}', String(count))
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
907 | function declension(
scheme: FormatDistanceTokenValue,
count: number,
time: keyof Tense
) {
const group = declensionGroup(scheme, count)
const finalText = typeof group === 'string' ? group : group[time]
return finalText.replace('{{count}}', String(count))
} | type FormatDistanceTokenValue = (
// eslint-disable-next-line no-unused-vars
count: number,
// eslint-disable-next-line no-unused-vars
options?: FormatDistanceFnOptions
) => string |
908 | function declension(
scheme: FormatDistanceTokenValue,
count: number,
time: keyof Tense
) {
const group = declensionGroup(scheme, count)
const finalText = typeof group === 'string' ? group : group[time]
return finalText.replace('{{count}}', String(count))
} | type FormatDistanceTokenValue = string | Tense | Plural |
909 | function declension(
scheme: FormatDistanceTokenValue,
count: number,
time: keyof Tense
) {
const group = declensionGroup(scheme, count)
const finalText = typeof group === 'string' ? group : group[time]
return finalText.replace('{{count}}', String(count))
} | type FormatDistanceTokenValue =
| string
| {
one: string
two: string
threeToTen: string
other: string
} |
910 | function declension(
scheme: FormatDistanceTokenValue,
count: number,
time: keyof Tense
) {
const group = declensionGroup(scheme, count)
const finalText = typeof group === 'string' ? group : group[time]
return finalText.replace('{{count}}', String(count))
} | type FormatDistanceTokenValue =
| string
| {
one: string
two: string
other: string
} |
911 | function declension(
scheme: FormatDistanceTokenValue,
count: number,
time: keyof Tense
) {
const group = declensionGroup(scheme, count)
const finalText = typeof group === 'string' ? group : group[time]
return finalText.replace('{{count}}', String(count))
} | type FormatDistanceTokenValue =
| {
type?: undefined
one: Tense
few: Tense
many: Tense
}
| {
type: 'other'
other: Tense
} |
912 | function declension(
scheme: FormatDistanceTokenValue,
count: number,
time: keyof Tense
) {
const group = declensionGroup(scheme, count)
const finalText = typeof group === 'string' ? group : group[time]
return finalText.replace('{{count}}', String(count))
} | type FormatDistanceTokenValue = {
one: string
other: string
// eslint-disable-next-line no-unused-vars
futureTense: (text: string) => string
} |
913 | function declension(
scheme: FormatDistanceTokenValue,
count: number,
time: keyof Tense
) {
const group = declensionGroup(scheme, count)
const finalText = typeof group === 'string' ? group : group[time]
return finalText.replace('{{count}}', String(count))
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
oneWithSuffix?: string
otherWithSuffix?: string
} |
914 | function declension(
scheme: FormatDistanceTokenValue,
count: number,
time: keyof Tense
) {
const group = declensionGroup(scheme, count)
const finalText = typeof group === 'string' ? group : group[time]
return finalText.replace('{{count}}', String(count))
} | type FormatDistanceTokenValue =
| string
| {
one: {
standalone: string
withPrepositionAgo: string
withPrepositionIn: string
}
dual: string
other: string
} |
915 | function declension(
scheme: FormatDistanceTokenValue,
count: number,
time: keyof Tense
) {
const group = declensionGroup(scheme, count)
const finalText = typeof group === 'string' ? group : group[time]
return finalText.replace('{{count}}', String(count))
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
916 | function declension(
scheme: FormatDistanceTokenValue,
count: number,
time: keyof Tense
) {
const group = declensionGroup(scheme, count)
const finalText = typeof group === 'string' ? group : group[time]
return finalText.replace('{{count}}', String(count))
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
917 | function declension(
scheme: FormatDistanceTokenValue,
count: number,
time: keyof Tense
) {
const group = declensionGroup(scheme, count)
const finalText = typeof group === 'string' ? group : group[time]
return finalText.replace('{{count}}', String(count))
} | type FormatDistanceTokenValue =
| string
| {
one: string
two: string
threeToTen: string
other: string
} |
918 | function declension(
scheme: FormatDistanceTokenValue,
count: number,
time: keyof Tense
) {
const group = declensionGroup(scheme, count)
const finalText = typeof group === 'string' ? group : group[time]
return finalText.replace('{{count}}', String(count))
} | type FormatDistanceTokenValue = {
standalone: Plural | string
withPreposition: Plural | string
} |
919 | function declension(
scheme: FormatDistanceTokenValue,
count: number,
time: keyof Tense
) {
const group = declensionGroup(scheme, count)
const finalText = typeof group === 'string' ? group : group[time]
return finalText.replace('{{count}}', String(count))
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
920 | function declension(
scheme: FormatDistanceTokenValue,
count: number,
time: keyof Tense
) {
const group = declensionGroup(scheme, count)
const finalText = typeof group === 'string' ? group : group[time]
return finalText.replace('{{count}}', String(count))
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
921 | function declension(
scheme: FormatDistanceTokenValue,
count: number,
time: keyof Tense
) {
const group = declensionGroup(scheme, count)
const finalText = typeof group === 'string' ? group : group[time]
return finalText.replace('{{count}}', String(count))
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
922 | function declension(
scheme: FormatDistanceTokenValue,
count: number,
time: keyof Tense
) {
const group = declensionGroup(scheme, count)
const finalText = typeof group === 'string' ? group : group[time]
return finalText.replace('{{count}}', String(count))
} | type FormatDistanceTokenValue =
| string
| {
one: string
eleven?: string
other: string
} |
923 | function declension(
scheme: FormatDistanceTokenValue,
count: number,
time: keyof Tense
) {
const group = declensionGroup(scheme, count)
const finalText = typeof group === 'string' ? group : group[time]
return finalText.replace('{{count}}', String(count))
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
924 | function declension(
scheme: FormatDistanceTokenValue,
count: number,
time: keyof Tense
) {
const group = declensionGroup(scheme, count)
const finalText = typeof group === 'string' ? group : group[time]
return finalText.replace('{{count}}', String(count))
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
925 | function declension(
scheme: FormatDistanceTokenValue,
count: number,
time: keyof Tense
) {
const group = declensionGroup(scheme, count)
const finalText = typeof group === 'string' ? group : group[time]
return finalText.replace('{{count}}', String(count))
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
926 | function declension(
scheme: FormatDistanceTokenValue,
count: number,
time: keyof Tense
) {
const group = declensionGroup(scheme, count)
const finalText = typeof group === 'string' ? group : group[time]
return finalText.replace('{{count}}', String(count))
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
927 | function declension(
scheme: FormatDistanceTokenValue,
count: number,
time: keyof Tense
) {
const group = declensionGroup(scheme, count)
const finalText = typeof group === 'string' ? group : group[time]
return finalText.replace('{{count}}', String(count))
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
928 | function declension(
scheme: FormatDistanceTokenValue,
count: number,
time: keyof Tense
) {
const group = declensionGroup(scheme, count)
const finalText = typeof group === 'string' ? group : group[time]
return finalText.replace('{{count}}', String(count))
} | type FormatDistanceTokenValue =
| string
| {
one: {
standalone: string
withPrepositionAgo: string
withPrepositionIn: string
}
dual: string
other: string
} |
929 | <DateType extends Date>(
date: DateType,
baseDate: DateType,
options?: FormatRelativeFnOptions
) => {
const day = date.getDay()
if (isSameWeek(date, baseDate, options)) {
return thisWeek(day)
} else {
return lastWeek(day)
}
} | interface FormatRelativeFnOptions {
weekStartsOn?: Day
locale?: Locale
} |
930 | <DateType extends Date>(
date: DateType,
baseDate: DateType,
options?: FormatRelativeFnOptions
) => {
const day = date.getDay()
if (isSameWeek(date, baseDate, options)) {
return thisWeek(day)
} else {
return nextWeek(day)
}
} | interface FormatRelativeFnOptions {
weekStartsOn?: Day
locale?: Locale
} |
931 | function checkWeek(
date: Date,
baseDate: Date,
options?: FormatRelativeFnOptions
) {
const baseFormat = 'eeee p'
if (isSameWeek(date, baseDate, options)) {
return baseFormat // in same week
} else if (date.getTime() > baseDate.getTime()) {
return "'下个'" + baseFormat // in next week
}
return "'上个'" + baseFormat // in last week
} | interface FormatRelativeFnOptions {
weekStartsOn?: Day
locale?: Locale
} |
932 | function forms(key: TranslationKey): string[] {
return translations[key].split('_')
} | type TranslationKey = keyof typeof translations |
933 | function lastWeek(day: Day) {
const weekday = accusativeWeekdays[day]
switch (day) {
case 0: /* Sun */
case 3: /* Wed */
case 6 /* Sat */:
return "'minulú " + weekday + " o' p"
default:
return "'minulý' eeee 'o' p"
}
} | type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 |
934 | function thisWeek(day: Day) {
const weekday = accusativeWeekdays[day]
if (day === 4 /* Thu */) {
return "'vo' eeee 'o' p"
} else {
return "'v " + weekday + " o' p"
}
} | type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 |
935 | function nextWeek(day: Day) {
const weekday = accusativeWeekdays[day]
switch (day) {
case 0: /* Sun */
case 4: /* Wed */
case 6 /* Sat */:
return "'budúcu " + weekday + " o' p"
default:
return "'budúci' eeee 'o' p"
}
} | type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 |
936 | <DateType extends Date>(
date: DateType,
baseDate: DateType,
options?: FormatRelativeFnOptions
) => {
const day = date.getDay() as Day
if (isSameWeek(date, baseDate, options)) {
return thisWeek(day)
} else {
return lastWeek(day)
}
} | interface FormatRelativeFnOptions {
weekStartsOn?: Day
locale?: Locale
} |
937 | <DateType extends Date>(
date: DateType,
baseDate: DateType,
options?: FormatRelativeFnOptions
) => {
const day = date.getDay() as Day
if (isSameWeek(date, baseDate, options)) {
return thisWeek(day)
} else {
return nextWeek(day)
}
} | interface FormatRelativeFnOptions {
weekStartsOn?: Day
locale?: Locale
} |
938 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
939 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
940 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
941 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
942 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
943 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
944 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
945 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue = {
standalone: Plural | string
withPreposition: Plural | string
} |
946 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
two: string
threeToTen: string
other: string
} |
947 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
948 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
949 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
950 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
951 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
952 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
953 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
954 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
955 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
956 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue = Plural | Tense |
957 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
two: string
threeToTen: string
other: string
} |
958 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: {
standalone: string
withPrepositionAgo: string
withPrepositionIn: string
}
dual: string
other: string
} |
959 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue = (
// eslint-disable-next-line no-unused-vars
count: number,
// eslint-disable-next-line no-unused-vars
options?: FormatDistanceFnOptions
) => string |
960 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
961 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
two?: string
other: string
} |
962 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: {
standalone: string
withPrepositionAgo: string
withPrepositionIn: string
}
dual: string
other: string
} |
963 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue = {
standalone: string | FormatDistanceTokenForm
withPreposition: string | FormatDistanceTokenForm
} |
964 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue = {
one: string | Tense
twoFour: string
other: string
} |
965 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
966 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
oneWithSuffix?: string
otherWithSuffix?: string
} |
967 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue = {
standalone: Amount | string
withPreposition: Amount | string
} |
968 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
969 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
970 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
971 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
972 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
973 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
two?: string
other: string
} |
974 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
two?: string
twenty?: string
other: string
} |
975 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
976 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: Translater
other: Translater
} |
977 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
978 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
979 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue = {
past: string
present: string
future: string
} |
980 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue = {
one?: Tense
twoFour?: Tense
other: Tense
} |
981 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
982 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue = {
one?: Tense
other: Tense
} |
983 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
984 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
985 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
986 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
987 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| {
type?: undefined
regular: Plural
past?: Plural
future?: Plural
}
| {
type: 'weeks'
one: string
other: string
}
// eslint-disable-next-line no-unused-vars
| ((options?: FormatDistanceFnOptions) => string) |
988 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue = string |
989 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
990 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
991 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue = (
// eslint-disable-next-line no-unused-vars
count: number,
// eslint-disable-next-line no-unused-vars
options?: FormatDistanceFnOptions
) => string |
992 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue = string | Tense | Plural |
993 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
two: string
threeToTen: string
other: string
} |
994 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
two: string
other: string
} |
995 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| {
type?: undefined
one: Tense
few: Tense
many: Tense
}
| {
type: 'other'
other: Tense
} |
996 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue = {
one: string
other: string
// eslint-disable-next-line no-unused-vars
futureTense: (text: string) => string
} |
997 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
oneWithSuffix?: string
otherWithSuffix?: string
} |
998 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: {
standalone: string
withPrepositionAgo: string
withPrepositionIn: string
}
dual: string
other: string
} |
999 | function declensionGroup(scheme: FormatDistanceTokenValue, count: number) {
if (count === 1 && scheme.one) {
return scheme.one
}
if (count >= 2 && count <= 4 && scheme.twoFour) {
return scheme.twoFour
}
// if count === null || count === 0 || count >= 5
return scheme.other
} | type FormatDistanceTokenValue =
| string
| {
one: string
other: string
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.