Skip to content

Commit e4f56a5

Browse files
committed
refactor: update parameter types to Readonly for various validation functions
1 parent de3294e commit e4f56a5

File tree

31 files changed

+59
-31
lines changed

31 files changed

+59
-31
lines changed

src/app/[locale]/(doc-session)/documentation/js/functions/cnpjIsValid/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { LocaleParams } from "@/types/Params";
1010

1111
export default async function CnpjIsValid({
1212
params: { locale },
13-
}: LocaleParams) {
13+
}: Readonly<LocaleParams>) {
1414
setStaticParamsLocale(locale);
1515

1616
const t = await getScopedI18n("DocumentationJsFunctions");

src/app/[locale]/(doc-session)/documentation/js/functions/cpfIsValid/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ import DrawerComponent from "@/components/Drawer";
88
import { getScopedI18n } from "@/locales/server";
99
import { LocaleParams } from "@/types/Params";
1010

11-
export default async function CpfIsValid({ params: { locale } }: LocaleParams) {
11+
export default async function CpfIsValid({
12+
params: { locale },
13+
}: Readonly<LocaleParams>) {
1214
setStaticParamsLocale(locale);
1315

1416
const t = await getScopedI18n("DocumentationJsFunctions");

src/app/[locale]/(doc-session)/documentation/js/functions/getOnlyEmail/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { LocaleParams } from "@/types/Params";
1010

1111
export default async function GetOnlyEmail({
1212
params: { locale },
13-
}: LocaleParams) {
13+
}: Readonly<LocaleParams>) {
1414
setStaticParamsLocale(locale);
1515

1616
const t = await getScopedI18n("DocumentationJsFunctions");

src/app/[locale]/(doc-session)/documentation/js/functions/identifyFlagCard/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { LocaleParams } from "@/types/Params";
1010

1111
export default async function IdentifyFlagCard({
1212
params: { locale },
13-
}: LocaleParams) {
13+
}: Readonly<LocaleParams>) {
1414
setStaticParamsLocale(locale);
1515

1616
const t = await getScopedI18n("DocumentationJsFunctions");

src/app/[locale]/(doc-session)/documentation/js/functions/isAscii/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ import DrawerComponent from "@/components/Drawer";
88
import { getScopedI18n } from "@/locales/server";
99
import { LocaleParams } from "@/types/Params";
1010

11-
export default async function IsAscii({ params: { locale } }: LocaleParams) {
11+
export default async function IsAscii({
12+
params: { locale },
13+
}: Readonly<LocaleParams>) {
1214
setStaticParamsLocale(locale);
1315

1416
const t = await getScopedI18n("DocumentationJsFunctions");

src/app/[locale]/(doc-session)/documentation/js/functions/isBase64/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ import DrawerComponent from "@/components/Drawer";
88
import { getScopedI18n } from "@/locales/server";
99
import { LocaleParams } from "@/types/Params";
1010

11-
export default async function IsBase64({ params: { locale } }: LocaleParams) {
11+
export default async function IsBase64({
12+
params: { locale },
13+
}: Readonly<LocaleParams>) {
1214
setStaticParamsLocale(locale);
1315

1416
const t = await getScopedI18n("DocumentationJsFunctions");

src/app/[locale]/(doc-session)/documentation/js/functions/isCEP/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ import DrawerComponent from "@/components/Drawer";
88
import { getScopedI18n } from "@/locales/server";
99
import { LocaleParams } from "@/types/Params";
1010

11-
export default async function IsCEP({ params: { locale } }: LocaleParams) {
11+
export default async function IsCEP({
12+
params: { locale },
13+
}: Readonly<LocaleParams>) {
1214
setStaticParamsLocale(locale);
1315

1416
const t = await getScopedI18n("DocumentationJsFunctions");

src/app/[locale]/(doc-session)/documentation/js/functions/isCreditCardValid/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { LocaleParams } from "@/types/Params";
1010

1111
export default async function IsCreditCard({
1212
params: { locale },
13-
}: LocaleParams) {
13+
}: Readonly<LocaleParams>) {
1414
setStaticParamsLocale(locale);
1515

1616
const t = await getScopedI18n("DocumentationJsFunctions");

src/app/[locale]/(doc-session)/documentation/js/functions/isDate/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ import DrawerComponent from "@/components/Drawer";
88
import { getScopedI18n } from "@/locales/server";
99
import { LocaleParams } from "@/types/Params";
1010

11-
export default async function IsDate({ params: { locale } }: LocaleParams) {
11+
export default async function IsDate({
12+
params: { locale },
13+
}: Readonly<LocaleParams>) {
1214
setStaticParamsLocale(locale);
1315

1416
const t = await getScopedI18n("DocumentationJsFunctions");

src/app/[locale]/(doc-session)/documentation/js/functions/isDecimal/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ import DrawerComponent from "@/components/Drawer";
88
import { getScopedI18n } from "@/locales/server";
99
import { LocaleParams } from "@/types/Params";
1010

11-
export default async function IsDecimal({ params: { locale } }: LocaleParams) {
11+
export default async function IsDecimal({
12+
params: { locale },
13+
}: Readonly<LocaleParams>) {
1214
setStaticParamsLocale(locale);
1315

1416
const t = await getScopedI18n("DocumentationJsFunctions");

0 commit comments

Comments
 (0)