[MVPTN-68] fix(Tipagem): Remove as tipagem de saída
This commit is contained in:
parent
639fc5e9fd
commit
c20f3ee64a
3 changed files with 3 additions and 5 deletions
|
|
@ -1,8 +1,7 @@
|
||||||
import API from "@/services/api/Api";
|
import API from "@/services/api/Api";
|
||||||
import { Methods } from "@/services/api/enums/ApiMethodEnum";
|
import { Methods } from "@/services/api/enums/ApiMethodEnum";
|
||||||
import GTBRegimeBensInterface from "../../_interfaces/GTBRegimeBensInterface";
|
|
||||||
|
|
||||||
export default async function GTBRegimeBensIndexData(): Promise<GTBRegimeBensInterface> {
|
export default async function GTBRegimeBensIndexData() {
|
||||||
|
|
||||||
const api = new API();
|
const api = new API();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import GTBRegimeBensInterface from "../../_interfaces/GTBRegimeBensInterface";
|
||||||
export const useGTBRegimeBensReadHook = () => {
|
export const useGTBRegimeBensReadHook = () => {
|
||||||
|
|
||||||
const { setResponse } = useResponse();
|
const { setResponse } = useResponse();
|
||||||
const [gTBRegimeBens, setGTBRegimeBens] = useState<GTBRegimeBensInterface[] | null>(null);
|
const [gTBRegimeBens, setGTBRegimeBens] = useState<GTBRegimeBensInterface[]>([]);
|
||||||
|
|
||||||
const fetchGTBRegimeBens = async () => {
|
const fetchGTBRegimeBens = async () => {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
import GTBRegimeBensIndexData from "../../_data/GTBRegimeBens/GTBRegimeBensIndexData";
|
import GTBRegimeBensIndexData from "../../_data/GTBRegimeBens/GTBRegimeBensIndexData";
|
||||||
import GTBRegimeBensInterface from "../../_interfaces/GTBRegimeBensInterface";
|
|
||||||
|
|
||||||
export default async function GTBRegimeBensIndexService(): Promise<GTBRegimeBensInterface> {
|
export default async function GTBRegimeBensIndexService() {
|
||||||
|
|
||||||
const response = await GTBRegimeBensIndexData();
|
const response = await GTBRegimeBensIndexData();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue