DEV Community

Discussion on: Three ways to handle recursion

Collapse
 
azabroflovski profile image
azabroflovski
type FlatNode {
  id: number;
  parent?: number;
};
Enter fullscreen mode Exit fullscreen mode

Missing "=" type FlatNode = { ... }

Collapse
 
smeijer profile image
Stephan Meijer

Thanks! I keep making that mistake. So annoying that interfaces and types have a different syntax.