Open frankcollins3 opened 1 year ago
import {PokemonInterface} from "utility/interfaceNtypes.ts 👎 type Pokemon PokemonInterface
// first had problem with the interface itself.. wondering if export const or export interface would work. 👍 Export interface
[2:40pm]
not even going to ask chatGPT just going to move on
attempting to do: create a file from which to export types to be used throughout app to create modularity and reusability with types & interfaces utility/interfaceNtypes.ts: type Pokemon = { name: String }
graphql/schema.ts type Pokemon { id: Int, name: String }
error: there needs to be an equal sign in the conventional Typescript type, whereas graphql typeDefs types don't have that. They seem to follow more so the interface type.
proposed approach: 0: skip. App was deployment ready before switching machine. Deploy; learn this concept for the following app.
1: try with interfaces.
2: see step 0: