Struggling to create a new type with only specific properties, but I'm not getting any results.
const User = types.model({
id: types.identifier,
username: types.maybe(types.string),
email: types.maybe(types.string),
});
type TUser = Instance<typeof User>;
type TDatabaseUser = Pick<TUser, 'id' | 'email'>
TDatabaseUser is showing up empty... it should include
id
and
What am I doing incorrectly?