UNPKG
json-to-ts
Version:
latest (2.1.0)
2.1.0
1.7.0
1.6.0
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.4
1.4.3
1.4.2
1.4.1
1.4.0
1.3.1
1.3.0
1.2.0
1.1.1
1.1.0
1.0.0
0.2.0
0.1.5
0.1.4
0.1.2
0.1.1
0.1.0
Convert json object to typescript interfaces
github.com/MariusAlch/json-to-ts
MariusAlch/json-to-ts
json-to-ts
/
build
/
src
/
get-type-structure.d.ts
5 lines
(4 loc)
•
284 B
TypeScript
View Raw
1
2
3
4
5
import
{
TypeDescription
,
TypeStructure
}
from
"./model"
;
export
declare
function
getTypeStructure
(
targetObj
:
any
,
// object that we want to create types for
types
?:
TypeDescription
[]
):
TypeStructure
;
export
declare
function
optimizeTypeStructure
(
typeStructure
:
TypeStructure
):
void
;