Skip to content

Figure out a way to share enums and similar between client and server #52

Open
@chrisdrackett

Description

@chrisdrackett

at the moment the client can't easily import enums from server code as Metro does not understand the full extent of the server and gets hung up. One idea is to have these enums live somewhere that both client and server can import them.

I'm not sure if the server can import a plain .ts file from somewhere outside the server directory, but if it can maybe adding a shared folder at the root of the app with a index.ts file with shared enums and similar would be a good solution.\

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions