Skip to content

Nested types inlined instead of referencing #8

Description

@schibrikov

When some type refers to other type like

interface MySecondInterface {
	field: MyFirstInterface;
}

ts-to-io inlines all the fields of MyFirstInterface just like

const MySecondInterface = t.type({
	field: t.type({
		property: t.number
	});
})

Instead, I'd like to see

const MySecondInterface = t.type({
	field: MyFirstInterface // generated io-ts type name
})

Is it a goal for this project?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions