-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.kanelrc.cjs
40 lines (33 loc) · 1.09 KB
/
.kanelrc.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
function ÉvènementPhaseDossier_phase_typeDossierPhase(output){
const ÉvènementPhaseDossierKey = 'scripts/types/database/public/ÉvènementPhaseDossier'
const {declarations} = output[ÉvènementPhaseDossierKey]
const int0 = declarations[0]
const prop0 = int0.properties[0]
//console.log('prop0', prop0)
for(const {properties} of declarations){
for(const prop of properties){
if(prop.name === 'phase'){
prop.typeImports = [
{
name: 'DossierPhase',
path: 'scripts/types/API_Pitchou.ts',
isAbsolute: false,
isDefault: false,
importAsType: true
}
]
prop.typeName = 'DossierPhase'
}
}
//console.log('properties', intface.properties)
}
return output
}
module.exports = {
customTypeMap: {
'pg_catalog.bytea': 'Buffer'
},
preRenderHooks: [
ÉvènementPhaseDossier_phase_typeDossierPhase
]
}