Eric Reis
10/09/2020, 12:00 AMobjectType({
name: 'User',
definition: t => {
t.id<UserId>('id')
}
})
this is interesting when youre using nominal types, which is something might be builtin to TS one day https://github.com/microsoft/TypeScript/issues/202#issuecomment-695912785Ryan
10/09/2020, 5:48 AMjasonkuhrt
Eric Reis
10/09/2020, 11:46 PMobjectType({
name: 'User',
definitions: t => {
t.id('id', {
typescriptType: {
name: 'UserID',
source: 'myTypes'
},
// or even
typeScriptType: 'myTypes.UserID'
})
}
})
so the type would be come a source defined in makeSchemajasonkuhrt