MasatoDev / boostest

14 stars 0 forks source link

Feat/support nest obj #21

Closed MasatoDev closed 2 months ago

MasatoDev commented 2 months ago

done it https://github.com/MasatoDev/boostest/issues/19.

export function boostestNestedInterface<T>(args?: Partial<T>): T {
    return ({
        'a':10,
        'b':'test string data',
        'c':{
            'd':true,
            'e':{
                'f':10,
                'g':'test string data',
                'h':{
                    'i':10,
                    'j':{
                        'k':true,
                        'l':[]
                    }
                }
            },
            'm':{
                'n':[],
                'o':'test string data'
            }
        },
        'p':{
            'q':{
                'r':10
            },
            's':{
                't':true,
                'u':{
                    'v':10,
                    'w':'test string data'
                }
            }
        },
        'x':[],
        'y':{},
        'literalType':'option1',
        'mixedType':{},
        'conditionalType':'active',
        'extended':{
            'id':10,
            'info':{
                'description':'test string data',
                'tags':[],
                'settings':{
                    'mode':'auto',
                    'level':1,
                    'extras':{
                        'feature':true,
                        'nestedRef':extended_info_settings_extras_nestedRef_boostestNestedInterface()
                    }
                }
            }
        },
        ...args
    } as T);
}