_comuns/dist/GEE/index.d.ts
2024-05-06 08:45:08 -03:00

21 lines
835 B
TypeScript

import { escopos, type tipoEstruturaCadastroGee, type tipoEstruturaRegistroGee, type tipoFonteObjeto, type tiposCamposGee } from "./interfaces";
export { escopos };
export type { tipoFonteObjeto };
export type { tipoEstruturaCadastroGee, tipoEstruturaRegistroGee, tiposCamposGee, };
export declare const tipoFontesGEE: tipoFonteObjeto<any, any>[];
/**
* modifica todos os parametros para que quando indefinido receba 0
tipoFontesGEE.forEach((fonte) => {
const formulaAntiga = fonte.formula
const novaFormula: typeof formulaAntiga = (pr) => {
fonte.estruturaCadastro.forEach(
(a: { tipo: tiposCamposGee; idCampo: string | number }) => {
if (a.tipo == tiposCamposGee.numero && !pr.cad[a.idCampo])
pr.cad[a.idCampo] = 0
},
)
return formulaAntiga(pr)
}
fonte.formula = novaFormula
})
*/