Commit b8bbb0ed by G

renamed imports for types. Types -> types

parent ab833533
import type { PaymentCode } from "@/utils/requests/Types"; import type { PaymentCode } from "@/utils/requests/types";
import { images } from "@styles/Commons"; import { images } from "@styles/Commons";
import { Image, TouchableOpacity } from "react-native"; import { Image, TouchableOpacity } from "react-native";
import Box from "./bases/Box"; import Box from "./bases/Box";
......
import type { PaymentCode } from "@/utils/requests/Types"; import type { PaymentCode } from "@/utils/requests/types";
import moment from "moment"; import moment from "moment";
import "moment/locale/fr"; import "moment/locale/fr";
import PaymentOption from "./PaymentOption"; import PaymentOption from "./PaymentOption";
......
import type { PaymentCode } from "@/utils/requests/Types"; import type { PaymentCode } from "@/utils/requests/types";
import type { IwaveStarterRespone } from "@/utils/requests/wavePayment"; import type { IwaveStarterRespone } from "@/utils/requests/wavePayment";
import type { NativeStackScreenProps } from "@react-navigation/native-stack"; import type { NativeStackScreenProps } from "@react-navigation/native-stack";
......
import { configLoggerType, consoleTransport, logger } from "react-native-logs"; import { type configLoggerType, consoleTransport, logger } from "react-native-logs";
const levels = { const levels = {
error: 6, error: 6,
warn: 5, warn: 5,
info: 4, info: 4,
http: 3, http: 3,
verbose: 2, verbose: 2,
debug: 1, debug: 1,
silly: 0 silly: 0,
}; };
const colors = { const colors = {
error: "redBright", error: "redBright",
warn: "yellowBright", warn: "yellowBright",
info: "whiteBright", info: "whiteBright",
http: "blueBright", http: "blueBright",
verbose: "cyanBright", verbose: "cyanBright",
debug: "greenBright", debug: "greenBright",
silly: "magentaBright" silly: "magentaBright",
}; };
const defaultConfig : configLoggerType = { const defaultConfig: configLoggerType = {
levels, levels,
severity : "silly", severity: "silly",
transport : consoleTransport, transport: consoleTransport,
transportOptions : { transportOptions: {
colors colors,
}, },
async : true, async: true,
dateFormat : "iso", dateFormat: "iso",
printLevel : true, printLevel: true,
printDate : true, printDate: true,
enabled : true, enabled: true,
} };
const LOG = logger.createLogger<keyof typeof levels>(defaultConfig); const LOG = logger.createLogger<keyof typeof levels>(defaultConfig);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment