File tree 31 files changed +59
-31
lines changed
src/app/[locale]/(doc-session)/documentation/js/functions
31 files changed +59
-31
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { LocaleParams } from "@/types/Params";
10
10
11
11
export default async function CnpjIsValid ( {
12
12
params : { locale } ,
13
- } : LocaleParams ) {
13
+ } : Readonly < LocaleParams > ) {
14
14
setStaticParamsLocale ( locale ) ;
15
15
16
16
const t = await getScopedI18n ( "DocumentationJsFunctions" ) ;
Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ import DrawerComponent from "@/components/Drawer";
8
8
import { getScopedI18n } from "@/locales/server" ;
9
9
import { LocaleParams } from "@/types/Params" ;
10
10
11
- export default async function CpfIsValid ( { params : { locale } } : LocaleParams ) {
11
+ export default async function CpfIsValid ( {
12
+ params : { locale } ,
13
+ } : Readonly < LocaleParams > ) {
12
14
setStaticParamsLocale ( locale ) ;
13
15
14
16
const t = await getScopedI18n ( "DocumentationJsFunctions" ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { LocaleParams } from "@/types/Params";
10
10
11
11
export default async function GetOnlyEmail ( {
12
12
params : { locale } ,
13
- } : LocaleParams ) {
13
+ } : Readonly < LocaleParams > ) {
14
14
setStaticParamsLocale ( locale ) ;
15
15
16
16
const t = await getScopedI18n ( "DocumentationJsFunctions" ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { LocaleParams } from "@/types/Params";
10
10
11
11
export default async function IdentifyFlagCard ( {
12
12
params : { locale } ,
13
- } : LocaleParams ) {
13
+ } : Readonly < LocaleParams > ) {
14
14
setStaticParamsLocale ( locale ) ;
15
15
16
16
const t = await getScopedI18n ( "DocumentationJsFunctions" ) ;
Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ import DrawerComponent from "@/components/Drawer";
8
8
import { getScopedI18n } from "@/locales/server" ;
9
9
import { LocaleParams } from "@/types/Params" ;
10
10
11
- export default async function IsAscii ( { params : { locale } } : LocaleParams ) {
11
+ export default async function IsAscii ( {
12
+ params : { locale } ,
13
+ } : Readonly < LocaleParams > ) {
12
14
setStaticParamsLocale ( locale ) ;
13
15
14
16
const t = await getScopedI18n ( "DocumentationJsFunctions" ) ;
Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ import DrawerComponent from "@/components/Drawer";
8
8
import { getScopedI18n } from "@/locales/server" ;
9
9
import { LocaleParams } from "@/types/Params" ;
10
10
11
- export default async function IsBase64 ( { params : { locale } } : LocaleParams ) {
11
+ export default async function IsBase64 ( {
12
+ params : { locale } ,
13
+ } : Readonly < LocaleParams > ) {
12
14
setStaticParamsLocale ( locale ) ;
13
15
14
16
const t = await getScopedI18n ( "DocumentationJsFunctions" ) ;
Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ import DrawerComponent from "@/components/Drawer";
8
8
import { getScopedI18n } from "@/locales/server" ;
9
9
import { LocaleParams } from "@/types/Params" ;
10
10
11
- export default async function IsCEP ( { params : { locale } } : LocaleParams ) {
11
+ export default async function IsCEP ( {
12
+ params : { locale } ,
13
+ } : Readonly < LocaleParams > ) {
12
14
setStaticParamsLocale ( locale ) ;
13
15
14
16
const t = await getScopedI18n ( "DocumentationJsFunctions" ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { LocaleParams } from "@/types/Params";
10
10
11
11
export default async function IsCreditCard ( {
12
12
params : { locale } ,
13
- } : LocaleParams ) {
13
+ } : Readonly < LocaleParams > ) {
14
14
setStaticParamsLocale ( locale ) ;
15
15
16
16
const t = await getScopedI18n ( "DocumentationJsFunctions" ) ;
Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ import DrawerComponent from "@/components/Drawer";
8
8
import { getScopedI18n } from "@/locales/server" ;
9
9
import { LocaleParams } from "@/types/Params" ;
10
10
11
- export default async function IsDate ( { params : { locale } } : LocaleParams ) {
11
+ export default async function IsDate ( {
12
+ params : { locale } ,
13
+ } : Readonly < LocaleParams > ) {
12
14
setStaticParamsLocale ( locale ) ;
13
15
14
16
const t = await getScopedI18n ( "DocumentationJsFunctions" ) ;
Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ import DrawerComponent from "@/components/Drawer";
8
8
import { getScopedI18n } from "@/locales/server" ;
9
9
import { LocaleParams } from "@/types/Params" ;
10
10
11
- export default async function IsDecimal ( { params : { locale } } : LocaleParams ) {
11
+ export default async function IsDecimal ( {
12
+ params : { locale } ,
13
+ } : Readonly < LocaleParams > ) {
12
14
setStaticParamsLocale ( locale ) ;
13
15
14
16
const t = await getScopedI18n ( "DocumentationJsFunctions" ) ;
Original file line number Diff line number Diff line change @@ -9,7 +9,9 @@ import DrawerComponent from "@/components/Drawer";
9
9
import { getScopedI18n } from "@/locales/server" ;
10
10
import { LocaleParams } from "@/types/Params" ;
11
11
12
- export default async function IsEmail ( { params : { locale } } : LocaleParams ) {
12
+ export default async function IsEmail ( {
13
+ params : { locale } ,
14
+ } : Readonly < LocaleParams > ) {
13
15
setStaticParamsLocale ( locale ) ;
14
16
15
17
const t = await getScopedI18n ( "DocumentationJsFunctions" ) ;
Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ import DrawerComponent from "@/components/Drawer";
8
8
import { getScopedI18n } from "@/locales/server" ;
9
9
import { LocaleParams } from "@/types/Params" ;
10
10
11
- export default async function IsEmpty ( { params : { locale } } : LocaleParams ) {
11
+ export default async function IsEmpty ( {
12
+ params : { locale } ,
13
+ } : Readonly < LocaleParams > ) {
12
14
setStaticParamsLocale ( locale ) ;
13
15
14
16
const t = await getScopedI18n ( "DocumentationJsFunctions" ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { LocaleParams } from "@/types/Params";
10
10
11
11
export default async function IsMACAddress ( {
12
12
params : { locale } ,
13
- } : LocaleParams ) {
13
+ } : Readonly < LocaleParams > ) {
14
14
setStaticParamsLocale ( locale ) ;
15
15
16
16
const t = await getScopedI18n ( "DocumentationJsFunctions" ) ;
Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ import DrawerComponent from "@/components/Drawer";
8
8
import { getScopedI18n } from "@/locales/server" ;
9
9
import { LocaleParams } from "@/types/Params" ;
10
10
11
- export default async function IsMD5 ( { params : { locale } } : LocaleParams ) {
11
+ export default async function IsMD5 ( {
12
+ params : { locale } ,
13
+ } : Readonly < LocaleParams > ) {
12
14
setStaticParamsLocale ( locale ) ;
13
15
14
16
const t = await getScopedI18n ( "DocumentationJsFunctions" ) ;
Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ import DrawerComponent from "@/components/Drawer";
8
8
import { getScopedI18n } from "@/locales/server" ;
9
9
import { LocaleParams } from "@/types/Params" ;
10
10
11
- export default async function IsNumber ( { params : { locale } } : LocaleParams ) {
11
+ export default async function IsNumber ( {
12
+ params : { locale } ,
13
+ } : Readonly < LocaleParams > ) {
12
14
setStaticParamsLocale ( locale ) ;
13
15
14
16
const t = await getScopedI18n ( "DocumentationJsFunctions" ) ;
Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ import DrawerComponent from "@/components/Drawer";
8
8
import { getScopedI18n } from "@/locales/server" ;
9
9
import { LocaleParams } from "@/types/Params" ;
10
10
11
- export default async function IsPort ( { params : { locale } } : LocaleParams ) {
11
+ export default async function IsPort ( {
12
+ params : { locale } ,
13
+ } : Readonly < LocaleParams > ) {
12
14
setStaticParamsLocale ( locale ) ;
13
15
14
16
const t = await getScopedI18n ( "DocumentationJsFunctions" ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { LocaleParams } from "@/types/Params";
10
10
11
11
export default async function IsPostalCode ( {
12
12
params : { locale } ,
13
- } : LocaleParams ) {
13
+ } : Readonly < LocaleParams > ) {
14
14
setStaticParamsLocale ( locale ) ;
15
15
16
16
const t = await getScopedI18n ( "DocumentationJsFunctions" ) ;
Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ import DrawerComponent from "@/components/Drawer";
8
8
import { getScopedI18n } from "@/locales/server" ;
9
9
import { LocaleParams } from "@/types/Params" ;
10
10
11
- export default async function IsTime ( { params : { locale } } : LocaleParams ) {
11
+ export default async function IsTime ( {
12
+ params : { locale } ,
13
+ } : Readonly < LocaleParams > ) {
12
14
setStaticParamsLocale ( locale ) ;
13
15
14
16
const t = await getScopedI18n ( "DocumentationJsFunctions" ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { LocaleParams } from "@/types/Params";
10
10
11
11
export default async function IsValidAudio ( {
12
12
params : { locale } ,
13
- } : LocaleParams ) {
13
+ } : Readonly < LocaleParams > ) {
14
14
setStaticParamsLocale ( locale ) ;
15
15
16
16
const t = await getScopedI18n ( "DocumentationJsFunctions" ) ;
Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ import DrawerComponent from "@/components/Drawer";
8
8
import { getScopedI18n } from "@/locales/server" ;
9
9
import { LocaleParams } from "@/types/Params" ;
10
10
11
- export default async function IsValidPdf ( { params : { locale } } : LocaleParams ) {
11
+ export default async function IsValidPdf ( {
12
+ params : { locale } ,
13
+ } : Readonly < LocaleParams > ) {
12
14
setStaticParamsLocale ( locale ) ;
13
15
14
16
const t = await getScopedI18n ( "DocumentationJsFunctions" ) ;
Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ import DrawerComponent from "@/components/Drawer";
8
8
import { getScopedI18n } from "@/locales/server" ;
9
9
import { LocaleParams } from "@/types/Params" ;
10
10
11
- export default async function IsValidTxt ( { params : { locale } } : LocaleParams ) {
11
+ export default async function IsValidTxt ( {
12
+ params : { locale } ,
13
+ } : Readonly < LocaleParams > ) {
12
14
setStaticParamsLocale ( locale ) ;
13
15
14
16
const t = await getScopedI18n ( "DocumentationJsFunctions" ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { LocaleParams } from "@/types/Params";
10
10
11
11
export default async function IsValidVideo ( {
12
12
params : { locale } ,
13
- } : LocaleParams ) {
13
+ } : Readonly < LocaleParams > ) {
14
14
setStaticParamsLocale ( locale ) ;
15
15
16
16
const t = await getScopedI18n ( "DocumentationJsFunctions" ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { LocaleParams } from "@/types/Params";
10
10
11
11
export default async function ValidateBRPhoneNumber ( {
12
12
params : { locale } ,
13
- } : LocaleParams ) {
13
+ } : Readonly < LocaleParams > ) {
14
14
setStaticParamsLocale ( locale ) ;
15
15
16
16
const t = await getScopedI18n ( "DocumentationJsFunctions" ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { LocaleParams } from "@/types/Params";
10
10
11
11
export default async function ValidateEmail ( {
12
12
params : { locale } ,
13
- } : LocaleParams ) {
13
+ } : Readonly < LocaleParams > ) {
14
14
setStaticParamsLocale ( locale ) ;
15
15
16
16
const t = await getScopedI18n ( "DocumentationJsFunctions" ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { LocaleParams } from "@/types/Params";
10
10
11
11
export default async function ValidateName ( {
12
12
params : { locale } ,
13
- } : LocaleParams ) {
13
+ } : Readonly < LocaleParams > ) {
14
14
setStaticParamsLocale ( locale ) ;
15
15
16
16
const t = await getScopedI18n ( "DocumentationJsFunctions" ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { LocaleParams } from "@/types/Params";
10
10
11
11
export default async function ValidatePassportNumber ( {
12
12
params : { locale } ,
13
- } : LocaleParams ) {
13
+ } : Readonly < LocaleParams > ) {
14
14
setStaticParamsLocale ( locale ) ;
15
15
16
16
const t = await getScopedI18n ( "DocumentationJsFunctions" ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { LocaleParams } from "@/types/Params";
10
10
11
11
export default async function ValidatePassword ( {
12
12
params : { locale } ,
13
- } : LocaleParams ) {
13
+ } : Readonly < LocaleParams > ) {
14
14
setStaticParamsLocale ( locale ) ;
15
15
16
16
const t = await getScopedI18n ( "DocumentationJsFunctions" ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { LocaleParams } from "@/types/Params";
10
10
11
11
export default async function ValidatePhoneNumber ( {
12
12
params : { locale } ,
13
- } : LocaleParams ) {
13
+ } : Readonly < LocaleParams > ) {
14
14
setStaticParamsLocale ( locale ) ;
15
15
16
16
const t = await getScopedI18n ( "DocumentationJsFunctions" ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { LocaleParams } from "@/types/Params";
10
10
11
11
export default async function ValidateSurname ( {
12
12
params : { locale } ,
13
- } : LocaleParams ) {
13
+ } : Readonly < LocaleParams > ) {
14
14
setStaticParamsLocale ( locale ) ;
15
15
16
16
const t = await getScopedI18n ( "DocumentationJsFunctions" ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { LocaleParams } from "@/types/Params";
10
10
11
11
export default async function ValidateTextarea ( {
12
12
params : { locale } ,
13
- } : LocaleParams ) {
13
+ } : Readonly < LocaleParams > ) {
14
14
setStaticParamsLocale ( locale ) ;
15
15
16
16
const t = await getScopedI18n ( "DocumentationJsFunctions" ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { LocaleParams } from "@/types/Params";
10
10
11
11
export default async function validateUSPhoneNumber ( {
12
12
params : { locale } ,
13
- } : LocaleParams ) {
13
+ } : Readonly < LocaleParams > ) {
14
14
setStaticParamsLocale ( locale ) ;
15
15
16
16
const t = await getScopedI18n ( "DocumentationJsFunctions" ) ;
You can’t perform that action at this time.
0 commit comments