Skip to content
This repository has been archived by the owner on Jul 27, 2020. It is now read-only.

Types.ts does not override types #151

Open
homoky opened this issue May 18, 2019 · 2 comments
Open

Types.ts does not override types #151

homoky opened this issue May 18, 2019 · 2 comments

Comments

@homoky
Copy link

homoky commented May 18, 2019

I follow the docs here, so please maybe I am doing something wrong here.

I have User model defined via Nexus. It is working, I want extend its root type, I want to add new fields that I can access in parent. I've tried to create types.ts in ./src folder.

// types.ts

interface User {
  test: string;
}

After restarting server the .yoga/nexus.ts does not contain updated types.

@Weakky
Copy link
Contributor

Weakky commented May 19, 2019

Hey there, have you tried exporting your types?

@homoky
Copy link
Author

homoky commented May 20, 2019

Yes I've tried it. Here is simple creating new project, creating types.ts with try to adjust existing root type:

my-app.zip

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants