Skip to content

Commit 30a4645

Browse files
farnabazlarbish
andcommitted
fix: remove typescript package types from meta data
Co-authored-by: Baptiste Leproux <[email protected]>
1 parent f544d51 commit 30a4645

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/parser.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,16 @@ function stripeTypeScriptInternalTypesSchema (type: any): any {
262262

263263
const schema: any = {}
264264
Object.keys(type.schema).forEach((sch) => {
265+
if (sch === 'schema' && type.schema[sch]) {
266+
schema[sch] = schema[sch] || {}
267+
Object.keys(type.schema[sch]).forEach((sch2) => {
268+
const res = stripeTypeScriptInternalTypesSchema(type.schema[sch][sch2]);
269+
if (res !== false) {
270+
schema[sch][sch2] = res;
271+
}
272+
})
273+
return
274+
}
265275
const res = stripeTypeScriptInternalTypesSchema(type.schema[sch])
266276

267277
if (res !== false) {

0 commit comments

Comments
 (0)