exportinterfaceParseOptions{arrayFormat?:'bracket'|'index'|'none';decode?:boolean;}exportinterfaceOutputParams{[key:string]:string|string[]|undefined;}exportfunctionparse(str:string,options?:ParseOptions):OutputParams;这种在exportinterfaceParseOptions.d.ts文件中是什么作用?在编辑器中使用parse方法时,也没有提示具体的如参类型,只是提示了ParseOptions?
2 回答

慕的地6264312
TA贡献1817条经验 获得超6个赞
你这里加了?,是可传可不传,应该不会有提示,试一下去掉?,或者传一个错误的类型,应该会有提示吧exportinterfaceParseOptions{arrayFormat?:'bracket'|'index'|'none';decode?:boolean;}
添加回答
举报
0/150
提交
取消