Skip to content

Mapping models as explained in docs gives type TUnsafe. #254

Open
@Nmans01

Description

@Nmans01

Attempting to map models to other models as explained in docs leads to values of type TUnsafe being passed around project. See example:

image

where I attempt to define model Login as a mapping of baseCreateUserScema. While it seems safe to expect that baseCreateUserSchema would be of type t.Object, it instead is typed as TUnsafe, which does not cause subsequent schemas to give a type error, but causes type errors elsewhere in project. Namely, Login, when used elsewhere, still has all the properties of baseCreateUserScema.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions